- Home
- Library
- Computational Quantum Field Theory
- Computing and Following Spectra
- Sparse Hermitian Eigenproblems
Sparse Hermitian Eigenproblems
A double-well Hamiltonian can have two energies close to one while their difference is only one part in a million. Which accuracy should an eigensolver deliver: six digits in each energy, or a reliable tunneling splitting? These are different requirements. An accurate solution of a finite matrix is also not yet an accurate solution of the differential operator from which that matrix was made.
We derive the projection and residual estimates behind sparse Hermitian eigensolvers, then calculate low double-well levels in a spatial grid and an oscillator basis. The calculation separates iteration, finite spacing, finite domain and basis truncation. It retains cases where a successful library return does not meet a separately recomputed residual test.
Preparation: The finite-difference article introduces sparse matrices and residuals; spectral collocation distinguishes a finite-box problem from a whole-line problem. The physical interpretation of the doublet is developed in tunnel splitting.
Specify the Hamiltonian and its domain
Use the established dimensionless quartic Hamiltonian
Its full-line realization is the self-adjoint operator associated with the closed form
on functions for which these terms and the norm are finite. The confining potential gives a discrete spectrum. Reflection commutes with , so the eigenfunctions can be chosen even or odd. In this one-dimensional problem their ordered parities alternate; the ground state is even. We seek three states in each sector and the splitting
The opening double-well spectrum uses with . To compare its table with ours multiply the energies by . The instanton article uses directly. Here is the primary case and tests the smaller splitting. These are quantum-mechanical examples of spectral resolution, not a calculation of a field-theory mass gap.
Two approximations will be used. A spatial grid first imposes walls at and then discretizes the interior. An oscillator basis lives on the full line but retains finitely many functions. Their error controls are consequently different.
Rayleigh–Ritz separates the space from the solver
Let the columns of be orthonormal trial vectors and write . Orthogonality of the residual to the trial space gives
For a Hermitian , is Hermitian. This is Rayleigh–Ritz: diagonalize the restriction of the quadratic form to the trial space. The same construction applies to trial functions in the form domain of . For ordered low levels, the minimum–maximum principle makes their Ritz values upper bounds; enlarging a nested trial space cannot increase them in exact arithmetic. Saad, §4.3.2, Proposition 4.4 (PDF) develops the finite-dimensional projection principle.
There are two distinct spaces in our oscillator calculation. First select the finite oscillator space, producing . Then an iterative eigensolver searches a smaller Krylov space inside that matrix problem. Tightening its tolerance changes the second approximation. It does not add oscillator functions or move a spatial wall. Changing the oscillator length also changes the trial spaces, so a monotonicity argument between different lengths is not automatic. Centered finite differences are not the same conforming Ritz construction and need their own refinement study.
For a normalized approximate eigenvector , recompute
Expanding in an orthonormal eigenbasis proves
The bound identifies some nearby eigenvalue of this matrix. It does not count missing modes, identify a particular level, or bound the error from the matrix to the continuum operator. Parity, ordered reference levels and convergence provide that additional information. A small spectral gap also makes an individual eigenvector less well determined, even when its eigenvalue is accurate. The relevant gap-dependent estimate is derived in Exercise 1. See Saad, §3.2.2, Corollary 3.3 and Theorem 3.9 (PDF).
Lanczos builds a small spectral problem
Starting from a normalized , the Krylov space is
For Hermitian , orthogonalization reduces in exact arithmetic to a three-term recurrence. Set and ; at step form
If , the generated space is invariant and this recurrence terminates. Otherwise the projected matrix is real symmetric and tridiagonal, with diagonal and off-diagonal . The matrix identity is
For a normalized eigenvector , the Ritz vector therefore has
This cheap residual estimate explains why one need not diagonalize the large matrix at every step. The recurrence and residual relation appear in Saad, Algorithm 6.5 and Proposition 6.8, pp. 130–131 and 137–138 (PDF).
Finite precision weakens the global orthogonality promised by the three-term recurrence. Reorthogonalization and restart strategies control storage and repeated directions; an apparent repeated Ritz value need not represent a physical degeneracy. Our production calculation uses SciPy's implicitly restarted Lanczos interface, rather than claiming that the bare recurrence is a robust replacement for it. We check orthogonality of the returned eigenvectors. The public interface does not expose every internal Lanczos vector, so this check is not a measurement of its complete internal basis.
A start vector confined to one exact symmetry sector cannot generate the other sector in exact arithmetic. We solve the even and odd matrices separately and use two specified starts within each. Accidental floating-point symmetry leakage is not a reliable mode-search strategy.
Shift-invert changes what is easy to find
Small eigenvalues can be slow to isolate by repeated multiplication with . For a real shift outside its spectrum, use
Eigenvalues close to become large in magnitude. Implementation means factoring once and solving a linear system for each application of ; it does not mean storing a dense inverse. We take , below the positive double-well spectrum. The which='LM' selection then concerns the transformed eigenvalues. Without this transformation, which='SA' requests the smallest algebraic eigenvalues of . These meanings are specified by the SciPy 1.13.1 eigsh documentation.
A residual for the transformed problem is not the original residual. If and , then
We always recompute . The tradeoff is also computational: a triangular solve and a sparse multiplication are different operations, and a factorization has a setup cost. Saad, §8.1.1, pp. 193–194 (PDF) explains this tradeoff. Iteration counts alone are not a universal speed comparison.
Construct two representations of the double well
A parity fold of the Dirichlet grid
Let and retain the full-grid points , with . The endpoints are fixed to zero. Its real symmetric matrix has
For , the normalized even and odd basis vectors are
The even sector also contains . Thus its first hopping is , while the odd sector begins at . This is an exact isometric reduction of the full grid. It preserves symmetry without imposing an unsymmetric one-sided approximation at the center. With unit Euclidean norm for a full-grid coefficient vector , the corresponding samples are .
The retained grid sequence is with , , and . A separate scan holds while changing through , , and . A direct tridiagonal solve of each finite matrix supplies a comparison for the iterative calculation; it is not called a continuum answer.
An oscillator basis on the full line
For a positive oscillator length , write
With projecting onto the first oscillator functions, the matrix is
The polynomial powers must be formed before projection. For example, contains paths through intermediate oscillator states outside the retained space; generally misses them. The companion forms powers with four auxiliary states and then restricts. Its independent small-matrix check integrates the oscillator functions and their derivatives with Gauss–Hermite quadrature.
We use and , , and . The existing instanton companion already retains reference levels and evidence from a changed-length comparison. Those results are reused without rerunning its suite. New matched direct solves also check all six levels of the sparse matrices.
A separate harmonic control replaces the potential by . At its matrix is diagonal with entries . The maximum matrix error is . The quartic matrix agrees with independent oscillator-function integrals within ; changing the quadrature order changes that check by .
What the calculation resolves
The following six levels are from the , sparse oscillator calculation. Digits are rounded to the scale supported by the comparisons, rather than printed to the full precision of the stored numbers.
| Parity and sector level | ||
|---|---|---|
| Even, | ||
| Odd, | ||
| Even, | ||
| Odd, | ||
| Even, | ||
| Odd, |
The splittings are approximately and . For the smaller gap, the distinction between iteration and representation is especially visible:
| Grid spacing | Relative gap difference, FD | Oscillator dimension | Relative gap difference, oscillator |
|---|---|---|---|
Both columns compare with the actually retained oscillator reference, and the rows are not matched computational budgets. The last oscillator differences reflect arithmetic and reference sensitivity, not evidence for another convergence order. The FD error decreases approximately quadratically even though its individual matrix eigenpairs have much smaller iterative errors. Removing the leading term with the two finest gaps gives a relative difference of about in this run; extrapolation and reference agreement are diagnostics, not certified error bounds.
At fixed and , moving the wall from to changes the sixth level by about . Moving it from to changes that level by about . This controls the domain for these six states at that spacing; it does not remove their remaining grid error.
For , representation error in the splitting remains after the finite matrix is accurately solved. The residual panel holds the grid fixed at , , uses the even sector and the first declared start, and reports the maximum original-operator residual over three returned states. The lower tolerance parameter does not force residuals below the arithmetic floor.
For a concrete cost comparison, at , , , the even-sector calculation with the first start gives:
| Method and requested tolerance | Matrix products | Factorizations | Solve pairs | Largest |
|---|---|---|---|---|
| Smallest algebraic, | ||||
| Smallest algebraic, | ||||
| Smallest algebraic, | ||||
| Shift-invert, |
A solve pair means the forward and backward triangular solves for one inverse application. Diagnostic residual products and matched direct reference solves are excluded from these counts. The matrix is tridiagonal, making this a favorable example for factorization; a higher-dimensional sparse problem can have much greater fill-in.
All 144 declared sector solves returned three converged eigenpairs. Nevertheless, 146 of the 432 returned pairs failed our separate test
This is not SciPy's complete internal stopping rule. It is a transparent original-operator diagnostic which the return status cannot replace. The returned-vector Gram defect never exceeded . Increasing the restart space from 24 to 48 vectors reduced direct matrix products in the finest-grid test, but doubled the inverse applications in its shift-invert counterpart and did not remove the residual floor.
The companion examples/computational-qft/spectral-problems/sparse_double_well.py retains both starts, all requested tolerances, solver status, partial-result handling, costs, residuals and matched direct comparisons. Its previous reference paths and selected values are explicit. The SciPy ARPACK tutorial provides the API background; the numerical statements here are from this declared calculation.
Summary
Sparse eigensolvers reduce a large Hermitian problem to repeated operator applications and small projected spectra. Solving symmetry sectors separately helps avoid missing states, shift-invert targets low or interior levels, and recomputed residuals test the actual matrix equation. Basis size, domain and spacing remain separate physical approximations. A small tunneling gap demands an absolute error scale that cannot be read from the relative accuracy of either energy alone.
Exercises
1. From a residual to a splitting requirement
For Hermitian , let have norm one, approximate energy and residual . Derive the nearby-eigenvalue bound. If a target eigenvalue is identified and every other eigenvalue is at least from , bound the component of outside its eigenspace. What absolute error condition is sufficient for relative splitting error at most ?
Solution
Expand in orthonormal eigenvectors. Then
because . This proves the nearby-eigenvalue bound. Restricting the sum to eigenvectors outside the target eigenspace gives
The statement concerns an eigenspace if the target is degenerate. Without identification or separation, it cannot label an individual state.
Let and for the correctly matched states. Then
It suffices to require . For and , equal per-level bounds must be about or smaller. A residual bound for a finite matrix addresses only its iterative error; domain, grid and basis differences must still be included before applying this statement to the full-line splitting.
2. Symmetry and the transformed problem
Derive the even grid's first hopping and explain why an exactly even Krylov start cannot find the odd ground state. Then derive the relation between original and shift-invert residuals and explain what fails if the shift equals an eigenvalue.
Solution
Writing the full-grid nearest-neighbor hopping as ,
If and , then for every . Hence its entire Krylov space is even. Roundoff-induced odd components do not replace an explicitly targeted odd-sector calculation.
From , inversion gives the same eigenvector with . For an approximate pair, multiply by :
Thus . If equals an eigenvalue, the inverse does not exist. Near a target eigenvalue the transformed separation may be useful, but the linear solve becomes ill-conditioned; this is a tradeoff, not permission to ignore the original residual.
References
- Saad, Yousef. Numerical Methods for Large Eigenvalue Problems. Revised edition, SIAM, 2011. Author's second-edition PDF. §3.2.2, pp. 61–63; §4.3.2, pp. 100–101; Proposition 6.8, pp. 130–131; §6.3.1, pp. 137–138; §8.1.1, pp. 193–194.
- SciPy developers. SciPy 1.13.1 Manual: ARPACK tutorial,
eigsh, andeigh_tridiagonal. Consulted selection, shift, inverse-operator, tolerance, starting-vector, partial-convergence and direct-driver definitions.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.