Overview
Numerical methods enter quantum science in two ways. First, every classical simulation of a quantum system, from state-vector simulators to tensor networks and decoders, is numerical linear algebra and inherits its questions: how accurate is the answer in floating point, and how many matrix-vector products does it take? Second, many quantum algorithms are numerical methods in disguise. Quantum signal processing and the quantum singular value transformation apply a polynomial to the singular values of a block-encoded matrix, and their query cost is the degree of that polynomial. The approximation theory that governs classical Krylov methods therefore also governs these quantum algorithms, and the best classical Krylov method is the baseline any quantum linear-algebra speedup must beat.
This page collects the core results: conditioning and stability; Chebyshev polynomials, their extremal property and the accuracy of Chebyshev approximations; Krylov subspaces and the convergence of conjugate gradients; and optimal low-rank approximation. The standard references are Trefethen and Bau, Higham and Trefethen.
Intuition
A linear system is ill conditioned when the matrix almost maps some direction to zero: small changes in the data can then produce large changes in the solution. The condition number measures this, and no algorithm can be more accurate than the problem allows; a good (backward-stable) algorithm is one that is as accurate as the problem allows.
Many iterative methods build their answer as a polynomial in the matrix applied to a starting vector. How well they work is then a question about polynomials: can a low-degree polynomial be small on the spectrum while equal to one at the origin, or close to , or to ? Chebyshev polynomials answer such questions. They stay between and on an interval yet grow as fast as possible outside it, and the rate is governed by a square root: a polynomial of degree about can separate the interval from a point at distance . That square root is the common origin of the of conjugate gradients and of the quadratic speedups of amplitude amplification.
Prerequisites
Linear algebra, in particular the spectral theorem, the singular value decomposition and Schatten norms.
Mathematical Definitions
For an invertible the condition number (in the operator norm) is
and for singular . For Hermitian positive definite it is .
Perturbation bound. If and , then
because and . The bound is attained when lies along the singular vector of and along that of . Perturbing itself gives, to first order, the same amplification factor.
Floating point. IEEE double precision represents every real number in its range with relative error at most the unit roundoff . An algorithm is backward stable if its computed output is the exact output for data perturbed by a relative amount of order . Combining this with the perturbation bound gives the rule of thumb: a backward-stable solver loses about of the roughly 16 significant decimal digits. Gaussian elimination with partial pivoting, Householder QR and the standard SVD and symmetric eigenvalue algorithms are backward stable (Householder QR and SVD unconditionally; elimination up to a growth factor that is small in practice). See lectures 12–15 of Trefethen and Bau and chapters 1–2 of Higham.
For an integer the Chebyshev polynomial is the unique polynomial with
Equivalently , and ; this recurrence is the identity . has degree , leading coefficient for , and parity .
On : ; has its zeros at , ; and it equioscillates, taking the values at the points , . Outside the interval, for ,
so for , and is approximately for small . A degree of order therefore suffices for to reach a constant just outside the interval; by the extremal property no polynomial bounded by one on does better. This square root is the source of the in conjugate gradients and of the quadratic speedups of amplitude amplification and quantum signal processing.
Every Lipschitz continuous on has an absolutely convergent Chebyshev expansion , with for and half that for . See chapters 3 and 4 of Trefethen.
For , and , the Krylov subspace is
The spaces are nested, , and they stop growing once , which happens for some ; then is -invariant. Building them needs only the map , which is why Krylov methods suit large sparse matrices.
The Arnoldi iteration computes an orthonormal basis of by Gram–Schmidt on , and is upper Hessenberg. For Hermitian it is tridiagonal, the recurrence has three terms, and the method is the Lanczos iteration; the eigenvalues of the tridiagonal matrix (Ritz values) approximate extreme eigenvalues of well after few steps. A Krylov method picks an approximation , , by an optimality condition: conjugate gradients minimises the -norm of the error for positive definite , and GMRES minimises the residual. Their convergence is a polynomial approximation problem on the spectrum of . In floating point the Lanczos vectors lose orthogonality, which must be managed by reorthogonalisation or analysed explicitly. See lectures 32–38 of Trefethen and Bau.
Theorems
Polynomial approximation
Let and let be a real polynomial of degree at most with for all . Then for every real with ,
Consequently, among monic polynomials of degree , has the smallest maximum modulus on , namely .
Proof. Suppose and let , so . The polynomial has degree at most and . At the equioscillation points , , of the Chebyshev polynomial, and , so is nonzero with sign . By the intermediate value theorem has a zero strictly between consecutive , giving zeros in , and is one more. A nonzero polynomial of degree at most has at most zeros, so , contradicting .
For the monic statement, if a monic of degree had , then would satisfy on ; the same zero count applied to , which has degree at most and alternates in sign at the points , forces , a contradiction.
The theorem turns into lower bounds: a polynomial that stays bounded on and must reach a value at distance outside needs degree about (from the formula for outside the interval). Because the cost of quantum signal processing and the singular value transformation is the polynomial degree, such bounds limit what those methods can achieve. Chebyshev polynomials and best approximation are treated in Trefethen.
- Real polynomials of degree at most d, with d >= 1, and a real point x0 with |x0| > 1. A complex polynomial bounded by one on [-1, 1] obeys the same bound at real x0, by applying the statement to the real part of a unimodular multiple of it.
The Bernstein ellipse has foci and semi-axes and ; it shrinks to as . Under the stated hypothesis the coefficients of the Chebyshev expansion satisfy and for , and summing the tail gives the truncation bound (chapter 8 of Trefethen, which also bounds Chebyshev interpolation with twice the constant).
So a degree of suffices for accuracy : logarithmic in , with a constant set by how far extends analytically off the interval. Entire functions such as allow every ; there , and any fixed choice such as already gives a degree linear in plus logarithmic in . Sharper degree bounds for this function come from the Jacobi–Anger expansion used in Hamiltonian simulation. Functions with a singularity near the interval, such as on (pole at ) or near , force close to and hence large degree.
- f is analytic in the open Bernstein ellipse E_rho, the region bounded by the image of the circle |z| = rho under x = (z + 1/z)/2, with rho > 1, and |f| <= M there.
Krylov methods
Let be Hermitian positive definite with condition number , let , and write . For a starting point with residual , let be the minimiser of over (Krylov subspace). The conjugate-gradient method of Hestenes and Stiefel computes exactly these iterates, with one product by and short recurrences per step (lecture 38 of Trefethen and Bau). Then
so steps reduce the error by a factor . More precisely the ratio is at most over polynomials of degree at most with , so clustered spectra converge faster than the bound suggests.
Quantum linear-system algorithms are compared against this baseline. Their cost grows linearly in , and by the BQP-completeness of matrix inversion a substantially better power of would have implausible complexity consequences, whereas CG needs of order matrix-vector products. Any quantum advantage therefore lies in the dependence on the dimension and in the output model, not in (see quantum linear algebra).
- A is Hermitian positive definite with eigenvalues in [lambda_min, lambda_max] and kappa = lambda_max / lambda_min.
- Exact arithmetic; in floating point the bound describes the behaviour only approximately.
Proof · Proof of the conjugate-gradient convergence bound
Errors are polynomials. Let , so . Every has the form with , so where ranges over all polynomials of degree at most with . Hence .
Reduction to the spectrum. Expand in an orthonormal eigenbasis, . Then .
Chebyshev choice. Let , ; if the polynomial gives zero error after one step, so assume . Put and
It has degree and . For the argument of lies in , so by the properties of Chebyshev polynomials. Now
and , so . Combining the three steps gives the bound.
Iteration count. With , , so once . The argument is the one in lecture 38 of Trefethen and Bau.
Low-rank approximation
Let be a singular value decomposition and its truncation. Then for every matrix of rank at most ,
in the operator and Frobenius (Schatten and ) norms, and more generally for every unitarily invariant norm.
Proof of the operator-norm case. Set beyond the rank of and complete the to an orthonormal basis of . The kernel of has dimension at least , and has dimension , so they share a unit vector . Then . Equality for holds because has largest singular value .
The Frobenius-norm statement is due to Eckart and Young and the extension to all unitarily invariant norms to Mirsky; a textbook treatment is in Horn and Johnson. For a bipartite pure state written as a matrix, is the Schmidt truncation, so the theorem says that keeping the largest Schmidt coefficients is the optimal way to reduce Schmidt rank; this is the step repeated in matrix-product-state truncation.
- A is a complex m-by-n matrix with singular values sigma_1 >= sigma_2 >= ... and 0 <= k < min(m, n).
Worked Examples
Iterations of conjugate gradients
For a positive definite system with , the CG bound has ratio . Reducing the -norm error by requires , that is , so iterations (, while gives ). The simpler sufficient condition gives the same answer. Each iteration costs one product with ; for a sparse matrix with nonzeros per row that is about operations.
How fast Chebyshev polynomials grow
At , just outside , the exact value is , and the small- approximation is close. By the extremal property, no polynomial of degree bounded by one on exceeds at . To reach the value at one needs , i.e. , so degree .
Best rank-one approximation and conditioning
For , whose singular values were computed on the linear algebra page as and , the Eckart–Young theorem says that every rank-one matrix is at distance at least from in both the operator and the Frobenius norm, and the truncated SVD attains it. The condition number is : a relative error of in can produce at most a relative error of in the solution of .
Applications
- Quantum signal processing and QSVT. The degree of a polynomial approximation is the query cost; the Chebyshev truncation bound and the Jacobi–Anger expansion give the degrees used for Hamiltonian simulation, and the QSVT pseudoinverse needs a polynomial approximating away from zero.
- Quantum linear systems. Conjugate gradients is the classical baseline for quantum linear algebra and the HHL algorithm; the condition number appears in both.
- Tensor networks. Truncating Schmidt coefficients at each bond is the Eckart–Young truncation, as used in the matrix product state truncation bound.
- Ground-state problems. Lanczos iteration on a sparse Hamiltonian is the classical competitor of quantum phase estimation for extreme eigenvalues of systems small enough to store a state vector.
- Simulation and decoding. State-vector simulators and decoders run in floating point; conditioning and stability decide how many digits of a computed probability can be trusted (circuits and simulation).
Limitations and Common Pitfalls
- Exact-arithmetic theorems. The CG bound and Lanczos convergence assume exact arithmetic. In floating point, Lanczos vectors lose orthogonality and spurious copies of converged eigenvalues appear; CG may need more iterations than the bound predicts.
- The bound is for the worst spectrum. The CG bound uses only . Spectra with clusters or few distinct eigenvalues converge faster; comparing a quantum algorithm with the worst-case classical bound can overstate an advantage.
- Condition numbers are norm-dependent. in the operator norm differs from that in other norms; and of a block-encoded matrix in a quantum algorithm usually refers to the normalised matrix , whose smallest singular value is what matters.
- Polynomial degree is not total cost. In QSVT the degree counts queries to a block-encoding; the cost of each query and of computing the phase angles are separate.
- Approximation on an interval says nothing outside it. A polynomial approximating on can be huge just outside; an eigenvalue slightly outside the assumed interval (for example after a crude normalisation) can wreck a polynomial filter.
- Low rank is basis-free but norm-specific. The truncated SVD is optimal in unitarily invariant norms; for other error measures (entrywise, or fidelity of a normalised state after renormalisation) the optimal approximation can differ.