Level 3, Propeller head

Error correction

The row is many physical qubits carrying one logical qubit, the protected choice. The extras let a scrambled phase be noticed without a measurement that would spend that choice.

Quantum error correction spreads one logical qubit, the protected choice you meant to compute with, across many physical qubits. The extra qubits let a scrambled phase or a flipped bit be noticed and repaired without measuring the logical state itself, which would destroy its superposition.

The pile of physical qubits per protected one is the cost printed on the diagram. Keith finds the pile gloomy, and Malcolm finds it the most useful sketch in the hardware papers, because the price of keeping a sign is drawn to scale.

An example

Here is a toy code against a bit flip, where noise swaps 0 and 1. Start with a qubit holding 0.6 for 0 and 0.8 for 1, plus two helpers certain to read 0. That is 0.6 on 000 and 0.8 on 100. A CNOT from wire 1 to wire 2, then one from wire 1 to wire 3, gives 0.6 on 000 and 0.8 on 111.

Let noise flip wire 2, giving 0.6 on 010 and 0.8 on 101. One check asks whether wires 1 and 2 agree. Another asks the same of wires 2 and 3. Each check writes its yes or no onto a spare qubit, and only the spare is measured. Both say no, in both terms, so wire 2 is the culprit. An X on wire 2 puts back 0.6 on 000 and 0.8 on 111. The checks never learn those numbers, because both terms give the same answers.

Say each wire flips with chance 0.1, independently. The code fails only if two or more flip. Two flips, on any of the three pairs of wires, have chance 3 × 0.1 × 0.1 × 0.9 = 0.027, and three have 0.001. That is 0.028 in all, against 0.1 for a bare qubit.

What it is not

Error correction is not making three copies and taking a vote. No machine can copy an unknown qubit. Three true copies would put amplitude on all eight readings, and the code uses only two. It spreads the information across entangled qubits instead.

This toy code also misses a sign flip. Flip the sign on any one wire and you get 0.6 on 000 and −0.8 on 111, which both checks pass. Real codes use more qubits to catch both kinds.

It pays only when each qubit is good enough. If slips are too common, the extra qubits and checks add more failures than they remove.

The protected qubit is a logical qubit, and many slips come from decoherence. The spreading step uses the controlled NOT. The coherence time is the limit it works against. The note Noise scrambles the sign shows why the sign goes first.

Used in

Longer explanation: What is quantum error correction?

All the words