HHL Algorithm: Quantum Linear System Solver
Interactive 3D simulation of the HHL quantum algorithm: watch phase-estimation clocks read out eigenvalues, an ancilla qubit rotate for inversion, and Ax=b get solved via post-selected measurement.
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 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 see the ancilla's success probability and the resulting solution vector x update live — including the condition-number blowup that makes near-singular matrices brutal for HHL in practice.
Tune a 3-eigenvalue Hermitian matrix and an input vector to watch the HHL quantum algorithm read eigenvalues via phase-estimation clocks, rotate an ancilla qubit for inversion, and solve Ax=b live.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install