■ Change #75 · wiki.edited
HHL and quantum linear-system solvers: Normalize Markdown to canonical form
explainer.student
**The task.** Given a matrix $A$ (size $N\times N$) and a vector $b$, find $x$ with $Ax=b$. Gaussian elimination, from first-year linear algebra, costs about $N^3$ operations; iterative methods for sparse $A$ cost about $N$ times a factor depending on the **condition number** $\kappa$, the ratio of the largest to the smallest eigenvalue magnitude, which measures how sensitive the solution is to small changes.**HHL's idea.** Prepare $b$ as a quantum state $|b\rangle$ whose amplitudes are the entries of $b$ (normalised). Use phase estimation to write the eigenvalues $\lambda_j$ of $A$ into a register. Then rotate a helper qubit by an amount proportional to $1/\lambda_j$, which multiplies each eigencomponent by $1/\lambda_j$, exactly what $A^{-1}$ does. After undoing the phase estimation, the state is proportional to $A^{-1}b$. The cost grows like $\log N$ and polynomially in $\kappa$ and the sparsity; later algorithms reach the optimal $\kappa\log(1/\varepsilon)$.**The fine print.**+- Loading $b$: for arbitrary data this costs about $N$ steps unless special memory hardware exists.- Output: you get $|x\rangle$, a quantum state. You can estimate quantities like $x^TMx$, but writing out all $N$ entries costs about $N$ measurements.- $\kappa$ must be small; for discretised differential equations it often grows with $N$.**Why it is still important.** HHL proved that this matrix-inversion problem is BQP-complete, as hard as any quantum computation, so a fast classical algorithm in the same setting would be a shock. The open question is applications, not the algorithm.**Worked caveat.** For a finite-difference model of heat flow on a grid with $N$ points per side, $\kappa$ grows roughly like $N^2$, so the polynomial dependence on $\kappa$ can cancel much of the $\log N$ advantage unless the system is preconditioned.
hash 2291554db02346a65923f457a2f4b2a84844127130a9df9115c4670ad6a4465f
previous 826fe203e968898df747b9138c401801e9dcc208522436b728d2d7a59e9ec260