Magic State Distillation: Purifying T-Gates for Fault Tolerance
Interactive 3D simulator of the 15-to-1 magic state distillation protocol: watch 15 noisy T-states purify into one high-fidelity magic state and see the error rate collapse round by round following the epsilon-cubed suppression law.
Every fault-tolerant quantum computer needs the non-Clifford T gate to be universal, but T gates can't be protected by stabilizer codes the way Clifford gates can — instead, noisy copies of the "magic state" they consume are purified through distillation circuits. This simulator renders the Bravyi–Kitaev 15-to-1 protocol in 3D: fifteen noisy input states orbit and converge into a single higher-fidelity output state, while live readouts track the error rate collapsing as εout ≈ 35·εin³ per round, the physical qubit cost climbing as 15 per round, and the net suppression factor achieved after chaining up to three rounds.
Watch the 15-to-1 magic state distillation protocol purify noisy T-gate states in 3D, with the error rate collapsing round by round as epsilon-out approximately equals 35 times epsilon-in cubed.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install