Explained

What is quantum error correction?

28 October 2026.

Quantum error correction protects a qubit by spreading its state over several physical qubits, then checking them for slips without ever reading the stored value. The group of physical qubits acts as one more reliable logical qubit.

It is the main reason a large quantum computer is still years of work away. This page works one small code by hand.

Why it is harder than for bits

An ordinary computer protects a bit by copying it. Store 0 as 000 and, if one copy flips, take a majority vote. Three problems stop that working directly for a qubit.

  • You cannot copy an unknown qubit, so there is nothing to vote on.
  • Reading a qubit to check it destroys its two amplitudes.
  • A qubit can slip in two ways. The bit can flip, and the sign between the amplitudes can flip, which the Z gate does and noise often does too.

Error correction gets round all three, and the three-qubit code below shows how.

The three-qubit code, worked by hand

Start with a qubit holding a|0⟩ + b|1⟩, say a = 0.6 and b = 0.8. Put two fresh qubits at 0 beside it and apply two CNOT gates from the first to the other two. The three qubits now hold 0.6 on 000 and 0.8 on 111.

This is not a copy. Each qubit alone has no definite amplitudes, since the three are entangled. The information about a and b lives in the group.

Now suppose noise flips one qubit. Rather than reading any of them, ask two questions, whether qubits 1 and 2 agree, and whether qubits 2 and 3 agree. Both questions have yes or no answers that are the same for 000 and for 111, so the answers reveal nothing about a or b.

Which qubit flipped1 and 2 agree?2 and 3 agree?Fix
NoneYesYesNothing
Qubit 1NoYesFlip qubit 1 back with X
Qubit 2NoNoFlip qubit 2 back with X
Qubit 3YesNoFlip qubit 3 back with X

The two answers point to one qubit, and an X gate on it restores 0.6 on 000 and 0.8 on 111. The amplitudes are untouched, so the stored value survives.

How much does it help

Say each qubit flips with chance 1 in 100. The code fails only if two or more of the three flip. That chance is about 3 × 0.01 × 0.01 = 0.0003, or 3 in 10,000. The error rate has dropped from 1 percent to 0.03 percent.

This code guards only against bit flips. A sign flip needs a matching code with the roles of the two arrangements swapped. Peter Shor showed in 1995 that nine qubits can guard against any single-qubit error of either kind, and later codes do the job with fewer qubits and better scaling.

Why it still costs so much

The checks themselves use gates, and gates make mistakes. Error correction only pays off when each gate is good enough that the checks add fewer errors than they remove. That break-even point is called the threshold. For the surface code, a leading design that lays qubits on a flat grid, it is about 1 percent error per operation.

Beyond the threshold, a bigger code gives a better logical qubit. Below it, bigger is worse. In 2024 Google reported a surface-code memory whose logical error rate fell each time the code grew, which is the first clear sign of working below the threshold. Estimates for breaking a 2048-bit RSA key put the cost near a million physical qubits, which shows how many are needed per logical one.

Where to go next

Error correction in the Nerdictionary gives the short definition. Can quantum computers break encryption? shows why the cost matters. Quantum vs classical computing sets errors beside the other differences.

Questions people ask

What is quantum error correction?

It is a way to protect a qubit by spreading its state across several physical qubits, then checking them for slips without reading the stored value. The group acts as one more reliable logical qubit.

Why can't you copy a qubit to protect it?

The no-cloning rule forbids copying an unknown quantum state. Error correction spreads the state over several qubits by entangling them, which is allowed, and does not copy it.

How do you find an error without reading the qubit?

You measure only whether neighbouring qubits agree, not what value they hold. The agreement checks reveal which qubit slipped and leave the stored amplitudes untouched.

What is the surface code?

It is a leading error-correcting code that arranges physical qubits in a flat grid with repeating checks. It tolerates error rates of about one percent per operation, which makes it a practical target for hardware.

Has quantum error correction been demonstrated?

Yes, in small cases. In 2024 Google reported a surface-code memory whose logical error rate fell as the code grew. A machine that runs long useful programs on many logical qubits has not yet been built.