Ab InitioWave Function Optimization for Light Atoms A PyTorch Framework for the Psiformer Architecture

Autores/as

  • Jorge Muñoz Laredo Escuela Profesional de Física, Universidad Nacional de Ingeniería, Perú.

DOI:

https://doi.org/10.17268/sel.mat.2026.01.05

Palabras clave:

Many-electron Schrödinger equation, variational Monte Carlo, transformer, neural wave function, Slater determinant, quantum chemistry

Resumen

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

2026-07-27

Cómo citar

Ab InitioWave Function Optimization for Light Atoms A PyTorch Framework for the Psiformer Architecture. (2026). Selecciones Matemáticas, 13(01), 70-76. https://doi.org/10.17268/sel.mat.2026.01.05