Skip to main content
KetQat

Appearance

Theorem · intermediate

Convergence of conjugate gradients

For a positive definite system with condition number kappa, the conjugate-gradient iterate after m steps has A-norm error at most 2((sqrt(kappa) - 1)/(sqrt(kappa) + 1))^m times the initial error, so O(sqrt(kappa) log(1/epsilon)) matrix-vector products suffice.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let AA be Hermitian positive definite with condition number κ\kappa, let Ax∗=bAx^{*} = b, and write ∥v∥A=v†Av\norm{v}_A = \sqrt{v\dagg A v}. For a starting point x0x_0 with residual r0=b−Ax0r_0 = b - Ax_0, let xmx_m be the minimiser of ∥x−x∗∥A\norm{x - x^{*}}_A over x∈x0+Km(A,r0)x \in x_0 + \mathcal{K}_m(A, r_0) (Krylov subspace). The conjugate-gradient method of Hestenes and Stiefel computes exactly these iterates, with one product by AA and short recurrences per step (lecture 38 of Trefethen and Bau). Then

∥xm−x∗∥A∥x0−x∗∥A  ≤  2(κ−1κ+1)m,\frac{\norm{x_m - x^{*}}_A}{\norm{x_0 - x^{*}}_A} \;\le\; 2\left( \frac{\sqrt{\kappa} - 1}{\sqrt{\kappa} + 1} \right)^{m} ,

so m≥12κ ln⁡(2/ϵ)m \ge \tfrac12\sqrt{\kappa}\,\ln(2/\epsilon) steps reduce the error by a factor ϵ\epsilon. More precisely the ratio is at most min⁡pmax⁡λ∈σ(A)∣p(λ)∣\min_p \max_{\lambda \in \sigma(A)} \abs{p(\lambda)} over polynomials pp of degree at most mm with p(0)=1p(0) = 1, so clustered spectra converge faster than the bound suggests.

Quantum linear-system algorithms are compared against this baseline. Their cost grows linearly in κ\kappa, and by the BQP-completeness of matrix inversion a substantially better power of κ\kappa would have implausible complexity consequences, whereas CG needs of order κ\sqrt{\kappa} matrix-vector products. Any quantum advantage therefore lies in the dependence on the dimension and in the output model, not in κ\kappa (see quantum linear algebra).

Holds when

  • 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 boundMachine-checked

Errors are polynomials. Let e0=x0−x∗e_0 = x_0 - x^{*}, so r0=−Ae0r_0 = -Ae_0. Every x∈x0+Km(A,r0)x \in x_0 + \mathcal{K}_m(A, r_0) has the form x=x0+q(A)r0x = x_0 + q(A)r_0 with deg⁡q<m\deg q < m, so x−x∗=(I−Aq(A))e0=p(A)e0x - x^{*} = (I - Aq(A))e_0 = p(A)e_0 where p(λ)=1−λq(λ)p(\lambda) = 1 - \lambda q(\lambda) ranges over all polynomials of degree at most mm with p(0)=1p(0) = 1. Hence ∥xm−x∗∥A=min⁡p∥p(A)e0∥A\norm{x_m - x^{*}}_A = \min_p \norm{p(A)e_0}_A.

Reduction to the spectrum. Expand e0=∑jcjuje_0 = \sum_j c_j u_j in an orthonormal eigenbasis, Auj=λjujAu_j = \lambda_j u_j. Then ∥p(A)e0∥A2=∑jλj∣p(λj)∣2∣cj∣2≤max⁡j∣p(λj)∣2 ∥e0∥A2\norm{p(A)e_0}_A^2 = \sum_j \lambda_j \abs{p(\lambda_j)}^2 \abs{c_j}^2 \le \max_j \abs{p(\lambda_j)}^2\, \norm{e_0}_A^2.

Chebyshev choice. Let a=λmin⁡a = \lambda_{\min}, b=λmax⁡b = \lambda_{\max}; if a=ba = b the polynomial 1−λ/a1 - \lambda/a gives zero error after one step, so assume a<ba < b. Put x0=(b+a)/(b−a)=(κ+1)/(κ−1)>1x_0 = (b + a)/(b - a) = (\kappa + 1)/(\kappa - 1) > 1 and

p(λ)=Tm((b+a−2λ)/(b−a))Tm(x0).p(\lambda) = \frac{T_m\big( (b + a - 2\lambda)/(b - a) \big)}{T_m(x_0)} .

It has degree mm and p(0)=1p(0) = 1. For λ∈[a,b]\lambda \in [a, b] the argument of TmT_m lies in [−1,1][-1, 1], so ∣p(λ)∣≤1/Tm(x0)\abs{p(\lambda)} \le 1/T_m(x_0) by the properties of Chebyshev polynomials. Now

x0+x02−1=κ+1+2κκ−1=(κ+1)2(κ−1)(κ+1)=κ+1κ−1,x_0 + \sqrt{x_0^2 - 1} = \frac{\kappa + 1 + 2\sqrt{\kappa}}{\kappa - 1} = \frac{(\sqrt{\kappa} + 1)^2}{(\sqrt{\kappa} - 1)(\sqrt{\kappa} + 1)} = \frac{\sqrt{\kappa} + 1}{\sqrt{\kappa} - 1} ,

and Tm(x0)≥12(x0+x02−1)mT_m(x_0) \ge \tfrac12 (x_0 + \sqrt{x_0^2 - 1})^m, so 1/Tm(x0)≤2((κ−1)/(κ+1))m1/T_m(x_0) \le 2\big((\sqrt{\kappa} - 1)/(\sqrt{\kappa} + 1)\big)^m. Combining the three steps gives the bound.

Iteration count. With ρ=(κ−1)/(κ+1)\rho = (\sqrt\kappa - 1)/(\sqrt\kappa + 1), ln⁡(1/ρ)=ln⁡1+1/κ1−1/κ≥2/κ\ln(1/\rho) = \ln\frac{1 + 1/\sqrt\kappa}{1 - 1/\sqrt\kappa} \ge 2/\sqrt{\kappa}, so 2ρm≤ϵ2\rho^m \le \epsilon once m≥12κln⁡(2/ϵ)m \ge \tfrac12\sqrt{\kappa}\ln(2/\epsilon). The argument is the one in lecture 38 of Trefethen and Bau.

Builds on
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. M. R. Hestenes, E. Stiefel (1952). Methods of conjugate gradients for solving linear systems. Journal of Research of the National Bureau of Standards 49, 409. doi:10.6028/jres.049.044
  2. Lloyd N. Trefethen, David Bau III (1997). Numerical Linear Algebra. Society for Industrial and Applied Mathematics. doi:10.1137/1.9780898719574

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Re-derived the bound from A-norm optimality over x0 + K_m (min over p(0)=1 of max |p| on the spectrum) with the shifted Chebyshev polynomial, using T_m((k+1)/(k-1)) >= ((sqrt k + 1)/(sqrt k - 1))^m / 2; verified that m >= sqrt(k) ln(2/eps)/2 suffices via ln((1+t)/(1-t)) >= 2t. Numerical check (python/numpy): CG on a 200x200 SPD matrix with kappa = 400 satisfies the bound at every step m = 1..39; the step-count claim holds for kappa in {10, 1e3, 1e6}, eps in {1e-2, 1e-8}. Lecture 38 = Conjugate Gradients confirmed from the Trefethen-Bau table of contents; Hestenes-Stiefel Crossref metadata match.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 538f15e6ea0943ef. Source file knowledge/records/theorem/conjugate-gradient-convergence.md in the content repository (readable there once it is public).