HomeQuantum ComputingShor's 9-Qubit Code

Shor's 9-Qubit Code

Interactive 3D simulator for Shor's 9-qubit code: watch independent bit-flip (X) and phase-flip (Z) errors strike 9 physical qubits, then see the inner 3-qubit majority-vote code and outer 3-block parity code correct them, with live logical-error-rate statistics.

Quantum Computing3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
quantum-error-correction-physics ↗ Open standalone

Shor's code was the first proof that quantum information can be protected from noise at all: it encodes one logical qubit into nine physical qubits arranged as three blocks of three, concatenating a 3-qubit repetition code against bit-flip (X) errors with a second 3-qubit repetition code — measured in the complementary basis — against phase-flip (Z) errors. This simulator strikes each of the 9 physical qubits with independent bit-flip and phase-flip noise, runs the inner majority-vote decoder within each block and the outer majority-vote decoder across blocks, and reports whether the logical qubit survived — plus a running logical-versus-physical error rate over many trials so you can see the code's threshold behavior directly.

⚙ Under the hood

Watch independent bit-flip and phase-flip errors strike Shor's 9-qubit code — three blocks of three physical qubits — and see the inner majority-vote decoder and outer block-parity decoder correct them, with a live logical-vs-physical error rate over many trials.

quantumerror-correctionshor-codequbitsstabilizer-codesdecoherence

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)