Perturbation Theory Benchmarks
This notebook benchmark compares perturbative predictions for the quartic anharmonic oscillator with direct diagonalization in a truncated harmonic-oscillator basis. Its purpose is to show where low-order perturbation theory is accurate, where it starts to drift, and how numerical truncation can be separated from approximation error.
Physical Problem
Section titled “Physical Problem”Use dimensionless oscillator units
and study
The unperturbed basis is the harmonic oscillator basis with
The coupling is the dimensionless perturbation parameter.
Analytic Targets
Section titled “Analytic Targets”For the ground state, perturbation theory gives
For general , the first-order shift is
The notebook should compare:
- unperturbed energies,
- first-order perturbation theory,
- second-order ground-state perturbation theory,
- exact diagonalization in a truncated basis.
Numerical Setup
Section titled “Numerical Setup”Construct the ladder operators in an -dimensional basis:
Then
Build the unperturbed Hamiltonian as the exact diagonal matrix
then add the truncated interaction matrix:
as an Hermitian matrix and diagonalize it.
Constructing directly as a diagonal matrix avoids boundary artifacts that can appear if is formed after truncating the ladder operators.
Because preserves parity, even and odd oscillator states do not mix. The notebook may diagonalize the full matrix or separate parity blocks as a convergence check.
Parameter Sweep
Section titled “Parameter Sweep”Use a grid such as
For each , compute low-lying eigenvalues for several truncations:
The benchmark should report only eigenvalues that are stable under increasing to the chosen tolerance.
Expected Figures
Section titled “Expected Figures”The notebook should generate:
- ground-state energy versus , with numerical diagonalization and first- and second-order perturbation curves;
- relative error versus on a log scale;
- convergence of with basis size for representative couplings;
- optionally, low-lying excited energies compared with first-order perturbation theory.
Axes should state the dimensionless units. Error plots should specify the numerical reference truncation.
Validation Checks
Section titled “Validation Checks”At , the numerical spectrum must reproduce
to machine precision for the represented states.
Hermiticity should be checked:
Eigenpair residuals should be small:
Parity should be conserved. Numerically, matrix elements coupling even and odd states should vanish up to roundoff.
Error Separation
Section titled “Error Separation”There are two different errors:
- perturbative error: difference between the perturbative formula and the converged numerical eigenvalue;
- truncation error: difference between numerical eigenvalues at finite and the large- reference.
Do not interpret a perturbative comparison until the truncation error is smaller than the effect being studied.
For the ground state, a useful diagnostic is
For small , this should scale approximately like until numerical error or higher-order asymptotic behavior becomes visible.
Known Failure Modes
Section titled “Known Failure Modes”- Too small a basis at larger , where the wavefunction samples larger .
- Comparing high excited states that are close to the truncation boundary.
- Treating agreement at one as proof of convergence across the sweep.
- Forgetting that the perturbation series is asymptotic at high order.
- Losing parity structure through indexing mistakes in the ladder operators.
Reproducibility Metadata
Section titled “Reproducibility Metadata”Record:
- programming language and version;
- linear algebra library and version;
- matrix dimension ;
- coupling grid;
- sorting convention for eigenvalues;
- numerical precision;
- residual tolerance;
- hardware or backend if relevant.
The calculation is deterministic and should not require random seeds.
Cross-Links
Section titled “Cross-Links”- Computational Notebooks
- Variational Optimization Notebook
- Anharmonic Oscillator by Perturbation Theory
- Anharmonic Oscillator
- Higher-Order Structure
- Matrix Diagonalization
- Rayleigh-Ritz Method
- Small Parameters and Error Estimates
References
Section titled “References”- C. M. Bender and T. T. Wu, “Anharmonic oscillator,” Physical Review 184, 1231-1260, 1969.
- G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, 2013.
- J. M. Thijssen, Computational Physics, 2nd ed., Cambridge University Press, 2007.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
Exercises
Section titled “Exercises”- Why should scale approximately as for sufficiently small ?
Solution
The second-order perturbative expression includes terms through . If the expansion is valid and the numerical result is converged, the first omitted perturbative term is order . Thus the difference should scale like until numerical error or asymptotic effects dominate.
- Why is parity a useful diagnostic in this benchmark?
Solution
The Hamiltonian contains only even powers of , so it commutes with parity. Even and odd oscillator basis states should not mix. Nonzero even-odd matrix elements indicate an indexing, basis, or operator-construction error.