大学物理 ›› 2026, Vol. 45 ›› Issue (3): 91-.doi: 10.16854/j.cnki.1000-0712.250162

• 大学生园地 • 上一篇    下一篇

变分法耦合Julia语言的氢分子电子密度分布模拟

谢亚琪,王新明,杜秋莹   

  1. 内蒙古师范大学 物理与电子信息学院,内蒙古 呼和浩特010022
  • 收稿日期:2025-03-26 修回日期:2025-05-21 出版日期:2026-05-15 发布日期:2026-06-04
  • 作者简介:谢亚琪(2004—),女,河北省邢台市,内蒙古师范大学物理与电子信息学院2022级本科生.
  • 基金资助:
    国家自然科学基金(12304298)资助

Simulation of the electron density distribution of hydrogen #br# molecules by the variational method coupled with the Julia language#br#

XIE Yaqi, WANG Xinming, DU Qiuying   

  1. College of Physics and Electronic Information, Inner Mongolia Normal University,
    Hohhot, Inner Mongolia 010022, China
  • Received:2025-03-26 Revised:2025-05-21 Online:2026-05-15 Published:2026-06-04

摘要: 本研究基于量子力学变分原理,对参数优化后的氢分子波函数应用Heitler-London价键理论,经由Julia语言的的高性能计算框架(多线程并行与向量化优化技术使整体计算效率提升6倍,@fastmath宏进一步降低15%计算开销),系统探究了氢分子体系的电子云分布规律.结果表明:平衡键长(R=1.4原子单位)下,核间电子密度峰值达0.35 a.u.-3,呈现典型共价键特征;当核间距增至R=3.0原子单位时,原子间电子密度趋近于零,对应分子解离过程.


关键词: 氢分子, 薛定谔方程, 变分法, Julia语言, 电子云分布

Abstract: Based on the variational principle of quantum mechanics, this study applied the Heitler-London valence bond theory to the hydrogen molecule wave function after parameter optimization. Through the high-performance computing framework of the Julia language (the multi-threading parallel and vectorization optimization techniques increased the overall computing efficiency by 6 times, and the @fastmath macro further reduced the computational cost by 15 %), the electron cloud distribution law of the hydrogen molecule system was systematically explored. The results show that at the equilibrium bond length (R = 1.4 atomic units), the peak value of the electron density between the nuclei reaches 0.35 a.u.-3, presenting typical covalent bond characteristics; when the nuclear distance increases to R = 3.0 atomic units, the electron density between the atoms approaches zero, corresponding to the molecular dissociation process.


Key words: hydrogen molecule, Schrdinger equation, variational method, Julia language, electron cloud distribution