Quantum subspace expansion
An eigenvalue method that estimates Hamiltonian and overlap matrices in a selected family of states derived from a reference state.
On this page
Definition, purpose and input assumptions
Quantum subspace expansion builds a small subspace around a prepared reference state and solves a classical generalized eigenvalue problem there. It can estimate excited states or improve energies when the chosen subspace captures useful directions. The quality depends on the reference, operator set and measured matrix elements.
Mathematical mechanism
Choose states |phi_i>=O_i|psi>. Define H_ij=<phi_i|H|phi_j> and S_ij=<phi_i|phi_j>. The Ritz values solve Hc=E Sc. The overlap matrix is necessary because the basis states need not be orthogonal or normalized. Exact S is positive semidefinite, but finite-sample errors can spoil that property.
Fully solved reference example
Let H=diag(0,2), phi0=|0> and phi1=|+>. Then S=[[1,1/sqrt(2)],[1/sqrt(2),1]], and the projected Hamiltonian matrix is [[0,0],[0,1]]. The determinant det(H-E S) is -E+(E^2/2), giving roots E=0 and 2. The two nonorthogonal states span the full qubit space, so the exact spectrum is recovered.
If S were incorrectly replaced by I, the eigenvalues would be 0 and 1, which is wrong. This calculation demonstrates that overlap measurement is part of the physics, not merely a numerical technicality.
Limitations and classical comparison
Nearly dependent basis states make S ill-conditioned and can amplify noise. Regularization or truncating small overlap eigenvalues changes the effective subspace and must be disclosed. Classical Rayleigh-Ritz and Krylov methods use the same variational principle; the quantum contribution is access to selected matrix elements of hard-to-represent states.
Scientific relationships
Subspace expansion generalizes a single-state variational estimate and is related to quantum Lanczos constructions. It uses expectation and overlap estimation, with classical generalized eigensolving completing the calculation.
A two-vector Krylov subspace in a three-level problem
Let H=diag(0,1,4) and |ψ>=(|0>+|1>+|2>)/√3. Choose |φ0>=|ψ> and |φ1>=H|ψ>=(|1>+4|2>)/√3. Their overlap matrix is S=[[1,5/3],[5/3,17/3]], and their projected Hamiltonian is Hsub=[[5/3,17/3],[17/3,65/3]]. The entries are successive moments of H in the reference state, with the normalization retained in every matrix.
Multiplying both matrices by three simplifies the determinant calculation without changing generalized eigenvalues. The equation det(Hsub-ES)=0 becomes (5-3E)(65-17E)-(17-5E)²=0, or 13E²-55E+18=0. The two Ritz values are (55-√2089)/26 and (55+√2089)/26. They lie between zero and one, and between one and four, respectively, as expected from a two-dimensional variational subspace of this three-dimensional Hermitian problem.
For either root, choose coefficients proportional to (1,r), where r=(3E-5)/(17-5E). The represented vector is proportional to (1,1+r,1+4r), and its normalization uses the squared norm of that physical vector. The Euclidean norm 1+r² of the coefficient pair is not the correct normalization because the basis states are nonorthogonal. This explicit reconstruction connects the classical eigenvector coefficients back to an actual quantum state.
Residuals and enlargement to the full space
The Ritz residual is (H-E)|v> for the normalized reconstructed vector. The projected equation makes it orthogonal to both |φ0> and |φ1>, but it is not zero in the full three-dimensional space. Thus exact diagonalization of the two-by-two generalized problem does not imply an exact eigenstate of H. The residual norm or a separate energy-variance calculation measures the remaining full-space error.
Adding |φ2>=H²|ψ>=(|1>+16|2>)/√3 spans the entire space because the three eigenvalues are distinct and all initial overlaps are nonzero. The corresponding Vandermonde-type basis matrix is invertible, so the enlarged generalized eigenproblem returns exactly 0,1,4. No quantum advantage is involved in this small calculation; it demonstrates what subspace growth can accomplish when the needed matrix elements are available.
The exact ground vector can be constructed by the polynomial I-(5/4)H+(1/4)H². This polynomial equals one at energy zero and zero at energies one and four. Applied to |ψ>, it gives |0>/√3. Likewise, H(4-H)/3 isolates |1>/√3, and H(H-1)/12 isolates |2>/√3. Multiplying each by √3 normalizes it. These interpolation polynomials explicitly recover all three eigenstates from the enlarged basis.
The three-by-three overlap matrix contains moments through fourth order, while the projected Hamiltonian requires moments through fifth order. In an operator-generated quantum subspace, those moments or products can have a measurement cost much larger than the original single energy. Increasing subspace dimension therefore trades improved representational flexibility for additional measurements and classical matrix processing.
A basis change that preserves the span but harms conditioning
Replace the second basis vector by |φ1~>=|φ0>+εH|ψ>, with ε nonzero. The two-dimensional span is unchanged, so exact generalized eigenvalues remain unchanged. The new overlap matrix has entries 1, 1+5ε/3, and 1+10ε/3+17ε²/3. Its determinant is 26ε²/9. As ε approaches zero, its largest eigenvalue approaches two and its smallest is approximately 13ε²/9.
The condition number therefore grows approximately as 18/(13ε²). A purely coordinate change can make the measured matrix problem numerically difficult even though the underlying physical subspace and ideal Ritz values are identical. Small errors in entries can overwhelm the tiny overlap eigenvalue, and whitening by its inverse square root magnifies those errors. This is why basis selection and overlap diagnostics are substantive parts of a subspace method.
At ε=0 the two vectors are exactly identical and the span genuinely loses a dimension. Removing the null direction is then exact. For a small nonzero ε, discarding its small overlap eigenvalue changes the subspace and can remove a physically useful direction. A numerical cutoff should therefore be reported as an approximation choice rather than an automatic restoration of the exact problem.
Variational interpretation and measurement limits
With exact Hermitian matrices and a positive overlap metric on the retained space, the lowest Ritz value is an upper bound on the true ground energy. Expanding nested subspaces cannot raise that ideal minimum. Finite-shot estimates can violate Hermiticity or positive semidefiniteness, and an unconstrained generalized eigensolver may then return spurious values outside the expected bounds. Symmetrizing or regularizing the matrices is a new processing step whose effect should be assessed.
Preparing the reference state does not automatically prepare every reconstructed Ritz vector. The eigenproblem can produce an energy estimate from measured matrix elements, while coherent preparation of Σj cjOj|ψ> may require an additional linear-combination construction and normalization. These are different output tasks. A claim to have computed an excited energy should not be silently upgraded to a claim to have prepared its state.
Sources
- Hybrid Quantum-Classical Hierarchy for Mitigation of Decoherence and Determination of Excited States
Verification scope
Recorded source check ·
Full primary text indexed, 10 pages, 1317 lines; projected Hamiltonian and nonorthogonal overlap matrix framework inspected.
Source-access record and selected assumptions only; no exhaustive external review, new hardware run, or generalized empirical-advantage claim.
Verification scope
Recorded source check ·
Full primary text indexed, 18 pages, 2197 lines; normalized imaginary-time evolution, local-domain approximation and finite-correlation-length assumptions inspected.
Source-access record and selected assumptions only; no exhaustive external review, new hardware run, or generalized empirical-advantage claim.