Logical vs Physical Qubits
Every computation ultimately runs on physical hardware, but the hardware is noisy. The concept of a logical qubit is the bridge between what a quantum algorithm demands (a perfect, noise-free qubit) and what hardware actually provides (an imperfect, decoherence-prone device).
Physical qubits
A physical qubit is a two-level quantum system realized in hardware: a superconducting transmon, a trapped ion, a photonic mode, a spin in a semiconductor, or any other controllable system with states and . Physical qubits are the atoms of quantum hardware.
Every physical qubit interacts, however weakly, with its surroundings. That interaction causes decoherence: the qubit's state gradually drifts away from the intended value. Two timescales characterize this:
- — the relaxation time, measuring how long the excited state survives before decaying to .
- — the dephasing time (), measuring how long a superposition retains a definite relative phase.
Current superconducting hardware achieves and of hundreds of microseconds, while a two-qubit gate takes roughly tens of nanoseconds. The ratio gives only a few thousand error-free operations before significant errors accumulate — far fewer than a useful algorithm requires.
The logical qubit
A logical qubit is an information-carrying degree of freedom that is encoded into several physical qubits in such a way that errors on any small subset of those physical qubits can be detected and corrected without ever measuring the logical data.
Formally, a quantum error-correcting code with physical qubits and one logical qubit maps the two-dimensional Hilbert space of the logical qubit into a two-dimensional code space . The two orthonormal vectors spanning are called the logical basis states, denoted and . An arbitrary logical state lives entirely within as long as no errors have occurred.
For the three-qubit bit-flip code covered earlier in this module, the code space is spanned by
A single-qubit bit flip moves the state out of (for example, is not a valid codeword). Syndrome measurement detects this excursion without revealing whether the logical state is , , or a superposition thereof.
The encoding ratio
The number of physical qubits needed per logical qubit is called the encoding overhead or code rate. For the simple three-qubit repetition code the ratio is 3:1; for the nine-qubit Shor code it is 9:1. More sophisticated topological codes such as the surface code require on the order of physical qubits per logical qubit to achieve a code distance . Distance controls how many simultaneous errors can be corrected: a code of distance corrects any error on up to physical qubits.
The overhead is not wasted. Each additional physical qubit strengthens the code's ability to suppress logical errors. Provided the physical error rate lies below a threshold , the logical error rate decreases exponentially with :
For this is an extraordinary bargain: a modest increase in qubit count yields an exponential suppression of errors.
Logical gates
Operating on a logical qubit means performing a logical gate — a physical circuit acting on all physical qubits that implements, say, a logical or logical , while keeping the state within (or moving it predictably between valid states). Designing logical gates that are also fault-tolerant (so that a single physical error during the gate cannot corrupt the logical result) is one of the central challenges of quantum hardware engineering.
The transversal gate is the simplest example: apply the same one-qubit gate to every physical qubit in parallel. For the three-qubit bit-flip code, applying to all three qubits maps , implementing correctly. Transversal gates are automatically fault-tolerant because an error on one physical qubit during the gate cannot propagate to the others — each qubit is acted on independently.
Why the distinction matters
The logical/physical split is the reason quantum error correction can work at all. An algorithm is written entirely in terms of logical qubits: it specifies logical gates, logical measurements, and logical ancillae. The hardware layer translates each logical instruction into physical operations, inserts syndrome-measurement cycles, and corrects errors — all transparently. From the algorithm's perspective, the logical qubit behaves as if it were a perfect, noiseless qubit.
This layered abstraction, often called the fault-tolerance stack, is the same conceptual move that classical computing made when it introduced transistors, then logic gates, then machine code, then compilers: each layer hides the imperfections of the layer below it. The logical qubit is quantum computing's analogue of the classical bit stored in a flip-flop — a reliable logical variable built from unreliable physical components.
Sign in on the full site to ask questions and join the discussion.