College Physics ›› 2026, Vol. 45 ›› Issue (3): 91-.doi: 10.16854/j.cnki.1000-0712.250162

Previous Articles     Next Articles

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

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