Sparse Eigensolvers
Sparse eigensolvers compute selected eigenvalues and eigenvectors of large matrices without forming or diagonalizing a dense matrix. In quantum mechanics, the matrix is often a sparse Hamiltonian, and the desired output is usually the ground state, a few low-lying excited states, or a small set of eigenvalues near a chosen energy.
The key idea is to learn spectral information from repeated matrix-vector products,
rather than from dense factorization of the whole matrix. This is why the storage and matrix-vector-product language of Sparse Matrices is prerequisite.
Problem Solved
Section titled “Problem Solved”Let be a large finite Hamiltonian matrix. A sparse eigensolver typically seeks a small number of eigenpairs
where and is the matrix dimension.
For closed-system bound-state calculations, is usually Hermitian. Then the eigenvalues are real, the eigenvectors can be chosen orthonormal, and the most common target is the lowest part of the spectrum:
Dense Matrix Diagonalization is still the right tool for modest matrices when the full spectrum is needed. Sparse eigensolvers are for the regime where storing and diagonalizing a dense matrix is the wrong computational model.
Krylov Subspaces
Section titled “Krylov Subspaces”Most standard sparse eigensolvers are Krylov methods. Starting from a nonzero vector , define
This subspace contains vectors of the form , where is a polynomial of degree less than . If has overlap with the desired eigenvectors, repeated application of builds a subspace that can approximate them.
The method then projects onto this smaller subspace, solves the small projected eigenvalue problem, and lifts the approximate eigenvectors back to the full space. The approximate eigenvalues are called Ritz values, and the approximate eigenvectors are called Ritz vectors. Their ordered upper-bound and interlacing properties are established in Upper Bounds and the Min–Max Principle.
The same Krylov-subspace idea can approximate for time evolution; see Matrix Exponentials Numerically.
Projection Picture
Section titled “Projection Picture”Let the columns of be an orthonormal basis for the Krylov subspace:
The projected matrix is
Solving
gives a Ritz pair for the original problem:
The whole art is to build a useful without losing orthogonality, wasting memory, or confusing convergence of Ritz values with convergence of eigenvectors.
Lanczos Method
Section titled “Lanczos Method”For Hermitian matrices, the Lanczos method builds an orthonormal Krylov basis using a three-term recurrence. With and , the recurrence has the schematic form
where
In exact arithmetic, the projected matrix is tridiagonal:
The eigenvalues of approximate selected eigenvalues of . For ground-state computations, the lowest Ritz value often converges rapidly if the starting vector has nonzero overlap with the ground state.
Lanczos is attractive because each iteration needs one matrix-vector product, a few vector operations, and only short recurrence data in exact arithmetic. In finite precision, however, loss of orthogonality can produce repeated or spurious Ritz values. Practical implementations use reorthogonalization, restarts, locking, or thick-restart variants.
Lanczos Method Preview applies this machinery to symmetry-resolved many-body ground states, residual evidence, and continued-fraction response spectra.
Arnoldi Method
Section titled “Arnoldi Method”Arnoldi iteration is the corresponding Krylov method for general, possibly non-Hermitian matrices. It builds an orthonormal basis satisfying
where is upper Hessenberg rather than tridiagonal.
Arnoldi is more expensive than Lanczos because orthogonalization against all previous basis vectors is usually required. It is the natural method when the operator is non-Hermitian, as in absorbing-boundary approximations, effective non-Hermitian Hamiltonians, Liouvillian problems, or some scattering discretizations.
For Hermitian Hamiltonians, Lanczos or a Hermitian-specialized variant is usually preferred.
Ground-State Computation
Section titled “Ground-State Computation”A common quantum workflow is:
- Choose a basis, symmetry sector, grid, or finite Hilbert-space cutoff.
- Implement the Hamiltonian as a sparse matrix or matrix-free operator.
- Choose an initial vector with overlap with the desired state.
- Run a Hermitian Krylov eigensolver for the lowest few Ritz pairs.
- Check residuals, orthogonality, symmetry quantum numbers, and convergence under numerical refinement.
The initial vector matters. If it is exactly orthogonal to the ground state because of a symmetry, the algorithm will not find that ground state. This can be a feature when one intentionally works inside a symmetry sector, but it is a bug when the sector was chosen accidentally.
For near-degenerate low-energy states, computing one eigenpair at a time can be misleading. A block method or a request for several low-lying states is often safer, because the physically stable object may be the degenerate subspace rather than a particular numerical basis vector inside it.
Residual Diagnostics
Section titled “Residual Diagnostics”For an approximate eigenpair , with , the residual is
The residual norm
is the most important diagnostic. A Ritz value that has stopped changing is not enough; the residual must be small at the scale required by the problem.
For a Hermitian , if , then
Thus the residual norm is the energy standard deviation of the trial state. This is a useful physics interpretation: an exact energy eigenstate has zero energy variance.
Convergence Checks
Section titled “Convergence Checks”Report more than the final eigenvalue. Useful checks include:
- residual norms for each reported eigenpair;
- orthogonality of computed eigenvectors;
- stability of eigenvalues under tighter solver tolerances;
- stability under grid refinement, basis enlargement, or symmetry-sector checks;
- agreement with a small dense calculation when possible;
- convergence of expectation values, not only energies;
- absence of duplicate ghost eigenvalues caused by loss of orthogonality.
Solver tolerance is not the same as physical accuracy. A tiny Krylov residual only says that the finite matrix eigenproblem was solved accurately. It does not prove that the finite matrix accurately approximates the continuum or many-body problem.
Interior Eigenvalues and Shift-Invert
Section titled “Interior Eigenvalues and Shift-Invert”Extremal eigenvalues, such as the lowest energy, are usually easiest. Eigenvalues near an interior target are harder. A standard transformation is shift-invert:
Eigenvalues near become large in magnitude after the transformation. A Krylov method can then target them as extremal eigenvalues of the transformed operator.
The price is that each iteration requires solving a linear system with . That may require sparse factorization, preconditioning, or an inner iterative solve. Shift-invert can be powerful, but it changes the computational problem substantially.
Preconditioning and Davidson-Type Methods
Section titled “Preconditioning and Davidson-Type Methods”Some sparse eigenvalue algorithms use approximate inverse information to accelerate convergence. Davidson and Jacobi-Davidson methods are important examples, especially when the Hamiltonian has a useful diagonal or block-diagonal approximation.
The basic idea is to correct a trial subspace using an approximate solution of a residual equation. These methods can be excellent in quantum chemistry and many-body calculations, but their reliability depends on the preconditioner and the spectral structure.
For a first pass, treat preconditioning as a controlled acceleration, not as a replacement for residual checks.
Degeneracy and Symmetry
Section titled “Degeneracy and Symmetry”Degeneracies require care. If several eigenvalues are equal or nearly equal, small numerical perturbations can rotate the computed eigenvectors inside the nearly degenerate subspace. The energies may be stable while individual eigenvectors are not.
Use symmetry quantum numbers, projectors, or block diagonalization when possible. If the physics depends on the subspace, check subspace convergence rather than the component-by-component agreement of individual eigenvectors.
This is the same mathematical warning that appears in dense diagonalization, but sparse iterative methods make it more visible because convergence can occur at different rates for different vectors in the cluster.
Common Mistakes
Section titled “Common Mistakes”- Asking a sparse eigensolver for too many eigenpairs and expecting dense-diagonalization information cheaply.
- Reporting Ritz values without residual norms.
- Treating solver convergence as continuum convergence.
- Using an initial vector with no overlap with the desired symmetry sector.
- Ignoring loss of orthogonality in Lanczos iteration.
- Mistaking ghost eigenvalues for physical degeneracies.
- Computing only one state when a nearly degenerate multiplet is physically relevant.
- Using shift-invert without accounting for the cost and conditioning of the shifted linear solves.
- Comparing eigenvectors across runs without fixing phases, degeneracy conventions, and symmetry sectors.
Cross-Links
Section titled “Cross-Links”- Sparse Matrices
- Matrix Exponentials Numerically
- Matrix Diagonalization
- Conditioning and Stability
- Floating-Point Arithmetic
- Discretization
- Finite Difference Methods
- Eigenvalues and Eigenvectors
- Hermitian Operators
- Orthonormal Bases
- Spectral Decomposition
- Imaginary-Time Projection Notebook
References
Section titled “References”- Y. Saad, Numerical Methods for Large Eigenvalue Problems, revised ed., SIAM, 2011.
- R. B. Lehoucq, D. C. Sorensen, and C. Yang, ARPACK Users’ Guide: Solution of Large-Scale Eigenvalue Problems with Implicitly Restarted Arnoldi Methods, SIAM, 1998.
- B. N. Parlett, The Symmetric Eigenvalue Problem, SIAM, 1998.
- J. K. Cullum and R. A. Willoughby, Lanczos Algorithms for Large Symmetric Eigenvalue Computations, SIAM, 2002.
- G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, 2013.
- L. N. Trefethen and D. Bau, Numerical Linear Algebra, SIAM, 1997.
Exercises
Section titled “Exercises”- Explain why every vector in can be written as for some polynomial of degree less than .
Solution
By definition, a vector in the Krylov subspace is a linear combination
This equals with
- Let be normalized and set for Hermitian . Show that the residual norm squared equals the energy variance.
Solution
Compute
Using Hermiticity and real ,
Since and , this becomes
- Why is Lanczos cheaper than Arnoldi for Hermitian matrices in exact arithmetic?
Solution
Hermiticity makes the projected Krylov matrix tridiagonal, so the new Lanczos vector only needs to be orthogonalized against the previous two basis directions in exact arithmetic. Arnoldi for a general matrix produces an upper-Hessenberg projected matrix and usually requires orthogonalization against all previous basis vectors.
- In shift-invert iteration, why do eigenvalues near become easier to target as extremal eigenvalues?
Solution
If , then
When is close to , the transformed eigenvalue has large magnitude. Krylov methods that target large-magnitude extremal eigenvalues can therefore find eigenvalues of near , provided the shifted linear solves are accurate and well controlled.