A bosonic code is a quantum error-correcting code that encodes a logical qubit in the infinite-dimensional Hilbert space of a harmonic oscillator, such as a microwave cavity mode or a motional mode of a trapped ion, instead of in many separate two-level qubits. In quantum error correction, bosonic codes exploit the redundancy of many photon-number levels within one physical mode, which can reduce the hardware overhead needed to protect quantum information.
The main families are cat codes, binomial codes and Gottesman–Kitaev–Preskill (GKP) codes. Experiments in circuit quantum electrodynamics have shown bosonic logical qubits that reach or exceed the break-even point, where the encoded qubit lives longer than the best unencoded component in the same system.
How a bosonic code protects information in an oscillator
An oscillator mode has energy levels labeled by the photon number n = 0, 1, 2 and higher. A bosonic code chooses two carefully structured superpositions of these levels as the logical states |0_L⟩ and |1_L⟩. The structure is selected so that the dominant physical errors map the code states to distinguishable, correctable error states.
In superconducting cavities, the leading error is single-photon loss, described by the annihilation operator a. Other relevant errors are photon gain, dephasing of the oscillator frequency and small displacements in phase space. Because these errors act on a single mode with known structure, a code can be tailored to them far more precisely than a generic multi-qubit code.
The table below lists the principal error channels and how they appear in an oscillator.
| Error channel | Operator | Physical origin | Typical importance |
|---|---|---|---|
| Photon loss | a | Energy leakage to the environment | Dominant in cavities |
| Photon gain | a† | Thermal excitation | Small at millikelvin temperatures |
| Dephasing | a†a | Frequency fluctuations | Moderate |
| Displacement | Shift in position or momentum | Imperfect control and noise | Central for GKP codes |
| Self-Kerr distortion | Nonlinear phase term | Coupling to the transmon ancilla | Grows with photon number |
Main families of bosonic codes
Each family uses a different symmetry of the oscillator. Rotation-symmetric codes, such as cat and binomial codes, use photon-number parity or more general number modulo structure to detect loss. Translation-symmetric codes, mainly the GKP code, use a grid in phase space to detect small shifts of position and momentum.
| Code family | Logical states built from | Primary error detected | Key strength |
|---|---|---|---|
| Four-component cat code | Superpositions of four coherent states | Single-photon loss via parity | Simple preparation and parity checks |
| Two-component cat code | Two coherent states of opposite phase | Phase flips suppressed by size | Strongly biased noise |
| Binomial code | Fock states with binomial weights | Loss, gain and dephasing up to an order | Exact protection with few photons |
| GKP code | Grids of squeezed states | Small shifts in phase space | Corrects all small displacements |
| Rotation-symmetric code | States with discrete rotation symmetry | Number-shift errors | General framework for cat and binomial codes |
Two-component cat qubits stabilized by engineered two-photon dissipation deserve special mention. Their bit-flip rate falls exponentially with the mean photon number, while the phase-flip rate grows only linearly, which produces a highly biased noise channel that an outer repetition code can correct with few qubits.
Syndrome extraction and recovery operations
Bosonic codes need an ancilla to measure error syndromes, typically a transmon qubit dispersively coupled to the cavity. For cat and binomial codes, the ancilla measures photon-number parity without revealing the logical information, and a change of parity flags a lost photon. For GKP codes, the syndrome is the displacement modulo the grid spacing, extracted with controlled displacement operations.
Recovery is either a feedback operation that undoes the detected error or an autonomous stabilization scheme in which engineered dissipation continuously pumps the state back into the code space. Autonomous schemes avoid measurement latency, but they require precisely tuned nonlinear couplings.
A subtle design requirement is fault-tolerant syndrome extraction. If the transmon ancilla decays during a parity measurement, its error can feed back into the cavity as an uncorrectable phase or number shift. Techniques such as error-transparent gates, ancillas with higher energy levels and repeated measurements with majority voting reduce this risk, but they add calibration effort and lengthen each correction cycle.
| Method | How it works | Main limitation |
|---|---|---|
| Measurement and feedback | Parity or shift is measured, then corrected | Ancilla errors and latency |
| Autonomous stabilization | Engineered dissipation restores the code | Complex hardware tuning |
| Optimal control recovery | Numerically designed pulses reverse errors | Calibration effort |
| Concatenation with outer code | Bosonic qubits feed a surface or repetition code | Extra qubits and connectivity |
Strengths, limitations and role in fault tolerance
The strongest argument for bosonic codes is hardware efficiency: one high-quality cavity can replace several physical qubits at the first level of protection. Superconducting cavities also offer coherence times of milliseconds or longer, considerably beyond typical transmons. However, a single oscillator cannot reach arbitrarily low logical error rates, so practical architectures concatenate bosonic qubits with an outer code such as the surface code or a repetition code.
- Ancilla-induced errors propagate into the cavity unless syndrome extraction is made fault-tolerant.
- Finite energy limits GKP grids, because ideal GKP states require infinite squeezing.
- Higher photon numbers improve protection but increase loss rates and nonlinear distortion.
- Logical gates between bosonic qubits are harder to implement than gates between transmons.
Stripped to the essentials
Most quantum computers protect data by spreading it across many small qubits. A bosonic code takes another route. It stores the data in one container with many levels, such as a tiny box of microwave light.
The data is written in a pattern that makes mistakes easy to spot. When one particle of light leaks out, the pattern changes in a recognizable way. The system can then detect and repair the damage without reading the data itself. The benefit is simple: fewer parts are needed to keep information safe.
Where it is applied
A laboratory working with superconducting circuits builds a logical qubit inside a three-dimensional aluminum cavity coupled to a transmon ancilla. The cavity alone has a photon lifetime of about one millisecond, while the transmon decoheres after about 100 microseconds.
The team encodes a GKP state and runs syndrome extraction cycles every few microseconds, applying corrective displacements after each round. Over thousands of repetitions, the corrected logical qubit survives longer than the cavity’s best unencoded state, which demonstrates break-even. The group then plans to link several such cavities into an outer error-correcting code, using each cavity as a lower-noise building block.