Logical qubit

On this page 7

A logical qubit is a qubit of information that is encoded across many physical qubits with an error-correcting code, so that errors on individual hardware qubits can be detected and corrected without disturbing the stored quantum state. In quantum error correction, the logical qubit is the unit an algorithm actually computes with, while the physical qubits are the noisy components that implement it.

The goal is a qubit whose logical error rate is far lower than that of any physical qubit, ideally falling exponentially as the code grows. Achieving this requires physical error rates below a code-specific threshold, fast repeated syndrome measurement and a classical decoder, which makes logical qubits the central milestone on the path to fault-tolerant quantum computing.

How a logical qubit is encoded

A logical qubit stores its two basis states, written |0_L⟩ and |1_L⟩, as highly entangled states of many physical qubits. The encoding is chosen so that common errors, such as a bit flip or phase flip on one qubit, move the state into a distinguishable error space instead of turning one valid logical state into another.

Errors are found through stabilizer measurements: ancilla qubits repeatedly check parities of groups of data qubits. The pattern of parity results, called the syndrome, reveals where errors probably occurred without revealing the logical information itself. A classical decoder then infers the most likely correction.

Codes are described by the notation [[n, k, d]]: n physical qubits encode k logical qubits with code distance d. A code of distance d corrects any combination of up to (d − 1)/2 errors, rounded down. The table below lists well-known codes and how they encode a logical qubit.

CodeParametersNotable property
Shor code[[9, 1, 3]]First quantum code, historical
Steane code[[7, 1, 3]]Transversal Clifford gates
Surface codeAbout 2d² − 1 qubits for distance dNearest-neighbor layout, high threshold
Color code[[7, 1, 3]] smallest instanceTransversal Clifford group in 2D
Quantum LDPC codesMany logical qubits per blockLower overhead, longer-range links
Common codes used to build logical qubits

Logical error rate and code distance

The quality of a logical qubit is measured by its logical error rate per error-correction cycle. For the surface code, a widely used approximation is that the logical error rate scales like (p / p_th)^((d + 1)/2), where p is the physical error rate and p_th the threshold, which is roughly one percent under common noise models.

When p stays below p_th, each increase of the distance by two divides the logical error rate by a suppression factor often called Lambda. Experiments reported since 2023 on superconducting and neutral-atom platforms have shown logical qubits that improve as the code grows, which is the defining sign of operating below threshold.

The following table illustrates the trade-off between distance, qubit count and correctable errors for the surface code.

Distance dPhysical qubits per logical qubitErrors corrected per round
3171
5492
7973
251,24912
Surface code size by distance

Large algorithms such as factoring a 2048-bit RSA modulus need logical error rates near 10^−12 or lower, which under realistic assumptions means distances in the 20s and on the order of hundreds of thousands to about one million physical qubits in total, including space for magic state production.

Logical qubit compared with physical qubit

A physical qubit and a logical qubit differ in what they are made of, how they fail and how they are operated. The comparison below summarizes the practical differences.

PropertyPhysical qubitLogical qubit
ImplementationOne device, such as a transmon or an ionCode state over many devices
Typical error rateAbout 10^−2 to 10^−4 per operationDesigned to reach 10^−6 to 10^−15
Gate operationDirect control pulsesTransversal gates, lattice surgery, state injection
Lifetime limitCoherence times T1 and T2Decoder speed and code distance
Classical supportCalibration and controlReal-time decoding every cycle
Physical and logical qubits side by side

Operating on logical qubits

Computing with logical qubits requires fault-tolerant logical gates, which never let a single physical fault spread into an uncorrectable error. No code allows a universal gate set to be applied transversally, a limit known as the Eastin–Knill theorem, so practical architectures combine several techniques.

  • Transversal gates apply the same physical gate to each qubit in parallel and are naturally fault tolerant.
  • Lattice surgery merges and splits surface code patches to perform logical CNOT operations and measurements.
  • Magic state distillation prepares high-fidelity resource states that enable the non-Clifford T gate.
  • Logical measurement reads all data qubits and combines their results with the decoder output.

The non-Clifford gates usually dominate cost. Estimates for useful algorithms often devote a large share of the machine to magic state factories, and much current research aims to shrink that overhead.

Common misconceptions about logical qubits

Announcements of logical qubit counts are often not comparable with each other, because the term is used for systems of very different strength. Careful readers check several points.

  • Error detection is not correction: codes of distance 2 only flag errors, and results that rely on discarding flagged runs do not scale the same way.
  • One good cycle is not a memory: a logical qubit must stay protected over many rounds, including repeated syndrome extraction.
  • Better than physical is the key test: a logical qubit that fails more often than its best physical qubit gives no practical benefit.
  • Decoding must keep pace: if the classical decoder lags behind the cycle time, a backlog of syndromes grows and stalls the computation.

Understanding it simply

Physical qubits are fragile and make mistakes often. A logical qubit solves this by spreading one piece of information over many qubits, much as an important message might be written several times across a page so that a few smudges do not destroy it.

Helper qubits constantly check whether the copies still agree, without reading the message itself. When something goes wrong, a fast computer works out the likely mistake and corrects it. The more qubits share the job, the more reliable the result becomes, provided each piece of hardware is good enough to begin with.

Applied in practice

A hardware team building a superconducting processor wants to show that its error correction actually works. It encodes one logical qubit in a distance-3 surface code with 17 qubits, then in distance-5 and distance-7 versions using 49 and 97 qubits, and runs each memory for dozens of correction cycles.

A real-time decoder processes the syndrome data on dedicated classical hardware within the roughly one microsecond cycle time. The team measures the logical error rate per cycle for each distance and checks whether it falls as the code grows.

The results show the logical error rate dropping by about a factor of two at each distance step, and the distance-7 logical qubit outliving the best physical qubit on the chip. That outcome confirms the device operates below the error-correction threshold, which is the evidence investors and researchers look for before scaling further.