首页 > 最新文献

Computer Physics Communications最新文献

英文 中文
Compression of turbulence time series data using Gaussian process regression 用高斯过程回归压缩湍流时间序列数据
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-28 DOI: 10.1016/j.cpc.2025.109914
Adalberto Perez , Saleh Rezaeiravesh , Yi Ju , Erwin Laure , Stefano Markidis , Philipp Schlatter
Turbulence data sets produced from computational fluid dynamics (CFD), especially from fine-resolved direct numerical simulations (DNS) and large eddy simulations (LES) of turbulent flows, tend to be very large due to high resolutions adopted to accurately resolve the smallest scales. While the computational capacity of high-performance computing (HPC) platforms has kept increasing, storage capacity has lagged to the point that more data is being produced than what can be efficiently managed. Among the several methods emerged to deal with this problem, an efficient technique is data compression. In this study, we present a proof of concept of a novel data compression approach that relies on Gaussian process regression (GPR) within a Bayesian framework to handle data sets in such a way that initially discarded information can be recovered a posteriori. The approach can be used to supplement existing compression algorithms with measures of uncertainty and we show that it can be applied to compress not only the 3D spatial fields of turbulence but also the discrete sets of time series data. The compression algorithm has been designed for data from spectral element method (SEM) simulations but can be extended to spatiotemporal fields obtained from other methods arising in engineering and physics. Our investigation shows that it is possible to use Gaussian process regression for data compression, however also highlights several of its limitations, in particular, that efficient implementations of GPR are crucial for its adoption, and that, while it is unlikely that the method can compete in terms of throughput with state of the art methods, given the cost of GPR, there is potential in terms of compression performance, as long as efficient bit-plane coding is integrated.
计算流体动力学(CFD),特别是精细分辨率直接数值模拟(DNS)和湍流大涡模拟(LES)产生的湍流数据集往往非常大,因为采用了高分辨率来精确解析最小尺度。虽然高性能计算(HPC)平台的计算能力一直在不断增加,但存储容量却一直滞后,以至于产生的数据比有效管理的数据多。在处理这一问题的几种方法中,数据压缩是一种有效的方法。在本研究中,我们提出了一种新的数据压缩方法的概念证明,该方法依赖于贝叶斯框架内的高斯过程回归(GPR)来处理数据集,从而使最初丢弃的信息可以在后验中恢复。该方法可以用不确定性测度补充现有的压缩算法,我们表明它不仅可以应用于压缩三维空间湍流场,也可以应用于压缩离散的时间序列数据集。压缩算法是为谱元法(SEM)模拟数据设计的,但可以扩展到从工程和物理中产生的其他方法获得的时空场。我们的调查表明,有可能使用高斯过程回归进行数据压缩,但也突出了它的几个局限性,特别是,有效实现探地雷达对其采用至关重要,而且,虽然该方法不太可能在吞吐量方面与最先进的方法竞争,但考虑到探地雷达的成本,在压缩性能方面有潜力,只要有效的位平面编码集成。
{"title":"Compression of turbulence time series data using Gaussian process regression","authors":"Adalberto Perez ,&nbsp;Saleh Rezaeiravesh ,&nbsp;Yi Ju ,&nbsp;Erwin Laure ,&nbsp;Stefano Markidis ,&nbsp;Philipp Schlatter","doi":"10.1016/j.cpc.2025.109914","DOIUrl":"10.1016/j.cpc.2025.109914","url":null,"abstract":"<div><div>Turbulence data sets produced from computational fluid dynamics (CFD), especially from fine-resolved direct numerical simulations (DNS) and large eddy simulations (LES) of turbulent flows, tend to be very large due to high resolutions adopted to accurately resolve the smallest scales. While the computational capacity of high-performance computing (HPC) platforms has kept increasing, storage capacity has lagged to the point that more data is being produced than what can be efficiently managed. Among the several methods emerged to deal with this problem, an efficient technique is data compression. In this study, we present a proof of concept of a novel data compression approach that relies on Gaussian process regression (GPR) within a Bayesian framework to handle data sets in such a way that initially discarded information can be recovered a posteriori. The approach can be used to supplement existing compression algorithms with measures of uncertainty and we show that it can be applied to compress not only the 3D spatial fields of turbulence but also the discrete sets of time series data. The compression algorithm has been designed for data from spectral element method (SEM) simulations but can be extended to spatiotemporal fields obtained from other methods arising in engineering and physics. Our investigation shows that it is possible to use Gaussian process regression for data compression, however also highlights several of its limitations, in particular, that efficient implementations of GPR are crucial for its adoption, and that, while it is unlikely that the method can compete in terms of throughput with state of the art methods, given the cost of GPR, there is potential in terms of compression performance, as long as efficient bit-plane coding is integrated.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109914"},"PeriodicalIF":3.4,"publicationDate":"2025-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145517654","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Numerical solution of quantum Landau-Lifshitz-Gilbert equation 量子Landau-Lifshitz-Gilbert方程的数值解
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-28 DOI: 10.1016/j.cpc.2025.109911
Vahid Azimi-Mousolou , Davoud Mirzaei
The classical Landau-Lifshitz-Gilbert (LLG) equation has long served as a cornerstone for modeling magnetization dynamics in magnetic systems, yet its classical nature limits its applicability to inherently quantum phenomena such as entanglement and nonlocal correlations. Inspired by the need to incorporate quantum effects into spin dynamics, recently a quantum generalization of the LLG equation is proposed [Phys. Rev. Lett. 133, 266704 (2024)] which captures essential quantum behavior in many-body systems. In this work, we develop a robust numerical methodology tailored to this quantum LLG framework that not only handles the complexity of quantum many-body systems but also preserves the intrinsic mathematical structures and physical properties dictated by the equation. We apply the proposed method to a class of quantum systems with a moderate number of spins that host host topological states of matter, and demonstrate rich quantum behavior, including the emergence of long-time entangled states. This approach opens a pathway toward reliable simulations of quantum magnetism beyond classical approximations, potentially leading to new discoveries.
经典的Landau-Lifshitz-Gilbert (LLG)方程长期以来一直是磁性系统磁化动力学建模的基础,但其经典性质限制了其对固有量子现象(如纠缠和非局部相关)的适用性。受需要将量子效应纳入自旋动力学的启发,最近提出了LLG方程的量子推广[物理学]。Rev. Lett. 133, 266704(2024)],它捕获了多体系统中的基本量子行为。在这项工作中,我们开发了一种针对这种量子LLG框架的强大数值方法,该方法不仅处理量子多体系统的复杂性,而且保留了由方程决定的固有数学结构和物理性质。我们将所提出的方法应用于一类具有中等数量自旋的量子系统,该系统具有物质的主拓扑状态,并展示了丰富的量子行为,包括长时间纠缠态的出现。这种方法为量子磁性的可靠模拟开辟了一条途径,超越了经典的近似,有可能导致新的发现。
{"title":"Numerical solution of quantum Landau-Lifshitz-Gilbert equation","authors":"Vahid Azimi-Mousolou ,&nbsp;Davoud Mirzaei","doi":"10.1016/j.cpc.2025.109911","DOIUrl":"10.1016/j.cpc.2025.109911","url":null,"abstract":"<div><div>The classical Landau-Lifshitz-Gilbert (LLG) equation has long served as a cornerstone for modeling magnetization dynamics in magnetic systems, yet its classical nature limits its applicability to inherently quantum phenomena such as entanglement and nonlocal correlations. Inspired by the need to incorporate quantum effects into spin dynamics, recently a quantum generalization of the LLG equation is proposed [Phys. Rev. Lett. 133, 266704 (2024)] which captures essential quantum behavior in many-body systems. In this work, we develop a robust numerical methodology tailored to this quantum LLG framework that not only handles the complexity of quantum many-body systems but also preserves the intrinsic mathematical structures and physical properties dictated by the equation. We apply the proposed method to a class of quantum systems with a moderate number of spins that host host topological states of matter, and demonstrate rich quantum behavior, including the emergence of long-time entangled states. This approach opens a pathway toward reliable simulations of quantum magnetism beyond classical approximations, potentially leading to new discoveries.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109911"},"PeriodicalIF":3.4,"publicationDate":"2025-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464408","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A finite element solver for a thermodynamically consistent electrolyte model 热力学一致电解质模型的有限元求解器
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-27 DOI: 10.1016/j.cpc.2025.109916
Jan Habscheid, Satyvir Singh, Lambert Theisen, Stefanie Braun, Manuel Torrilhon
In this study, we present a finite element solver for a thermodynamically consistent electrolyte model that accurately captures multicomponent ionic transport by incorporating key physical phenomena such as steric effects, solvation, and pressure coupling. The model is rooted in the principles of non-equilibrium thermodynamics and strictly enforces mass conservation, charge neutrality, and entropy production. It extends beyond classical frameworks like the Nernst–Planck system by employing modified partial mass balances, the electrostatic Poisson equation, and a momentum balance expressed in terms of electrostatic potential, atomic fractions, and pressure, thereby enhancing numerical stability and physical consistency. Implemented using the FEniCSx platform, the solver efficiently handles one- and two-dimensional problems with varied boundary conditions and demonstrates excellent convergence behavior and robustness. Validation against benchmark problems confirms its improved physical fidelity, particularly in regimes characterized by high ionic concentrations and strong electrochemical gradients. Simulation results reveal critical electrolyte phenomena, including electric double layer formation, rectification behavior, and the effects of solvation number, Debye length, and compressibility. The solver’s modular variational formulation facilitates its extension to complex electrochemical systems involving multiple ionic species with asymmetric valences. We publicly provide the documented and validated solver framework.
在这项研究中,我们提出了一个热力学一致的电解质模型的有限元求解器,该模型通过结合空间效应、溶剂化和压力耦合等关键物理现象,准确地捕获了多组分离子传输。该模型植根于非平衡热力学原理,严格执行质量守恒、电荷中性和熵的产生。它通过采用修正的部分质量平衡、静电泊松方程和以静电势、原子分数和压力表示的动量平衡,扩展了像能斯特-普朗克系统这样的经典框架,从而增强了数值稳定性和物理一致性。该求解器在FEniCSx平台上实现,能够有效地处理具有不同边界条件的一维和二维问题,并具有良好的收敛性和鲁棒性。对基准问题的验证证实了其改进的物理保真度,特别是在以高离子浓度和强电化学梯度为特征的制度中。模拟结果揭示了关键的电解质现象,包括双电层的形成、整流行为以及溶剂化数、德拜长度和可压缩性的影响。求解器的模块化变分公式有助于其扩展到复杂的电化学系统,涉及多个离子的不对称价。我们公开提供文档化和验证的求解器框架。
{"title":"A finite element solver for a thermodynamically consistent electrolyte model","authors":"Jan Habscheid,&nbsp;Satyvir Singh,&nbsp;Lambert Theisen,&nbsp;Stefanie Braun,&nbsp;Manuel Torrilhon","doi":"10.1016/j.cpc.2025.109916","DOIUrl":"10.1016/j.cpc.2025.109916","url":null,"abstract":"<div><div>In this study, we present a finite element solver for a thermodynamically consistent electrolyte model that accurately captures multicomponent ionic transport by incorporating key physical phenomena such as steric effects, solvation, and pressure coupling. The model is rooted in the principles of non-equilibrium thermodynamics and strictly enforces mass conservation, charge neutrality, and entropy production. It extends beyond classical frameworks like the Nernst–Planck system by employing modified partial mass balances, the electrostatic Poisson equation, and a momentum balance expressed in terms of electrostatic potential, atomic fractions, and pressure, thereby enhancing numerical stability and physical consistency. Implemented using the FEniCSx platform, the solver efficiently handles one- and two-dimensional problems with varied boundary conditions and demonstrates excellent convergence behavior and robustness. Validation against benchmark problems confirms its improved physical fidelity, particularly in regimes characterized by high ionic concentrations and strong electrochemical gradients. Simulation results reveal critical electrolyte phenomena, including electric double layer formation, rectification behavior, and the effects of solvation number, Debye length, and compressibility. The solver’s modular variational formulation facilitates its extension to complex electrochemical systems involving multiple ionic species with asymmetric valences. We publicly provide the documented and validated solver framework.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109916"},"PeriodicalIF":3.4,"publicationDate":"2025-10-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464403","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Acceleration of the CASINO quantum Monte Carlo software using graphics processing units and OpenACC 使用图形处理单元和OpenACC加速CASINO量子蒙特卡罗软件
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-26 DOI: 10.1016/j.cpc.2025.109900
B. Thorpe , M.J. Smith , P.J. Hasnip , N.D. Drummond
We describe how quantum Monte Carlo calculations using the CASINO software can be accelerated using graphics processing units (GPUs) and OpenACC. In particular we consider offloading Ewald summation, the evaluation of long-range two-body terms in the Jastrow correlation factor, and the evaluation of orbitals in a blip basis set. We present results for three- and two-dimensional homogeneous electron gases and ab initio simulations of bulk materials, showing that significant speedups of up to a factor of 2.5 can be achieved by the use of GPUs when several hundred particles are included in the simulations. The use of single-precision arithmetic can improve the speedup further without significant detriment to the accuracy of the calculations.
我们描述了使用CASINO软件的量子蒙特卡罗计算如何使用图形处理单元(gpu)和OpenACC加速。我们特别考虑了卸载Ewald和,Jastrow相关因子中远程二体项的评价,以及在一个小点基集中轨道的评价。我们给出了三维和二维均质电子气体和块状材料从头算模拟的结果,表明当模拟中包含数百个粒子时,使用gpu可以实现高达2.5倍的显著加速。使用单精度算法可以在不显著损害计算精度的情况下进一步提高加速。
{"title":"Acceleration of the CASINO quantum Monte Carlo software using graphics processing units and OpenACC","authors":"B. Thorpe ,&nbsp;M.J. Smith ,&nbsp;P.J. Hasnip ,&nbsp;N.D. Drummond","doi":"10.1016/j.cpc.2025.109900","DOIUrl":"10.1016/j.cpc.2025.109900","url":null,"abstract":"<div><div>We describe how quantum Monte Carlo calculations using the CASINO software can be accelerated using graphics processing units (GPUs) and OpenACC. In particular we consider offloading Ewald summation, the evaluation of long-range two-body terms in the Jastrow correlation factor, and the evaluation of orbitals in a blip basis set. We present results for three- and two-dimensional homogeneous electron gases and <em>ab initio</em> simulations of bulk materials, showing that significant speedups of up to a factor of 2.5 can be achieved by the use of GPUs when several hundred particles are included in the simulations. The use of single-precision arithmetic can improve the speedup further without significant detriment to the accuracy of the calculations.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109900"},"PeriodicalIF":3.4,"publicationDate":"2025-10-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464293","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A detailed guide to an open-source implementation of the hybrid phase field method for 3D fracture modeling in deal.II 一个详细的指南,一个开源的实现混合相场方法的三维裂缝建模在交易。2
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-26 DOI: 10.1016/j.cpc.2025.109901
Wasim Niyaz Munshi , Marc Fehling , Wolfgang Bangerth , Chandrasekhar Annavarapu
Phase-field models for fracture have demonstrated significant power in simulating realistic fractures, including complex behaviors like crack branching, coalescing, and fragmentation. Despite this, these models have mostly remained in the realm of proof-of-concept studies rather than being applied to practical problems. This paper introduces a computationally efficient implementation of the phase-field method based on the open source finite element library deal.II, incorporating parallel computing and adaptive mesh refinement. We provide a detailed outline of the steps required to implement the phase field model in deal.II. We then validate our implementation through a benchmark 3D boundary value problem and finally demonstrate the computational capabilities by running field scale problems involving complicated fracture patterns in 3D. This open-source code offers a framework that enables engineers and researchers to simulate diffuse crack growth within a widely-used computational environment.
裂缝的相场模型在模拟真实裂缝,包括裂缝分支、聚结和破碎等复杂行为方面具有重要的作用。尽管如此,这些模型大多停留在概念验证研究的领域,而不是应用于实际问题。本文介绍了一种基于开源有限元库协议的相场法的高效计算实现。II,结合并行计算和自适应网格细化。我们提供了在交易ii中实现相场模型所需步骤的详细大纲。然后,我们通过一个基准的3D边界值问题来验证我们的实现,最后通过运行涉及复杂裂缝模式的3D现场规模问题来验证计算能力。这个开源代码提供了一个框架,使工程师和研究人员能够在广泛使用的计算环境中模拟扩散裂纹的增长。
{"title":"A detailed guide to an open-source implementation of the hybrid phase field method for 3D fracture modeling in deal.II","authors":"Wasim Niyaz Munshi ,&nbsp;Marc Fehling ,&nbsp;Wolfgang Bangerth ,&nbsp;Chandrasekhar Annavarapu","doi":"10.1016/j.cpc.2025.109901","DOIUrl":"10.1016/j.cpc.2025.109901","url":null,"abstract":"<div><div>Phase-field models for fracture have demonstrated significant power in simulating realistic fractures, including complex behaviors like crack branching, coalescing, and fragmentation. Despite this, these models have mostly remained in the realm of proof-of-concept studies rather than being applied to practical problems. This paper introduces a computationally efficient implementation of the phase-field method based on the open source finite element library <span>deal.II</span>, incorporating parallel computing and adaptive mesh refinement. We provide a detailed outline of the steps required to implement the phase field model in <span>deal.II</span>. We then validate our implementation through a benchmark 3D boundary value problem and finally demonstrate the computational capabilities by running field scale problems involving complicated fracture patterns in 3D. This open-source code offers a framework that enables engineers and researchers to simulate diffuse crack growth within a widely-used computational environment.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109901"},"PeriodicalIF":3.4,"publicationDate":"2025-10-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464401","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Reconstructing Laurent expansion of rational functions using p-adic numbers 用p进数重建有理函数的劳伦展开式
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-25 DOI: 10.1016/j.cpc.2025.109908
Tianya Xia, Li Lin Yang
We propose a novel method for reconstructing Laurent expansion of rational functions using p-adic numbers. By evaluating the rational functions in p-adic fields rather than finite fields, it is possible to probe the expansion coefficients simultaneously, enabling their reconstruction from a single set of evaluations. Compared with the reconstruction of the full expression, constructing the Laurent expansion to the first few orders significantly reduces the required computational resources. Our method can handle expansions with respect to more than one variables simultaneously. Among possible applications, we anticipate that our method can be used to simplify the integration-by-parts reduction of Feynman integrals in cutting-edge calculations.
PROGRAM SUMMARY Manuscript Title: Reconstructing Laurent expansion of rational functions using p-adic numbers
Authors: Tianya Xia, Li Lin Yang
Program Title: LaurentExpPadicReconstruct
CPC Library link to program files: (to be added by Technical Editor)
Licensing provisions: GPLv3
Programming language: C++
External routines/libraries: FireFly, FLINT
Nature of problem: Reconstructing Laurent expansion of rational function arising in the IBP reuduction of Feynman Integrals.
Solution method: Uses p-adic numbers combined with rational function reconstruction over finite fields.
Running time: Typically ranges from several minutes to a few hours, depending on the size and algebraic complexity of the input.
提出了一种利用p进数重构有理函数劳伦展开式的新方法。通过计算p进域中的有理函数而不是有限域中的有理函数,可以同时探测展开系数,从而使它们能够从一组计算中重建。与完整表达式的重构相比,将Laurent展开构造到前几阶,大大减少了所需的计算资源。我们的方法可以同时处理多个变量的展开。在可能的应用中,我们期望我们的方法可以用于简化尖端计算中费曼积分的分部积分缩减。程序摘要手稿标题:用p进数重建有理函数的Laurent展开作者:夏天亚,杨李林程序标题:LaurentExpPadicReconstructCPC库链接到程序文件:(由技术编辑添加)许可条款:gplv3编程语言:c++外部例程/库:FireFly, flint问题性质:重建费曼积分IBP约简中有理函数的Laurent展开。求解方法:利用p进数结合有限域上的有理函数重构。运行时间:通常从几分钟到几个小时不等,取决于输入的大小和代数复杂度。
{"title":"Reconstructing Laurent expansion of rational functions using p-adic numbers","authors":"Tianya Xia,&nbsp;Li Lin Yang","doi":"10.1016/j.cpc.2025.109908","DOIUrl":"10.1016/j.cpc.2025.109908","url":null,"abstract":"<div><div>We propose a novel method for reconstructing Laurent expansion of rational functions using <span><math><mi>p</mi></math></span>-adic numbers. By evaluating the rational functions in <span><math><mi>p</mi></math></span>-adic fields rather than finite fields, it is possible to probe the expansion coefficients simultaneously, enabling their reconstruction from a single set of evaluations. Compared with the reconstruction of the full expression, constructing the Laurent expansion to the first few orders significantly reduces the required computational resources. Our method can handle expansions with respect to more than one variables simultaneously. Among possible applications, we anticipate that our method can be used to simplify the integration-by-parts reduction of Feynman integrals in cutting-edge calculations.</div><div><strong>PROGRAM SUMMARY</strong> <em>Manuscript Title:</em> Reconstructing Laurent expansion of rational functions using p-adic numbers</div><div><em>Authors:</em> Tianya Xia, Li Lin Yang</div><div><em>Program Title:</em> LaurentExpPadicReconstruct</div><div><em>CPC Library link to program files:</em> (to be added by Technical Editor)</div><div><em>Licensing provisions:</em> GPLv3</div><div><em>Programming language:</em> C++</div><div><em>External routines/libraries:</em> FireFly, FLINT</div><div><em>Nature of problem:</em> Reconstructing Laurent expansion of rational function arising in the IBP reuduction of Feynman Integrals.</div><div><em>Solution method:</em> Uses p-adic numbers combined with rational function reconstruction over finite fields.</div><div><em>Running time:</em> Typically ranges from several minutes to a few hours, depending on the size and algebraic complexity of the input.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109908"},"PeriodicalIF":3.4,"publicationDate":"2025-10-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145464407","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
JANC: A cost-effective, differentiable compressible reacting flow solver featured with JAX-based adaptive mesh refinement JANC:一个具有成本效益,可微的可压缩反应流求解器,具有基于jax的自适应网格细化功能
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-25 DOI: 10.1016/j.cpc.2025.109915
Haocheng Wen , Faxuan Luo , Sheng Xu, Bing Wang
<div><div>The compressible reacting flow numerical solver is an essential tool in the study of combustion, energy disciplines, as well as in the design of industrial power and propulsion devices. We have established the first JAX-based (a Python library developed by Google for accelerator-oriented array computation and high-performance numerical computing) block-structured adaptive mesh refinement (AMR) framework, called JAX-AMR, and then developed a fully-differentiable solver for compressible reacting flows, named JANC. JANC is implemented in Python and features automatic differentiation capabilities, enabling an efficient integration of the solver with machine learning. Furthermore, benefited by multiple acceleration features such as accelerated linear algebra (XLA)-powered Just-In-Time (JIT) compilation, GPU/TPU computing, parallel computing, and AMR, the computational efficiency of JANC has been significantly improved. In a comparative test of a two-dimensional detonation tube case, the computational cost of the JANC core solver, running on a single A100 GPU, was reduced to 1% of that of OpenFOAM, which was parallelized across 384 CPU cores. When the AMR method is enabled for both solvers, JANC’s computational cost can be reduced to 1-2% of that of OpenFOAM. The core solver of JANC has also been tested for parallel computation on a 4-card A100 setup, demonstrating its convenient and efficient parallel computing capability. JANC also shows strong compatibility with machine learning by combining adjoint optimization to make the whole dynamic trajectory efficiently differentiable. JANC provides a new generation of high-performance, cost-effective, and high-precision solver framework for large-scale numerical simulations of compressible reacting flows and related machine learning research.</div><div>Program summary</div><div><em>Program title</em>: JAX-AMR and JANC</div><div><em>CPC Library link to program files</em>: <span><span>https://doi.org/10.17632/pkbxp5tm8w.1</span><svg><path></path></svg></span></div><div><em>Developer’s repository link</em>: <span><span>https://github.com/JA4S/JAX-AMR</span><svg><path></path></svg></span>, <span><span>https://github.com/JA4S/JANC</span><svg><path></path></svg></span></div><div>Licensing provisions: MIT</div><div>Programming language: Python</div><div><em>Nature of problem</em>: The numerical solution of compressible reactive flows plays a crucial role in combustion, energy utilization, and the design and manufacturing of propulsion systems. However, the multi-species nature, highly transient behavior, and strong numerical stiffness of reactive flows lead to significantly higher computational costs compared to conventional flow problems. In addition, conventional reactive flow solvers are typically built on Fortran or C++ frameworks, making them difficult to integrate with data-driven methods based on existing Python ecosystems—particularly gradient-based optimization techniques such as machine learning
可压缩反应流数值求解器是研究燃烧、能源学科以及设计工业动力和推进装置的重要工具。我们建立了第一个基于jax(谷歌开发的用于面向加速器的阵列计算和高性能数值计算的Python库)的块结构自适应网格细化(AMR)框架,称为JAX-AMR,然后开发了一个可压缩反应流的完全可微求解器,称为JANC。JANC是在Python中实现的,并具有自动区分功能,从而实现求解器与机器学习的有效集成。此外,得益于加速线性代数(XLA)驱动的JIT (Just-In-Time)编译、GPU/TPU计算、并行计算和AMR等多种加速特性,JANC的计算效率得到了显著提高。在二维爆爆管案例的对比测试中,在单个A100 GPU上运行的JANC核心求解器的计算成本降低到OpenFOAM的1%,OpenFOAM在384个CPU核心上并行化。当两个求解器都启用AMR方法时,JANC的计算成本可以降低到OpenFOAM的1-2%。该核心求解器在4卡A100装置上进行了并行计算测试,证明了其方便高效的并行计算能力。通过结合伴随优化使整个动态轨迹高效可微,JANC与机器学习具有较强的兼容性。JANC为可压缩反应流的大规模数值模拟和相关的机器学习研究提供了新一代高性能、经济高效、高精度的求解器框架。项目摘要项目标题:JAX-AMR和JANCCPC库链接到程序文件:https://doi.org/10.17632/pkbxp5tm8w.1Developer的存储库链接:https://github.com/JA4S/JAX-AMR, https://github.com/JA4S/JANCLicensing条款:mit编程语言:python问题性质:可压缩反应流的数值解在燃烧、能量利用和推进系统的设计和制造中起着至关重要的作用。然而,与传统流动问题相比,反应流动的多物种特性、高瞬态特性和强数值刚度导致计算成本显着增加。此外,传统的响应式流求解器通常是在Fortran或c++框架上构建的,这使得它们很难与基于现有Python生态系统的数据驱动方法集成,特别是基于梯度的优化技术,如机器学习。尽管已经开发了几个基于JAX的微分求解器原型来解决这些问题,利用gpu的多核计算能力和JAX的自动微分框架来进行高效和可微分的流模拟,但还没有开发出基于JAX的可压缩反应流求解器。更关键的是,由于反应流的多尺度特性,目前还没有与JAX兼容的自适应网格细化(AMR)框架,这使得大规模、高分辨率的模拟非常昂贵且难以执行。解决方法:我们已经开发了JANC:一个具有成本效益,可微的可压缩反应流求解器,具有基于jax的自适应网格细化的特点。JANC是建立在JAX框架上的求解器,充分利用了JAX的XLA高性能计算编译和自动区分功能,与传统的响应式流求解器(如OpenFOAM)相比,具有显著的加速。通过结合基于伴随的优化算法,我们的求解器有效地兼容现有的可微优化方法,提供更低的内存消耗和更快的可微计算。在求解器的基础上,提出了一种基于固定位置和形状的动态更新多级块的自适应网格细化框架JAX-AMR。该框架与JAX的即时(JIT)编译和矢量化(vmap)操作完全兼容,能够将AMR功能有效地集成到流求解器中。此外,我们的反应流求解器支持多设备并行,以满足大规模问题的需求。JANC为定义边界条件、源项和其他特定于问题的功能提供了高度自定义和用户友好的界面。JANC可以通过pip install作为Python包轻松安装,并且可以在单个Jupyter Notebook中执行响应式流程模拟的整个工作流。附加注释,包括限制和不寻常的功能:JANC的一些功能依赖于开源的第三方Python库,这些库被设置为自动安装。
{"title":"JANC: A cost-effective, differentiable compressible reacting flow solver featured with JAX-based adaptive mesh refinement","authors":"Haocheng Wen ,&nbsp;Faxuan Luo ,&nbsp;Sheng Xu,&nbsp;Bing Wang","doi":"10.1016/j.cpc.2025.109915","DOIUrl":"10.1016/j.cpc.2025.109915","url":null,"abstract":"&lt;div&gt;&lt;div&gt;The compressible reacting flow numerical solver is an essential tool in the study of combustion, energy disciplines, as well as in the design of industrial power and propulsion devices. We have established the first JAX-based (a Python library developed by Google for accelerator-oriented array computation and high-performance numerical computing) block-structured adaptive mesh refinement (AMR) framework, called JAX-AMR, and then developed a fully-differentiable solver for compressible reacting flows, named JANC. JANC is implemented in Python and features automatic differentiation capabilities, enabling an efficient integration of the solver with machine learning. Furthermore, benefited by multiple acceleration features such as accelerated linear algebra (XLA)-powered Just-In-Time (JIT) compilation, GPU/TPU computing, parallel computing, and AMR, the computational efficiency of JANC has been significantly improved. In a comparative test of a two-dimensional detonation tube case, the computational cost of the JANC core solver, running on a single A100 GPU, was reduced to 1% of that of OpenFOAM, which was parallelized across 384 CPU cores. When the AMR method is enabled for both solvers, JANC’s computational cost can be reduced to 1-2% of that of OpenFOAM. The core solver of JANC has also been tested for parallel computation on a 4-card A100 setup, demonstrating its convenient and efficient parallel computing capability. JANC also shows strong compatibility with machine learning by combining adjoint optimization to make the whole dynamic trajectory efficiently differentiable. JANC provides a new generation of high-performance, cost-effective, and high-precision solver framework for large-scale numerical simulations of compressible reacting flows and related machine learning research.&lt;/div&gt;&lt;div&gt;Program summary&lt;/div&gt;&lt;div&gt;&lt;em&gt;Program title&lt;/em&gt;: JAX-AMR and JANC&lt;/div&gt;&lt;div&gt;&lt;em&gt;CPC Library link to program files&lt;/em&gt;: &lt;span&gt;&lt;span&gt;https://doi.org/10.17632/pkbxp5tm8w.1&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;em&gt;Developer’s repository link&lt;/em&gt;: &lt;span&gt;&lt;span&gt;https://github.com/JA4S/JAX-AMR&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;, &lt;span&gt;&lt;span&gt;https://github.com/JA4S/JANC&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Licensing provisions: MIT&lt;/div&gt;&lt;div&gt;Programming language: Python&lt;/div&gt;&lt;div&gt;&lt;em&gt;Nature of problem&lt;/em&gt;: The numerical solution of compressible reactive flows plays a crucial role in combustion, energy utilization, and the design and manufacturing of propulsion systems. However, the multi-species nature, highly transient behavior, and strong numerical stiffness of reactive flows lead to significantly higher computational costs compared to conventional flow problems. In addition, conventional reactive flow solvers are typically built on Fortran or C++ frameworks, making them difficult to integrate with data-driven methods based on existing Python ecosystems—particularly gradient-based optimization techniques such as machine learning","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109915"},"PeriodicalIF":3.4,"publicationDate":"2025-10-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145517651","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Exact nuclear pairing solution for large-scale configurations: I. The EP (v1.0) program at zero temperature 大规模配置的精确核配对解决方案:1.零温度下的EP (v1.0)程序
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-25 DOI: 10.1016/j.cpc.2025.109906
Quoc Viet Tran , Tan Phuc Le , Vu Dong Tran , Ngoc Anh Nguyen , Quang Hung Nguyen
<div><div>In this work, we present the “EP code” (version 1.0), a user-friendly and robust computational tool. It computes the exact pairing eigenvalues and eigenvectors directly from the general nuclear pairing Hamiltonian, represented using SU(2) quasi-spin algebra with basis vectors in binary representation, at zero temperature for both odd and even deformed nucleon systems. In this initial release, the sparsity and symmetry of the pairing matrix are exploited for the first time to quickly construct the pairing matrix. The ARPACK and LAPACK packages are employed for the diagonalization of large- and small-scale sparse matrices, respectively. In addition, the calculation speed for odd-nucleon systems is significantly improved by employing a novel technique to accurately identify the block containing the ground state in such odd-nucleon configurations. To ensure the high numerical stability, the Kahan compensation algorithm is employed. The current version of the EP code can efficiently expand the computational space to handle up to 26 doubly folded (deformed) single-particle levels and 26 nucleons on a standard desktop computer in approximately 10<sup>2</sup> s with double precision. With sufficient computational resources, the code can process up to 63 deformed single-particle levels, which can accommodate from 1 to 63 nucleon pairs. The EP v1.0 code is also designed for future extensions, including the finite-temperature and parallel computations. <strong>PROGRAM SUMMARY</strong> <em>Program Title:</em> EP (v1.0) <em>CPC Library link to program files:</em> (<span><span>https://doi.org/10.17632/z3jzzmc9cw.1</span><svg><path></path></svg></span>) <em>Developer’s repository link:</em> <span><span>https://github.com/ifas-mathphys/epcode_v01</span><svg><path></path></svg></span> <em>Code Ocean capsule:</em> (to be added by Technical Editor) <em>Licensing provisions:</em> GPLv3 <em>Programming language:</em> Fortran <em>Supplementary material: Nature of problem:</em> Nature of problem: Exact computation of eigenvalues and eigenvectors via direct diagonalization of the general nuclear pairing Hamiltonian for both odd- and even-nucleon configurations at zero temperature, ensuring high accuracy, enhanced numerical stability, and reduced computational time. <em>Solution method:</em> Using the quasispin representation within the SU(2) algebra, we construct the pair-exchange matrix of the pairing Hamiltonian. To expedite the construction of the pairing matrix, we employ the binary representation to encode the information of paired states represented by matrix elements, while the reduction of computational time is achieved through the implementation of a sparse matrix diagonalization algorithm. An improved hash function, inspired by Ref. [1], is used to efficiently retrieve the indices of the pairing matrix, thereby speeding up its construction. A technique for determining the ground-state block in odd-nucleon configurations that significantly reduces the
在这项工作中,我们提出了“EP代码”(1.0版本),这是一个用户友好且强大的计算工具。在零温度下,用SU(2)准自旋代数和二元基向量表示的一般核配对哈密顿量,直接计算奇偶变形核子系统的精确配对特征值和特征向量。在这个初始版本中,首次利用配对矩阵的稀疏性和对称性来快速构造配对矩阵。采用ARPACK和LAPACK包分别对大、小尺度稀疏矩阵进行对角化。此外,通过采用一种新的技术来精确识别奇核子组态中包含基态的块,大大提高了奇核子系统的计算速度。为了保证较高的数值稳定性,采用了Kahan补偿算法。当前版本的EP代码可以有效地扩展计算空间,在大约102秒内以双倍精度在标准台式计算机上处理多达26个双折叠(变形)单粒子水平和26个核子。在足够的计算资源下,该代码可以处理多达63个变形的单粒子水平,可以容纳1到63个核子对。EP v1.0代码也是为将来的扩展而设计的,包括有限温度和并行计算。项目摘要项目标题:EP (v1.0) CPC库链接到程序文件:(https://doi.org/10.17632/z3jzzmc9cw.1)开发人员存储库链接:https://github.com/ifas-mathphys/epcode_v01代码海洋胶囊:(由技术编辑添加)许可条款:GPLv3编程语言:Fortran补充材料:问题性质:问题性质:在零温度下,通过直接对角化一般核配对哈密顿量来精确计算奇核和偶核构型的特征值和特征向量,确保高精度,增强数值稳定性,并减少计算时间。求解方法:利用SU(2)代数中的拟自旋表示,构造了配对哈密顿量的对交换矩阵。为了加快配对矩阵的构建,我们采用二进制表示来编码由矩阵元素表示的配对状态信息,同时通过实现稀疏矩阵对角化算法来减少计算时间。一个改进的哈希函数,受Ref.[1]的启发,用于有效地检索配对矩阵的索引,从而加快其构建速度。提出了一种确定奇核子组态基态块的方法,大大缩短了计算时间。为了保证较高的误差稳定性,采用了Kahan求和算法。这些技术提高了单粒子能谱的计算规模,减少了计算时间。附加说明,包括限制和不寻常的特征:目前的EP代码是为了适应变形的单粒子谱而设计的,其中每个单粒子能级最多只能被两个核子占据。对于打算使用球形谱的用户,有必要将球形单粒子级划分为变形壳以用于输入目的。值得注意的是,该版本不包括EP代码的扩展,以处理有限温度条件。代码的典型运行时间严重依赖于以下因素:作为输入提供的核子数、所选择的截断空间(最多63个级别)、粒子数(最多2 × 63个核子)、编译器(Gfortran/Ifort)和所使用计算机的配置。因此,执行时间从不到一秒到几天不等。[10]刘晓燕&齐春春,计算。理论物理。common . 259(2021) 107349。
{"title":"Exact nuclear pairing solution for large-scale configurations: I. The EP (v1.0) program at zero temperature","authors":"Quoc Viet Tran ,&nbsp;Tan Phuc Le ,&nbsp;Vu Dong Tran ,&nbsp;Ngoc Anh Nguyen ,&nbsp;Quang Hung Nguyen","doi":"10.1016/j.cpc.2025.109906","DOIUrl":"10.1016/j.cpc.2025.109906","url":null,"abstract":"&lt;div&gt;&lt;div&gt;In this work, we present the “EP code” (version 1.0), a user-friendly and robust computational tool. It computes the exact pairing eigenvalues and eigenvectors directly from the general nuclear pairing Hamiltonian, represented using SU(2) quasi-spin algebra with basis vectors in binary representation, at zero temperature for both odd and even deformed nucleon systems. In this initial release, the sparsity and symmetry of the pairing matrix are exploited for the first time to quickly construct the pairing matrix. The ARPACK and LAPACK packages are employed for the diagonalization of large- and small-scale sparse matrices, respectively. In addition, the calculation speed for odd-nucleon systems is significantly improved by employing a novel technique to accurately identify the block containing the ground state in such odd-nucleon configurations. To ensure the high numerical stability, the Kahan compensation algorithm is employed. The current version of the EP code can efficiently expand the computational space to handle up to 26 doubly folded (deformed) single-particle levels and 26 nucleons on a standard desktop computer in approximately 10&lt;sup&gt;2&lt;/sup&gt; s with double precision. With sufficient computational resources, the code can process up to 63 deformed single-particle levels, which can accommodate from 1 to 63 nucleon pairs. The EP v1.0 code is also designed for future extensions, including the finite-temperature and parallel computations. &lt;strong&gt;PROGRAM SUMMARY&lt;/strong&gt; &lt;em&gt;Program Title:&lt;/em&gt; EP (v1.0) &lt;em&gt;CPC Library link to program files:&lt;/em&gt; (&lt;span&gt;&lt;span&gt;https://doi.org/10.17632/z3jzzmc9cw.1&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;) &lt;em&gt;Developer’s repository link:&lt;/em&gt; &lt;span&gt;&lt;span&gt;https://github.com/ifas-mathphys/epcode_v01&lt;/span&gt;&lt;svg&gt;&lt;path&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt; &lt;em&gt;Code Ocean capsule:&lt;/em&gt; (to be added by Technical Editor) &lt;em&gt;Licensing provisions:&lt;/em&gt; GPLv3 &lt;em&gt;Programming language:&lt;/em&gt; Fortran &lt;em&gt;Supplementary material: Nature of problem:&lt;/em&gt; Nature of problem: Exact computation of eigenvalues and eigenvectors via direct diagonalization of the general nuclear pairing Hamiltonian for both odd- and even-nucleon configurations at zero temperature, ensuring high accuracy, enhanced numerical stability, and reduced computational time. &lt;em&gt;Solution method:&lt;/em&gt; Using the quasispin representation within the SU(2) algebra, we construct the pair-exchange matrix of the pairing Hamiltonian. To expedite the construction of the pairing matrix, we employ the binary representation to encode the information of paired states represented by matrix elements, while the reduction of computational time is achieved through the implementation of a sparse matrix diagonalization algorithm. An improved hash function, inspired by Ref. [1], is used to efficiently retrieve the indices of the pairing matrix, thereby speeding up its construction. A technique for determining the ground-state block in odd-nucleon configurations that significantly reduces the","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109906"},"PeriodicalIF":3.4,"publicationDate":"2025-10-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145576713","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
LeStrat-Net: Lebesgue style stratification for Monte Carlo simulations powered by machine learning LeStrat-Net:由机器学习驱动的蒙特卡罗模拟的勒贝格风格分层
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-24 DOI: 10.1016/j.cpc.2025.109907
Kayoung Ban , Myeonghun Park , Raymundo Ramos
We develop a machine learning algorithm to turn around stratification in Monte Carlo sampling. We use a different way to divide the domain space of the integrand, based on the height of the function being sampled, similar to what is done in Lebesgue integration. This means that isocontours of the function define regions that can have any shape depending on the behavior of the function. We take advantage of the capacity of neural networks to learn complicated functions in order to predict these complicated divisions and preclassify large samples of the domain space. From this preclassification, we can select the required number of points to perform a number of tasks such as variance reduction, integration and even event selection. The network ultimately defines the regions with what it learned and is also used to calculate the multi-dimensional volume of each region. Reference code with examples is publicly available on the web1.
我们开发了一种机器学习算法来扭转蒙特卡罗采样中的分层。我们使用一种不同的方法来划分被积函数的域空间,基于被采样函数的高度,类似于勒贝格积分。这意味着函数的等等高线定义的区域可以根据函数的行为具有任何形状。我们利用神经网络学习复杂函数的能力来预测这些复杂的划分,并对域空间的大样本进行预分类。从这种预分类中,我们可以选择所需的点数来执行一些任务,如方差缩减、积分甚至事件选择。该网络最终用它所学到的知识定义区域,并用于计算每个区域的多维体积。带有示例的参考代码在web上公开提供。
{"title":"LeStrat-Net: Lebesgue style stratification for Monte Carlo simulations powered by machine learning","authors":"Kayoung Ban ,&nbsp;Myeonghun Park ,&nbsp;Raymundo Ramos","doi":"10.1016/j.cpc.2025.109907","DOIUrl":"10.1016/j.cpc.2025.109907","url":null,"abstract":"<div><div>We develop a machine learning algorithm to turn around stratification in Monte Carlo sampling. We use a different way to divide the domain space of the integrand, based on the height of the function being sampled, similar to what is done in Lebesgue integration. This means that isocontours of the function define regions that can have any shape depending on the behavior of the function. We take advantage of the capacity of neural networks to learn complicated functions in order to predict these complicated divisions and preclassify large samples of the domain space. From this preclassification, we can select the required number of points to perform a number of tasks such as variance reduction, integration and even event selection. The network ultimately defines the regions with what it learned and is also used to calculate the multi-dimensional volume of each region. Reference code with examples is publicly available on the web<span><span><sup>1</sup></span></span>.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109907"},"PeriodicalIF":3.4,"publicationDate":"2025-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145414754","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
PyLIT: Reformulation and implementation of the analytic continuation problem using kernel representation methods 使用核表示方法的解析延拓问题的重新表述和实现
IF 3.4 2区 物理与天体物理 Q1 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS Pub Date : 2025-10-24 DOI: 10.1016/j.cpc.2025.109904
Alexander Benedix Robles , Phil-Alexander Hofmann , Thomas Chuna , Tobias Dornheim , Michael Hecht
Path integral Monte Carlo (PIMC) simulations are a cornerstone method for studying quantum many-body systems, such as warm dense matter and ultracold atoms. The analytic continuation needed to estimate dynamic quantities from these simulations amounts to an inverse Laplace transform, which is an ill-conditioned problem. If this challenging problem were surmounted, dynamical observables such as the dynamic structure factor (DSF) S(q,ω)—a key property e.g. in x-ray and neutron scattering experiments—could be extracted from the imaginary-time correlation functions F(q,τ) estimates. Although of fundamental importance, the analytic continuation problem remains challenging due to its ill-posedness, and state-of-the-art techniques continue to deliver unsatisfactory results. To address this challenge, we express the DSF as a linear combination of kernel functions with known Laplace transforms that have been tailored to satisfy its physical constraints, e.g., detailed balance. Then we employ least-squares optimization regularized with a Bayesian prior estimate to determine the coefficients of this linear combination. We explore various regularization term, such as the commonly used entropic regularizer, as well as the uncommon L2-distance and CDF L2-distance. We also explore techniques for setting the regularization weight. A key outcome and contribution is the open-source package PyLIT (Python Laplace Inverse Transform), which leverages Numba for C-level performance, unifying the presented formulations. PyLIT’s core functionality is kernel construction and optimization. In our applications, we find that PyLIT’s DSF estimates share many qualitative features with other more established methods. Drawing from our insights, we identify three key findings. Firstly, independent of the regularization choice, utilizing non-uniform grid point distributions reduced the number of unknowns and thus reduced our space of possible solutions. Secondly, the L2-distance and CDF L2-distance, previously unexplored regularizers, benefit from their linear gradients and perform about as well as entriopic regularization. Thirdly, future work can meaningfully combine regularized and stochastic optimization.
路径积分蒙特卡罗(PIMC)模拟是研究热致密物质和超冷原子等量子多体系统的基础方法。从这些模拟中估计动态量所需的解析延拓相当于一个拉普拉斯逆变换,这是一个病态问题。如果这个具有挑战性的问题被克服,动态观测值,如动态结构因子(DSF) S(q,ω),一个关键的性质,例如在x射线和中子散射实验中,可以从虚时间相关函数F(q,τ)估计中提取出来。虽然具有基本的重要性,但分析延拓问题由于其不适定性而仍然具有挑战性,并且最先进的技术继续提供令人不满意的结果。为了解决这一挑战,我们将DSF表示为具有已知拉普拉斯变换的核函数的线性组合,这些变换已被定制以满足其物理约束,例如,详细平衡。然后,我们采用正则化贝叶斯先验估计的最小二乘优化来确定该线性组合的系数。我们探讨了各种正则化项,如常用的熵正则化项,以及不常见的l2 -距离和CDF l2 -距离。我们还探讨了设置正则化权重的技术。一个关键的成果和贡献是开源包PyLIT (Python拉普拉斯逆变换),它利用Numba实现c级性能,统一了所提供的公式。PyLIT的核心功能是内核构建和优化。在我们的应用中,我们发现PyLIT的DSF估计与其他更成熟的方法具有许多定性特征。根据我们的见解,我们确定了三个关键发现。首先,独立于正则化选择,利用非均匀网格点分布减少了未知数的数量,从而减少了可能解的空间。其次,L2-distance和CDF L2-distance,这些之前未被探索的正则化器,受益于它们的线性梯度,并且在熵正则化方面表现良好。第三,未来的工作可以有意义地将正则化和随机优化结合起来。
{"title":"PyLIT: Reformulation and implementation of the analytic continuation problem using kernel representation methods","authors":"Alexander Benedix Robles ,&nbsp;Phil-Alexander Hofmann ,&nbsp;Thomas Chuna ,&nbsp;Tobias Dornheim ,&nbsp;Michael Hecht","doi":"10.1016/j.cpc.2025.109904","DOIUrl":"10.1016/j.cpc.2025.109904","url":null,"abstract":"<div><div>Path integral Monte Carlo (PIMC) simulations are a cornerstone method for studying quantum many-body systems, such as warm dense matter and ultracold atoms. The analytic continuation needed to estimate dynamic quantities from these simulations amounts to an inverse Laplace transform, which is an ill-conditioned problem. If this challenging problem were surmounted, dynamical observables such as the dynamic structure factor (DSF) <span><math><mrow><mi>S</mi><mo>(</mo><mi>q</mi><mo>,</mo><mi>ω</mi><mo>)</mo></mrow></math></span>—a key property e.g. in x-ray and neutron scattering experiments—could be extracted from the imaginary-time correlation functions <span><math><mrow><mi>F</mi><mo>(</mo><mi>q</mi><mo>,</mo><mi>τ</mi><mo>)</mo></mrow></math></span> estimates. Although of fundamental importance, the analytic continuation problem remains challenging due to its ill-posedness, and state-of-the-art techniques continue to deliver unsatisfactory results. To address this challenge, we express the DSF as a linear combination of kernel functions with known Laplace transforms that have been tailored to satisfy its physical constraints, <em>e.g.</em>, detailed balance. Then we employ least-squares optimization regularized with a Bayesian prior estimate to determine the coefficients of this linear combination. We explore various regularization term, such as the commonly used entropic regularizer, as well as the uncommon <span><math><msup><mi>L</mi><mn>2</mn></msup></math></span>-distance and CDF <span><math><msup><mi>L</mi><mn>2</mn></msup></math></span>-distance. We also explore techniques for setting the regularization weight. A key outcome and contribution is the open-source package PyLIT (<strong>Py</strong>thon <strong>L</strong>aplace <strong>I</strong>nverse <strong>T</strong>ransform), which leverages Numba for C-level performance, unifying the presented formulations. PyLIT’s core functionality is kernel construction and optimization. In our applications, we find that PyLIT’s DSF estimates share many qualitative features with other more established methods. Drawing from our insights, we identify three key findings. Firstly, independent of the regularization choice, utilizing non-uniform grid point distributions reduced the number of unknowns and thus reduced our space of possible solutions. Secondly, the <span><math><msub><mi>L</mi><mn>2</mn></msub></math></span>-distance and CDF <span><math><msup><mi>L</mi><mn>2</mn></msup></math></span>-distance, previously unexplored regularizers, benefit from their linear gradients and perform about as well as entriopic regularization. Thirdly, future work can meaningfully combine regularized and stochastic optimization.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"319 ","pages":"Article 109904"},"PeriodicalIF":3.4,"publicationDate":"2025-10-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"145414643","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Computer Physics Communications
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1