Educational Methods and Outcomes Open access Peer reviewed

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

Xiaobo Guo, Haoran Gu

European Journal of Physics | Oct 12, 2026

Scollr summary

What this paper is about

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.

Full abstract

Read the full abstract

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.

Direct answer

What can I do from this paper page?

Use this page to scan "Teaching the Rayleigh-Ritz variational principle with neural-network trial wave functions" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Educational Methods and Outcomes research, save the paper, or map adjacent work.

Authors

Researchers on this paper

Xiaobo Guo

first | Shanghai University of Finance and Economics | ORCID 0000-0002-2149-9758

Haoran Gu

last | Shanghai University of Finance and Economics

Research areas

Follow related topics

Citation

BibTeX

@article{Guo2026Teaching,
  title = {Teaching the Rayleigh-Ritz variational principle with neural-network trial wave functions},
  author = {Xiaobo Guo and Haoran Gu},
  journal = {European Journal of Physics},
  year = {2026},
  doi = {10.1088/1361-6404/aeb33f},
  url = {https://doi.org/10.1088/1361-6404/aeb33f}
}

FAQ

Using this paper in a discovery workflow

How do I find related work for this paper?

Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.

How can I keep up with new Educational Methods and Outcomes research papers?

Follow Educational Methods and Outcomes research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.

Can I cite this paper from this page?

This page includes a static BibTeX block for Teaching the Rayleigh-Ritz variational principle with neural-network trial wave functions. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.

Follow this research in Scollr

Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.

Get the app