{"title":"基于量子光学的碱金属原子光学布洛赫速率方程求解工具。Julia中的jl包","authors":"Dace Osite, Marcis Auzinsh, Laima Busaite, Florian Gahbauer, Arturs Mozers","doi":"10.1016/j.cpc.2025.109678","DOIUrl":null,"url":null,"abstract":"<div><div>The Optical Bloch Equations (OBEs) are useful for calculating the evolution of the density matrix of an atomic ensemble under the action of some Hamiltonian. A common situation concerns atoms with hyperfine structure that interact with an external magnetic field and laser radiation. When the spectral linewidth of the laser radiation is much larger than the natural linewidth of the transition, the mode spacing is much smaller than the natural linewidth, and the spectral linewidth is much larger than the characteristic evolution time of the density matrix, the OBEs can be reduced to rate equations for Zeeman coherences. We present a toolkit for solving these rate equations based on the <span>QuantumOptics.jl</span> package in the Julia language. Using these tools makes the code much more readable than previous implementations in C/C++, but almost as fast and easier to parallelize. The toolkit includes functions for calculating the steady-state solution of density matrix of alkali metal atoms in the presence of an external magnetic field and exposed to a pump laser beam of arbitrary polarization and propagation direction. Based on this density matrix, the toolkit offers functions to determine the fluorescence intensity of arbitrary polarization and direction as well as the absorption of a weak probe beam, also of arbitrary polarization and propagation direction. It can also produce a plot of the electronic angular momentum distribution of the atom based on the calculated density matrix. The toolkit is available on Github and has been validated by comparing its results to legacy code written in C/C++ and experimental measurements. As a test case, we show how the toolkit can be used to optimize a simple atomic magnetometer.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> OpticalBlochEquations.jl</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/bbjh8bdcgj.1</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT</div><div><em>Programming language:</em> Julia</div><div><em>Supplementary material:</em> GitHub floriansLU/OpticalBlochEquations.jl</div><div><em>Nature of problem:</em> Interaction of alkali atoms with radiation and magnetic fields.</div><div><em>Solution method:</em> Numerically solving the Optical Bloch Rate Equations in steady-state conditions.</div><div><em>Additional comments including restrictions and unusual features:</em> The framework is based on the <span>QuantumOptics.jl</span> package and calculates fluorescence of a pump beam or absorption of a probe beam in an atomic ensemble in the presence of an external magnetic field.</div><div>The program solves not the full Optical Bloch Equations, but the restricted case when they can be reduced to rate equations for Zeeman coherences, which is possible under the following conditions:<ul><li><span>•</span><span><div>the spectral linewidth of the laser radiation Δ<em>ω</em> is much larger than the natural linewidth of the transition Γ (<span><math><mi>Δ</mi><mi>ω</mi><mo>≫</mo><mi>Γ</mi></math></span>);</div></span></li><li><span>•</span><span><div>the mode spacing <em>δω</em> is much smaller than the natural linewidth (<span><math><mi>δ</mi><mi>ω</mi><mo>≪</mo><mi>Γ</mi></math></span>; and</div></span></li><li><span>•</span><span><div>the spectral linewidth is much larger than the characteristic evolution time of the density matrix <span><math><msub><mrow><mi>Γ</mi></mrow><mrow><mi>p</mi></mrow></msub></math></span> (<span><math><mi>Δ</mi><mi>ω</mi><mo>≫</mo><msub><mrow><mi>Γ</mi></mrow><mrow><mi>p</mi></mrow></msub></math></span>).</div></span></li></ul> However, these general restrictions on the rate equations for Zeeman coherences do not apply for steady-state conditions, which is what the program is designed to solve. So for the purposes of this program, the only restriction is the steady-state condition.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"314 ","pages":"Article 109678"},"PeriodicalIF":3.4000,"publicationDate":"2025-05-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Toolkit for solving the Optical Bloch Rate Equations in alkali metal atoms based on the QuantumOptics.jl package in Julia\",\"authors\":\"Dace Osite, Marcis Auzinsh, Laima Busaite, Florian Gahbauer, Arturs Mozers\",\"doi\":\"10.1016/j.cpc.2025.109678\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>The Optical Bloch Equations (OBEs) are useful for calculating the evolution of the density matrix of an atomic ensemble under the action of some Hamiltonian. A common situation concerns atoms with hyperfine structure that interact with an external magnetic field and laser radiation. When the spectral linewidth of the laser radiation is much larger than the natural linewidth of the transition, the mode spacing is much smaller than the natural linewidth, and the spectral linewidth is much larger than the characteristic evolution time of the density matrix, the OBEs can be reduced to rate equations for Zeeman coherences. We present a toolkit for solving these rate equations based on the <span>QuantumOptics.jl</span> package in the Julia language. Using these tools makes the code much more readable than previous implementations in C/C++, but almost as fast and easier to parallelize. The toolkit includes functions for calculating the steady-state solution of density matrix of alkali metal atoms in the presence of an external magnetic field and exposed to a pump laser beam of arbitrary polarization and propagation direction. Based on this density matrix, the toolkit offers functions to determine the fluorescence intensity of arbitrary polarization and direction as well as the absorption of a weak probe beam, also of arbitrary polarization and propagation direction. It can also produce a plot of the electronic angular momentum distribution of the atom based on the calculated density matrix. The toolkit is available on Github and has been validated by comparing its results to legacy code written in C/C++ and experimental measurements. As a test case, we show how the toolkit can be used to optimize a simple atomic magnetometer.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> OpticalBlochEquations.jl</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/bbjh8bdcgj.1</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> MIT</div><div><em>Programming language:</em> Julia</div><div><em>Supplementary material:</em> GitHub floriansLU/OpticalBlochEquations.jl</div><div><em>Nature of problem:</em> Interaction of alkali atoms with radiation and magnetic fields.</div><div><em>Solution method:</em> Numerically solving the Optical Bloch Rate Equations in steady-state conditions.</div><div><em>Additional comments including restrictions and unusual features:</em> The framework is based on the <span>QuantumOptics.jl</span> package and calculates fluorescence of a pump beam or absorption of a probe beam in an atomic ensemble in the presence of an external magnetic field.</div><div>The program solves not the full Optical Bloch Equations, but the restricted case when they can be reduced to rate equations for Zeeman coherences, which is possible under the following conditions:<ul><li><span>•</span><span><div>the spectral linewidth of the laser radiation Δ<em>ω</em> is much larger than the natural linewidth of the transition Γ (<span><math><mi>Δ</mi><mi>ω</mi><mo>≫</mo><mi>Γ</mi></math></span>);</div></span></li><li><span>•</span><span><div>the mode spacing <em>δω</em> is much smaller than the natural linewidth (<span><math><mi>δ</mi><mi>ω</mi><mo>≪</mo><mi>Γ</mi></math></span>; and</div></span></li><li><span>•</span><span><div>the spectral linewidth is much larger than the characteristic evolution time of the density matrix <span><math><msub><mrow><mi>Γ</mi></mrow><mrow><mi>p</mi></mrow></msub></math></span> (<span><math><mi>Δ</mi><mi>ω</mi><mo>≫</mo><msub><mrow><mi>Γ</mi></mrow><mrow><mi>p</mi></mrow></msub></math></span>).</div></span></li></ul> However, these general restrictions on the rate equations for Zeeman coherences do not apply for steady-state conditions, which is what the program is designed to solve. So for the purposes of this program, the only restriction is the steady-state condition.</div></div>\",\"PeriodicalId\":285,\"journal\":{\"name\":\"Computer Physics Communications\",\"volume\":\"314 \",\"pages\":\"Article 109678\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-05-16\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computer Physics Communications\",\"FirstCategoryId\":\"101\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0010465525001808\",\"RegionNum\":2,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465525001808","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
A Toolkit for solving the Optical Bloch Rate Equations in alkali metal atoms based on the QuantumOptics.jl package in Julia
The Optical Bloch Equations (OBEs) are useful for calculating the evolution of the density matrix of an atomic ensemble under the action of some Hamiltonian. A common situation concerns atoms with hyperfine structure that interact with an external magnetic field and laser radiation. When the spectral linewidth of the laser radiation is much larger than the natural linewidth of the transition, the mode spacing is much smaller than the natural linewidth, and the spectral linewidth is much larger than the characteristic evolution time of the density matrix, the OBEs can be reduced to rate equations for Zeeman coherences. We present a toolkit for solving these rate equations based on the QuantumOptics.jl package in the Julia language. Using these tools makes the code much more readable than previous implementations in C/C++, but almost as fast and easier to parallelize. The toolkit includes functions for calculating the steady-state solution of density matrix of alkali metal atoms in the presence of an external magnetic field and exposed to a pump laser beam of arbitrary polarization and propagation direction. Based on this density matrix, the toolkit offers functions to determine the fluorescence intensity of arbitrary polarization and direction as well as the absorption of a weak probe beam, also of arbitrary polarization and propagation direction. It can also produce a plot of the electronic angular momentum distribution of the atom based on the calculated density matrix. The toolkit is available on Github and has been validated by comparing its results to legacy code written in C/C++ and experimental measurements. As a test case, we show how the toolkit can be used to optimize a simple atomic magnetometer.
Program summary
Program Title: OpticalBlochEquations.jl
CPC Library link to program files:https://doi.org/10.17632/bbjh8bdcgj.1
Nature of problem: Interaction of alkali atoms with radiation and magnetic fields.
Solution method: Numerically solving the Optical Bloch Rate Equations in steady-state conditions.
Additional comments including restrictions and unusual features: The framework is based on the QuantumOptics.jl package and calculates fluorescence of a pump beam or absorption of a probe beam in an atomic ensemble in the presence of an external magnetic field.
The program solves not the full Optical Bloch Equations, but the restricted case when they can be reduced to rate equations for Zeeman coherences, which is possible under the following conditions:
•
the spectral linewidth of the laser radiation Δω is much larger than the natural linewidth of the transition Γ ();
•
the mode spacing δω is much smaller than the natural linewidth (; and
•
the spectral linewidth is much larger than the characteristic evolution time of the density matrix ().
However, these general restrictions on the rate equations for Zeeman coherences do not apply for steady-state conditions, which is what the program is designed to solve. So for the purposes of this program, the only restriction is the steady-state condition.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.