Site Tools


hhl

Table of Contents

HHL algorithm

HHL algorithm (Harrow-Hassidim-Lloyd algorithm) is a quantum algorithm for solving systems of linear equations where is an sparse Hermitian matrix. Proposed in 2009, it achieves an exponential speedup over classical linear solvers under certain conditions.

A classical sparse linear system solver (e.g. conjugate gradient) runs in time where is the sparsity (number of non-zero entries per row), is the condition number, and is the desired precision. HHL runs in time — exponentially faster in .

Algorithm

HHL encodes as a quantum state and applies quantum phase estimation to the operator to record the eigenvalues of in an ancilla register. A controlled rotation then maps for each eigencomponent, effectively computing . Finally, the ancilla is uncomputed by inverse QPE, leaving the solution state .

Caveats

The HHL speedup comes with important caveats. First, the input must be efficiently preparable as a quantum state — loading a classical vector of entries generally costs , eliminating the speedup. Second, the output is a quantum state , not a classical vector; reading out all components requires measurements. The speedup is therefore only useful when one needs a scalar property of , such as for some efficiently implementable observable . These limitations make practical use of HHL quite narrow, and it is not yet clear whether HHL provides a genuine end-to-end speedup for any commercially relevant problem.

hhl.md · Last modified: