Skip to content

Teaching the Rayleigh–Ritz variational principle with neural-network trial wave functions

Oct 2026 · European journal of physics · Vol 47, pp. 055806 · 0 citations · 24 references
Physics

TL;DR

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, intended as a visual and modifiable framework for teaching variational reasoning and numerical error diagnostics.

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.

View source

Similar papers

Open access Sep 2026

A physics-informed neural network approach to simulating wave packets at different speeds: an educational demonstration

We present a physics-informed neural network (PINN) based numerical experiment for undergraduate wave physics, using one-dimensional Gaussian wave packet propagation to illustrate a complementary pedagogical perspective that is less readily accessible with conventional numerical methods. Unlike finite difference scheme...

Chuan-Ping Zhou, Mei-Qin Fu, Yuan-Yuan Liu · 0 citations
Open access Oct 2026

Introduction to the neural network-based variational Monte Carlo method

The construction of trial wave functions based on neural networks combined with the variational Monte Carlo method is discussed. The mathematical formulation for representing quantum states as neural networks is introduced. The advantages of employing such trial states and how machine learning works are considered. It...

William Freitas · 0 citations
#machine learning Preprint Oct 2026

The Physics Is the Network: Fast, Training-Free Neural Emulation

This work investigates PolyNets that couple a continuous-time neural representation of polynomial dynamics with a simple recurrent network for discrete-time integration and achieves accuracy comparable to the numerical solvers, including at amplitudes outside the learned models'training conditions.

L. Todorović, Kaushal Gianchandani, S. Ravela · 0 citations
Preprint Sep 2026

Electronic excitation spectra and recovery of excited states with neural network wave functions

Accurate electronic spectra require both a flexible description of electron correlation and a tractable treatment of the many states contributing to the response. We combine neural network wave functions with the Lorentz integral transform to calculate electronic spectra directly in continuous coordinates, without trun...

Xiao-Yu Zhang, Wei-Zhong Fu, Yi-Xiao Chen · 0 citations
Open access Nov 2026

Dual Physics-Informed Neural Networks Based on Traveling- Wave Decomposition for Boundary Reflection Solutions of Wave Equations

We propose a dual physics-informed neural network (Dual-PINN) for wave equations by incorporating the characteristic structure of the one-dimensional d’Alembert solution. Two neural branches are associated with the characteristic coordinates x−ct and x+ct to represent counter-propagating wave components, and their outp...

Xiao-Jun Sun, Fu-Jun Cao · 0 citations
Sep 2026

Learning quantum eigenspaces under geometric symmetry breaking with Rayleigh–Ritz physics-informed neural networks

We develop a Rayleigh–Ritz physics-informed neural formulation for quantum eigenproblems on geometry-parametrized domains, in which the neural representation and its validation diagnostic track the spectral object selected by the physics rather than the eigenvalue index alone. Tested on the one-dimensional well, the sq...

Leonardo dos Santos Vitoria, Mikael de Alcantara Santos, Gregório Cândido dos Santos Valadares de Almeida et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.