Ab InitioWave Function Optimization for Light Atoms A PyTorch Framework for the Psiformer Architecture
DOI:
https://doi.org/10.17268/sel.mat.2026.01.05Palabras clave:
Many-electron Schrödinger equation, variational Monte Carlo, transformer, neural wave function, Slater determinant, quantum chemistryResumen
The application of deep neural networks to Variational Quantum Monte Carlo (VQMC) has significantly advanced the numerical approximation of ground-state energies for quantum many-body systems. Among these advancements, the Psiformer architecture—which leverages self-attention mechanisms to model antisymmetric electron wave functions—has demonstrated state-of-the-art accuracy. However, the original implementation is built exclusively within the JAX ecosystem, presenting a barrier to entry for the broader
research community that predominantly utilizes PyTorch. In the interest of scientific reproducibility and computational accessibility, we present an independent open-source PyTorch implementation of the Psiformer architecture. The model design follows von Glehn, Spencer, and Pfau (2023); the code and numerical experiments reported here are the author’s own. To validate the implementation, we compute ground-state energies for helium through oxygen and compare them to a Hartree–Fock baseline. Our results demonstrate that the PyTorch Psiformer consistently recovers significant electron correlation energy across all tested atoms, confirming that the architecture is correctly implemented and behaves as expected from variational theory. By making the framework openly available, this work lowers the barrier for researchers in computational mathematics, machine learning, and quantum chemistry who wish to experiment with transformer-based wave functions. The full source code is made publicly available to facilitate future experimentation and development.
Referencias
[1] Foulkes WMC, Mitas L, Needs RJ, Rajagopal G. Quantum Monte Carlo simulations of solids. Rev Mod Phys. 2001; 73:33.
[2] Hermann J, Schätzle Z, Noé F. Deep-neural-network solution of the electronic Schrödinger equation. Nat Chem. 2020; 12:891-897.
[3] Pfau J, Spencer JS, Matthews AGDG, Foulkes WMC. Ab initio solution of the many-electron Schrödinger equation with Deep neural networks. Phys Rev Research. 2020; 2:033429.
[4] von Glehn I, Spencer JS, Pfau D. A Self-Attention Ansatz for Ab-Initio Quantum Chemistry. International Conference on Learning Representations (ICLR); 2023.
[5] Kato T. On the eigenfunctions of many-particle systems in quantum mechanics. Commun Pure Appl Math. 1957; 10(2):151-177.
[6] Metropolis N, Rosenbluth AW, Rosenbluth MN, Teller AH, Teller E. Equation of state calculations by fast computing machines. J Chem Phys. 1953; 21(6):1087-1092.
[7] Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser L, Polosukhin I. Attention Is All You Need. Advances in Neural Information Processing Systems (NeurIPS); 2017. Vol. 30.
[8] Loshchilov I, Hutter F. DecoupledWeight Decay Regularization. International Conference on Learning Representations (ICLR); 2019.
[9] Paszke A, Gross S, Massa F, Lerer A, Bradbury J, Chanan G, et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. Advances in Neural Information Processing Systems (NeurIPS); 2019.
Descargas
Publicado
Número
Sección
Licencia
Derechos de autor 2026 Selecciones Matemáticas

Esta obra está bajo una licencia internacional Creative Commons Atribución 4.0.
Los autores/as que publiquen en esta revista aceptan las siguientes condiciones:
- Los autores/as conservan los derechos de autor y ceden a la revista el derecho de la primera publicación, con el trabajo registrado con la licencia de atribución de Creative CommonsAtribución 4.0 Internacional (CC BY 4.0) , que permite a terceros utilizar lo publicado siempre que mencionen la autoría del trabajo y a la primera publicación en esta revista.
- Los autores/as pueden realizar otros acuerdos contractuales independientes y adicionales para la distribución no exclusiva de la versión del artículo publicado en esta revista (p. ej., incluirlo en un repositorio institucional o publicarlo en un libro) siempre que indiquen claramente que el trabajo se publicó por primera vez en esta revista.
- Se permite y recomienda a los autores/as a publicar su trabajo en Internet (por ejemplo en páginas institucionales o personales) antes y durante el proceso de revisión y publicación, ya que puede conducir a intercambios productivos y a una mayor y más rápida difusión del trabajo publicado(Consultar: efecto del acceso abierto).









