Level 3, Propeller head

Logical qubit

The row stands for the many physical qubits that carry one logical qubit, the protected choice. A scrambled phase can be noticed among them without a measurement that would spend that choice.

A logical qubit is the protected choice a long calculation is meant to use, spread across many physical qubits on the chip. A scrambled phase or a flipped bit can be noticed and repaired among the physical qubits without a measurement that would spend the logical state.

The noise note leaves the count of physical qubits per logical one to the courses next door. The bedroom diagram still has one wire, and that wire is where the phase is learned before anyone draws the pile of hardware to scale.

An example

Take the toy code from the error correction entry, where logical 0 is 000 and logical 1 is 111. A logical qubit with 0.6 for 0 and 0.8 for 1 is held as 0.6 on 000 and 0.8 on 111.

To run a gate on the logical qubit, you act on the physical ones. Press X on all three wires and 000 and 111 trade places, giving 0.8 on 000 and 0.6 on 111. The amplitudes swapped, as X swaps them on a bare qubit, so this is a logical X.

To read the logical qubit, measure all three wires and take the majority. A reading with two or three 1s, such as 111 or 101, counts as logical 1. With no noise, logical 0 comes up with chance 0.36 and logical 1 with chance 0.64, the same as the bare qubit.

A Z on just one wire flips the sign of the 111 term, giving 0.6 and −0.8. That is a logical Z, done by a single slip. So this toy has no guard against sign flips. Real codes need more physical qubits per logical one to guard against both.

What it is not

A logical qubit is not one special, better qubit somewhere on the chip. It is a pattern shared across many ordinary ones. The checks that run on it again and again do the protecting.

It is also not the count you usually see when a machine is described. That count is almost always of physical qubits. A machine needs many physical qubits for each logical one, so a large count of the first can mean a small count of the second.

The trade-off runs both ways. If each physical qubit is good enough, more physical qubits per logical one make each logical qubit safer. They also leave fewer logical qubits on the same chip, and more checks to run at every step.

The scheme that builds one is error correction, and each physical part is an ordinary qubit. The logical X in the example is the X gate pressed on every wire, and the slips come from decoherence. The note Noise scrambles the sign shows why the sign is the hard part to protect.

Used in

Longer explanation: What is quantum error correction?

All the words