Decoherence — unwanted interaction with the environment — is the central challenge for quantum computing. Quantum error correction (QEC) encodes one logical qubit into many physical qubits, allowing errors to be detected and corrected without ever measuring (and collapsing) the logical qubit. Shor's 9-qubit code (1995) proved in principle that fault-tolerant quantum computation is possible.
Key Concepts
Decoherence and Errors
Quantum errors come in two types: bit-flip errors (X: ∣0⟩↔∣1⟩) and phase-flip errors (Z: changes sign of ∣1⟩). A general single-qubit error is a combination of these. Environmental noise causes decoherence — the quantum state loses its superposition into a probabilistic mixture.
3-Qubit Bit-Flip Code
Encodes ∣0⟩L=∣000⟩ and ∣1⟩L=∣111⟩. A bit-flip on any one qubit is detected by measuring the parities Z1Z2 and Z2Z3 (syndrome measurements) without learning the logical state. The syndrome identifies which qubit flipped, enabling correction.
[[n, k, d]] Notation
A quantum error correcting code [[n,k,d]] uses n physical qubits to encode k logical qubits with distance d. Distance d codes can correct t=⌊(d−1)/2⌋ arbitrary errors and detect up to d−1 errors. The rate is k/n (information density).
Shor Code [[9,1,3]]
The first quantum error correcting code (Shor 1995). Uses 9 physical qubits to encode 1 logical qubit with distance 3. Concatenates the 3-qubit bit-flip code and the 3-qubit phase-flip code to correct arbitrary single-qubit errors. Proved fault-tolerant quantum computation is possible in principle.
Stabilizer Formalism
Most practical QEC codes are stabilizer codes, described by an Abelian group of Pauli operators (the stabilizer) that fix the code space. Syndrome measurement projects onto the +1 eigenspace of each stabilizer without measuring the logical qubit. The Steane [[7,1,3]] and surface codes are key examples.
Fault-Tolerance Threshold
If the physical error rate p is below a threshold pth≈0.1%−1% (depending on the code and architecture), concatenated error correction allows the logical error rate to be reduced arbitrarily. The threshold theorem proves fault-tolerant quantum computation is possible with realistic hardware.
Key Equations
Code Parameters
[[n,k,d]]: encodes k logical qubits in n physical, corrects t=⌊(d−1)/2⌋ errors
The three key parameters of any quantum error correcting code.
Syndrome Measurement
g1=Z1Z2,g2=Z2Z3(3-qubit code)
Syndrome operators for the 3-qubit bit-flip code; measure parities without collapsing logical qubit.
Logical Encoding (Bit-Flip Code)
∣0⟩L=∣000⟩,∣1⟩L=∣111⟩
Majority-vote encoding protects against single bit flips.
Fault Tolerance Threshold
p<pth≈10−2⟹arbitrarily low logical error rate possible
Below the threshold, more code concatenation always reduces error, enabling scalable quantum computing.
Worked Example
3-Qubit Bit-Flip Code: Detection and Correction
Problem
A logical qubit ∣ψ⟩L=α∣000⟩+β∣111⟩ suffers a bit-flip on the second qubit. Show how syndrome measurement detects and corrects the error.
Solution
After error on qubit 2: state becomes α∣010⟩+β∣101⟩.
Measure syndrome operator Z1Z2 (parity of qubits 1 and 2):