Teaching the Rayleigh–Ritz variational principle with neural-network trial wave functions
European Journal of Physics · 01.10.2026 · 47 (5) · 055806
DOI: 10.1088/1361-6404/aeb33f ↗Kurz gefasst
Fachartikel in der Zeitschrift European Journal of Physics, online erschienen am 29.10.2026. Verfasst von Xiaobo Guo und 1 weiteren Autor:innen. Die Arbeit nennt 32 Literaturangaben. Gefördert von: Development Fund Project of Shanghai University of Finance and Economics Zhejiang College for the Year 2024.
Abstract (Originalsprache)
We present a computational module for upper-level undergraduate quantum mechanics and computational physics courses in which neural networks serve as variational trial wave functions for the Rayleigh–Ritz method. Spatial derivatives are evaluated using automatic differentiation. The infinite square well and harmonic oscillator provide analytically solvable benchmarks, while a quartic anharmonic oscillator illustrates how numerical accuracy can be assessed without a simple analytical solution using network-size convergence, energy variance, and cross-network wave-function overlap. Boundary conditions, decaying envelopes, parity, and orthogonality are incorporated into the trial functions as physical constraints. The examples also demonstrate that excited states require orthogonality to lower states and that a small energy error does not necessarily imply an accurate wave function or node position. The module is intended as a visual and modifiable framework for teaching variational reasoning and numerical error diagnostics.
Förderung
- Development Fund Project of Shanghai University of Finance and Economics Zhejiang College for the Year 2024
Zitieren
APA
Guo, X., & Gu, H. (2026). Teaching the Rayleigh–Ritz variational principle with neural-network trial wave functions. European Journal of Physics, 47(5), 055806. https://doi.org/10.1088/1361-6404/aeb33f
Vancouver
Guo X, Gu H. Teaching the Rayleigh–Ritz variational principle with neural-network trial wave functions. European Journal of Physics. 2026;47(5):055806. doi:10.1088/1361-6404/aeb33f
BibTeX
@article{Guo2026,
author = {Guo, Xiaobo and Gu, Haoran},
title = {Teaching the Rayleigh–Ritz variational principle with neural-network trial wave functions},
journal = {European Journal of Physics},
year = {2026},
volume = {47},
number = {5},
pages = {055806},
doi = {10.1088/1361-6404/aeb33f}
}
EUVIMED