Common Variational Pitfalls
An energy calculation can fail even when the variational theorem is correct. The key distinction is between the exact energy of a trial state, the lowest energy available in its trial family, and the number returned by an optimizer or sampler. The cases below show how to tell these apart without mistaking a small numerical change for a small physical error.
Required background. The Variational and Bound Methods overview maps the methods; the Variational Principle, Trial Wavefunctions and Variational Parameters establish admissibility, bounds and stationarity.
An energy below a known ground level
Section titled “An energy below a known ground level”For a self-adjoint Hamiltonian bounded below, every nonzero admissible trial state satisfies
A deterministic result below a known exact ground energy therefore means that the computed quantity is not the stated Rayleigh quotient, the state is inadmissible, or the Hamiltonian differs. First rescale the trial state: must be unchanged for every nonzero complex . In a nonorthogonal basis the norm is , not .
A constant trial function in an infinite well
Section titled “A constant trial function in an infinite well”On , the normalized constant has zero second derivative inside the interval. Assigning it zero kinetic energy would place it below . The mistake is its nonzero boundary trace: the Dirichlet kinetic form has domain , which excludes this state.
By contrast, a continuous piecewise-linear function that vanishes at the walls can be admissible even though its second derivative contains delta distributions. Its kinetic form is . Do not impose every matching condition of an exact eigenfunction as a requirement on a variational trial function, or discard singular terms when using an operator formula. Robin or contact interactions can also contribute boundary or contact terms to the form. See Boundary Conditions and Unbounded Operators.
A noisy estimate below the bound
Section titled “A noisy estimate below the bound”A finite VMC sample can fall below the exact ground energy through ordinary statistical fluctuation. Autocorrelation, equilibration and selection of the lowest among many noisy evaluations matter. Re-evaluate the final state with fresh samples and a justified uncertainty estimate; the theorem constrains the exact expectation, not every random estimate. Variational Monte Carlo also explains when sampled local variance misses residual amplitude outside the trial state’s support.
The optimizer finds the wrong state
Section titled “The optimizer finds the wrong state”Ordinary energy minimization seeks the lowest accessible energy. If an excited state is intended, an unconstrained family can lower its energy by mixing in lower states. An exact invariant symmetry sector gives a bound on that sector’s lowest energy. Ordered Ritz values give excited-state bounds under the min–max hypotheses.
Orthogonality to an approximate ground vector is not enough: it can leave a small true-ground-state component in the putative excited state and yield an energy below the desired excitation. A penalty objective is a different Hamiltonian unless a theorem relates its optimum to the original target.
Fermionic antisymmetry is an admissibility condition for identical fermions. Finite-system parity, spin or angular-momentum labels may instead identify the target sector. A deliberately broken-symmetry mean-field state can be useful, but its symmetry content and the effect of projecting it should be assessed explicitly.
A stationary energy with a poor wavefunction
Section titled “A stationary energy with a poor wavefunction”At an interior stationary point, the residual , when defined, satisfies only
The missing residual may point outside every direction the family can represent. More coordinates do not necessarily add useful physical directions: a Gaussian can acquire many redundant parameters while still lacking a cusp, a nodal surface or a second separated lobe. Enlarge the family structurally and test observables sensitive to the omitted feature.
For , energy error is , while an observable connecting the two levels can change at order . A justified gap bounds the excited weight by , but without spectral information a good energy alone does not establish state accuracy.
Zero full energy variance identifies an eigenspace, which may be the wrong excited or degenerate eigenspace. Zero parameter gradient is weaker still. Check symmetry and state identity as well as energy, and distinguish a full residual from one projected into a truncated space.
A larger basis gives a higher energy
Section titled “A larger basis gives a higher energy”Exact minimization over nested admissible spaces with the same energy form cannot raise a fixed-index Ritz value. If it does, try expressing the old optimized state in the new calculation and evaluating it again. This separates three possibilities:
- The spaces are not nested because widths, box boundaries or overlap cutoffs changed.
- At least one nonlinear optimization stopped short of the global minimum.
- Matrix elements, quadrature, conditioning or arithmetic changed the objective.
Consistently dropping nearly dependent basis combinations preserves the bound for the smaller retained space. Altering overlap eigenvalues without the matching change to the Hamiltonian matrix does not generally represent a valid restriction.
Projection itself also needs care. The polynomial matrix is generally different from : the latter discards intermediate ladder paths that leave the retained space and return. The oscillator perturbation example explains the required padding.
A conforming Rayleigh–Ritz projection of the original form retains its upper bounds. Other discretizations, effective Hamiltonians or pseudopotentials require their own comparison with the original operator. Finite-box levels above a continuum threshold are not a sequence of infinite-volume bound states; stable values inside an essential spectral gap can also be spectral pollution.
Small optimization steps without convergence
Section titled “Small optimization steps without convergence”Raw gradients depend on coordinate units. Nondimensionalize widths, energies and lengths; use logarithmic coordinates for positive scales when appropriate. Compare analytic gradients with finite differences at several step sizes and start from physically different states when local minima are plausible.
A near-singular Hessian or state metric may signal redundancy, weak sensitivity or a singular coordinate chart. A pseudoinverse or damping can stabilize updates but changes the numerical search. Inspect the resulting physical state change, rather than judging convergence only by raw parameter increments. Variational Parameters develops these distinctions.
Methods disagree outside their common regime
Section titled “Methods disagree outside their common regime”For the quartic oscillator, the optimized Gaussian upper bound scales as at strong coupling, while first-order fixed-frequency perturbation theory grows linearly in . Their disagreement is expected: the weak-coupling truncation is no longer controlled. A finite variational result still has ansatz error, and a higher-order optimized perturbative expression need not retain a variational bound. Compare methods in an overlapping regime and distinguish asymptotic error estimates from exact inequalities.
The Time-Dependent Variational Principle has a different purpose: it chooses an allowed state velocity. Regular action TDVP conserves energy for time-independent even on an inaccurate manifold; generic real-manifold McLachlan dynamics need not. Thus energy conservation is not proof of accurate dynamics, and energy drift must be interpreted using the chosen projection and the integrator.
Exercises
Section titled “Exercises”A kinked trial state in the box
Section titled “A kinked trial state in the box”Set for and for . Normalize it and calculate its kinetic form. Compare with the exact Dirichlet ground energy.
Solution
, so . Since almost everywhere,
The kink prevents a square-integrable classical second derivative but does not invalidate the form-domain upper bound. Computing on each open half and dropping the central delta would falsely give zero.
Exact optimization in the wrong subspace
Section titled “Exact optimization in the wrong subspace”For , minimize the energy of . What do its gradient and full variance say at the minimum?
Solution
is minimized at modulo . The energy is , the gradient vanishes and the full variance is zero: this is an exact excited state. The family is entirely orthogonal to , so none of those successful checks establishes ground-state accuracy.
Recover the old state after enrichment
Section titled “Recover the old state after enrichment”A calculation gives and after adding a basis vector. Re-evaluating the old state in the new code gives again. What has this ruled out, and what remains?
Solution
The old state is representable and retains its energy, so the new search has an available candidate below . The reported value cannot be its exact ground-state minimum. Possible causes include incomplete optimization, selection of the wrong eigenvalue or a solver error. This one-state test does not establish that every new matrix element is correct, but it already disproves the claimed optimum.
References
Section titled “References”- W. M. C. Foulkes, L. Mitas, R. J. Needs, and G. Rajagopal, “Quantum Monte Carlo simulations of solids”, Reviews of Modern Physics 73, 33–83 (2001). Variational Monte Carlo, trial-state bias, optimization, and statistical diagnostics.
- T. Kato, Perturbation Theory for Linear Operators, 2nd ed. (Springer, 1976; 1995 reprint). Standard source for self-adjoint operators, closed forms, domains, and spectral approximation.
- J. K. L. MacDonald, “Successive Approximations by the Rayleigh–Ritz Variation Method”, Physical Review 43, 830–833 (1933). Classic discussion of successive variational eigenvalue approximations.
- R. K. Nesbet, Variational Principles and Methods in Theoretical Physics and Chemistry (Cambridge University Press, 2003). Broad graduate treatment of static and time-dependent variational methods.
- J. Nocedal and S. J. Wright, Numerical Optimization, 2nd ed. (Springer, 2006). Optimization diagnostics, scaling, constraints, line searches, and trust regions.
- M. Reed and B. Simon, Methods of Modern Mathematical Physics, Vol. IV: Analysis of Operators (Academic Press, 1978). Spectral and min–max foundations for Schrödinger operators.
- W. Ritz, “Über eine neue Methode zur Lösung gewisser Variationsprobleme der mathematischen Physik”, Journal für die reine und angewandte Mathematik 135, 1–61 (1909). Foundational Rayleigh–Ritz construction.
- A. Szabo and N. S. Ostlund, Modern Quantum Chemistry: Introduction to Advanced Electronic Structure Theory (Dover, 1996). Variational basis methods, symmetry, and nonorthogonal orbital calculations.