← Atlas

Algorithms · Quantum linear algebra

HHL linear-systems reference

A linear-algebra reference that forces the catalog to show input loading, conditioning, and output observability.

Strong empiricalUpdated

Open on the mapView frozen graph

|b⟩phase registersolution ancillaStep 1 of 3 · QPE(A) · on |b⟩, phase registerQPE(A)Step 2 of 3 · λ⁻¹ · on phase register, solution ancillaλ⁻¹Step 3 of 3 · Uncompute · on |b⟩, phase registerUncompute

3 steps across 3 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • Observable of x70%
  • Steps3
  • Wires3
  • InputSparse A, |b⟩
  • Output|x⟩ state
  • RiskReadout cost
  • Papers1

A part this method uses, worked through

This page says quantum phase estimation — here is a concrete, runnable instance of it.

Phase estimation of P(3*pi/4)

3 counting qubits estimating the phase of P(3π/4), which is 2π·3/8 exactly: a phase 3-bit QPE can represent exactly.

q0q1q2q3XHadamard layer(3)Controlled phase powers(3)QFT inverse(3)

Where it ends up

  • 1011100%

The counting register reads 011 = 3 with probability 1: angle/(2π) = 3/8, recovered exactly.

One of its steps changes only phase: the outcome probabilities stay put while the state does not.

Open this part in Studio

HHL estimates an observable of the solution ∣x⟩∝A−1∣b⟩|x\rangle\propto A^{-1}|b\rangle to a linear system Ax=bAx=b for Hermitian, ss-sparse AA (or made Hermitian via a standard block embedding). The circuit encodes AA's eigenvalues into a phase register via quantum phase estimation on eiAte^{iAt}, applies a controlled rotation proportional to λ−1\lambda^{-1} on an ancilla, and uncomputes the phase register, leaving ∣x⟩|x\rangle entangled with an ancilla flag. Under the coherent access model, circuit cost scales roughly as O(s κ2log⁡(1/ϵ))O(s\,\kappa^2\log(1/\epsilon)) where κ=∣λmax⁡∣/∣λmin⁡∣\kappa=|\lambda_{\max}|/|\lambda_{\min}| is AA's condition number and ϵ\epsilon the target precision — versus roughly O(sκ)O(s\kappa) for classical conjugate gradient, so the advantage narrows as κ\kappa grows. Crucially, ∣x⟩|x\rangle is a quantum state: reading out every component costs O(N)O(N) measurements and erases any speedup, so — matching this record's caveat — HHL is only useful when a single scalar observable of xx, not the full vector, is the actual goal.

References

Strong empirical
  • Community submission
  • Verified by construction
  • Peer-reviewed paper
Method
A two-dimensional Hermitian system is represented as a phase-estimation plus controlled-rotation reference.
Result
Reviewable algorithm sketch · output readout and condition-number costs remain explicit.
Caveat
HHL outputs a quantum state proportional to the solution; extracting all vector components can remove the theoretical benefit.
Quantum algorithm for linear systems of equations ↗
Kind
curated reference
Reviewed by
LeonaQ literature curation pass
License
Public bibliographic link; code is an original reference sketch
linear systemsPDEfinancecondition number
  • PDE and computational fluid dynamics observables
  • Risk and portfolio linear algebra
  • Finite-element and inverse-problem prototypes

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.