Eigenmode tower (height = λᵢ) Phase-estimation clock dial Ancilla tilt needle (θᵢ) Output amplitude bar (βᵢ·C/λᵢ)

HHL Algorithm 2D: Quantum Linear System Solver

The Harrow–Hassidim–Lloyd (HHL) algorithm solves the linear system Ax = b exponentially faster than classical Gaussian elimination for sparse, well-conditioned Hermitian matrices — by encoding b's eigenbasis weights into quantum amplitudes, reading each eigenvalue through phase estimation, and inverting it with a controlled ancilla rotation. This 2D simulation lets you tune a 3-eigenvalue matrix A and an input vector b, watch each eigenmode's phase-estimation clock spin at a rate set by its eigenvalue and its ancilla needle tilt toward the inverted amplitude, and see the success probability, solution vector x, and a running many-shot measurement histogram update live — including the condition-number blowup that makes near-singular matrices brutal for HHL in practice.