HomeQuantum PhysicsQuantum Error Correction Circuit: 3-Qubit Bit-Flip Code

Quantum Error Correction Circuit: 3-Qubit Bit-Flip Code

A 2D quantum-circuit view of the 3-qubit bit-flip code: watch CNOT encoding, injected X errors, syndrome-extraction ancillas and classically-controlled correction run gate-by-gate on a real 5-qubit statevector simulator, with a live basis-state probability histogram and empirical-vs-theoretical failure-rate chart.

Quantum Physics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-quantum-information-theory ↗ Open standalone

This is the circuit-model twin of the site's Bloch-sphere 3-qubit bit-flip code simulator: the same quantum repetition code, independently implemented as a genuine 5-qubit statevector simulator (32 complex amplitudes covering 3 data qubits and 2 syndrome ancillas) that applies real CNOT and Pauli-X gate matrices in the order a physical circuit would. Encoding entangles a chosen logical qubit into α|000⟩+β|111⟩; injected bit-flip errors act as unitary X gates; syndrome extraction uses two ancilla CNOT pairs and projective measurement to identify a faulty qubit without ever collapsing the encoded superposition; and correction plus a decoding circuit recover the original logical amplitudes exactly for any single-qubit error. Watch the live gate-by-gate circuit diagram, a basis-state probability histogram read straight off the statevector, and a chart comparing the analytic 3p²−2p³ failure-rate formula against your own running Monte-Carlo trials.

⚙ Under the hood

A 2D quantum-circuit view of the 3-qubit bit-flip code: watch CNOT encoding, injected X errors, syndrome-extraction ancillas and classically-controlled correction run gate-by-gate on a real 5-qubit statevector simulator, with a live basis-state probability histogram and empirical-vs-theoretical failure-rate chart.

quantum computingquantum error correctionqubitquantum circuitstatevector simulationstabilizer codemonte carlo

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

What did you find?

Add reproduction steps (optional)