HomeQuantum ComputingHHL Algorithm 2D: Quantum Linear System Solver

HHL Algorithm 2D: Quantum Linear System Solver

Interactive 2D simulation of the HHL quantum algorithm: watch phase-estimation clock dials read out eigenvalues, ancilla-rotation needles tilt for matrix inversion, and Ax=b get solved live via post-selected measurement, with a running histogram of kept vs. discarded shots.

Quantum Computing2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-quantum-computing-algorithms ↗ Open standalone

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.

⚙ Under the hood

A 2D dashboard simulation of the HHL quantum algorithm: per-eigenmode clock dials spin at a rate set by their eigenvalue (phase estimation), ancilla-rotation needles tilt by theta = 2*asin(C/lambda) to invert each eigenvalue, and a live shot-history strip runs independent Bernoulli trials at the computed success probability so the kept-fraction visibly converges to P(anc=1) = sum(beta_i^2 (C/lambda_i)^2).

quantum computingHHL algorithmlinear systemsphase estimationquantum algorithmspost-selectioncondition number2D visualization

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)