Teaching the Rayleigh-Ritz variational principle with neural-network trial wave functions
Xiaobo Guo, Haoran Gu
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Gradient-estimator design overcomes trainability barriers in neural-network-based variational optimizationarXiv · 2026
- Polynomially efficient quantum enabled variational Monte Carlo for training neural-network quantum states for physico-chemical applicationsnpj Quantum Information · 2026
- NucleoNet: A Nuclear-Aware Determinant Ansatz for Multi-Geometry Neural Variational Monte CarloarXiv · 2026
- Implicitly Restarted Lanczos Enables Chemically Accurate Shallow Neural Quantum States.Precision chemistry · 2026
- Nuclear Responses with Neural-Network Quantum StatesPhysical Review Letters · 2026
- Foundation Neural-Network Quantum States for Molecular Potential Energy Surfaces in Second QuantizationarXiv · 2026