Overview
A harmonic oscillator, such as a mode of a microwave cavity, an optical mode or the motion of a trapped ion, has infinitely many energy levels. A bosonic code uses that large state space as the redundancy needed for error correction: a qubit is stored in a two-dimensional subspace of a single oscillator, chosen so that the errors the oscillator actually suffers move the state to places from which it can be brought back.
The approach has two attractions. Redundancy comes without adding physical components, each of which would bring its own error channels. And the noise of a good oscillator is dominated by one process, the loss of single photons, so the code can be matched to it.
Three families account for most work.
- Cat codes use superpositions of coherent states.
- Binomial codes use finite superpositions of Fock states.
- GKP codes use states that are periodic grids in phase space.
Cat and binomial codes are rotation-symmetric; GKP codes are translation-symmetric. This page sets out the common framework: the loss channel, what the Knill–Laflamme conditions demand of a code for it, and how single-mode codes are combined with ordinary qubit codes. The first bosonic codes, due to Chuang, Leung and Yamamoto, used several modes; the single-mode proposals are those of Cochrane, Milburn and Munro, Gottesman, Kitaev and Preskill, Leghtas et al. and Michael et al..
Intuition
Suppose a qubit is stored in the states "no photon" and "one photon" of a cavity. If the photon leaks out, the state becomes and nothing records that this happened. To notice a loss, the code must leave room for it: choose codewords that contain only even numbers of photons. Then losing one photon produces a state with an odd number, and measuring the parity of the photon number, without measuring the number itself, reveals the loss and nothing else.
Detection is not yet correction. Imagine the codewords are and . A state with four photons loses one twice as often as a state with two. So the mere fact that a loss occurred, or did not occur, tells the environment something about which codeword was there, and that knowledge destroys superpositions. A working code must make the two codewords look the same to the environment: the same average photon number, and for protection against more losses, the same higher moments. Designing a bosonic code is the exercise of meeting these requirements with as few photons as possible, because every additional photon raises the loss rate.
Cat codes follow a second strategy as well. Two coherent states of opposite phase are far apart in phase space, and local noise is very unlikely to turn one into the other. One of the two error types is thereby suppressed by the physics, and only the other has to be corrected by a code.
Prerequisites
The harmonic oscillator, Fock states and coherent states; quantum channels and Kraus operators (quantum channels); the Knill–Laflamme conditions (quantum error correction).
Mathematical Definitions
Let be the annihilation operator of a bosonic mode, its number operator and the Fock states. The pure-loss channel with loss probability (transmissivity ) is
The operator describes the loss of exactly photons. On a Fock state,
so each of the photons is lost independently with probability , and by the binomial theorem. The channel is the solution at time of the master equation with .
Two features set it apart from qubit noise. First, the no-jump operator is not the identity: observing no loss makes large photon numbers less likely, which distorts superpositions of different Fock states. Second, the error operators are unbounded and the rate of loss grows with the photon number, so codewords with more photons suffer more errors. The Kraus form is used in the first bosonic codes of Chuang, Leung and Yamamoto and in the analyses of Michael et al. and Albert et al..
- A single bosonic mode coupled to a zero-temperature environment; with thermal photons the channel is the thermal-loss channel instead.
A single-mode bosonic code is a two-dimensional subspace of the Hilbert space of the mode. Its size is measured by the mean photon number , with the projector on .
Let be the number operator of a bosonic mode and an integer. A two-dimensional code has -fold rotation symmetry (Grimsmo, Combes and Baragiola) when the operator
preserves and acts on it as a logical operator. Consequently the rotation acts on as the identity.
Equivalently, in the Fock basis the logical basis states have the form
for some amplitudes : the code occupies only Fock states that are multiples of , with even multiples for and odd multiples for . A code of this kind can be generated from any "primitive" state by summing its rotated copies with signs or .
Consequences. The photon number modulo is zero on and can be measured without disturbing the encoded state. A loss of photons with shifts it to , so up to losses are detectable. In the conjugate picture the dual basis states are related by a rotation by , so resolving them requires distinguishing phases that close: increasing improves protection against loss and gain and reduces protection against dephasing rotations.
Examples. Two-component cat codes have ; four-component cat codes and the smallest binomial code, with Fock support and , have . The square-lattice GKP code is not of this form for general : its symmetry is a translation of phase space.
Definition (Michael et al.). Let , and be the numbers of photon losses, photon gains and dephasing events to be corrected. Put and . The codewords are
The smallest member, , , is
with mean photon number 2 in both codewords. The code with uses the Fock states : and .
How it works. Codewords occupy Fock states that are multiples of , so the photon number modulo is zero in the code space. Losing photons or gaining changes this generalised parity to a distinct value, which is the syndrome. For the errors to be correctable and not merely detectable, the two codewords must be indistinguishable to the environment: the moments must agree for up to the required order. The binomial coefficients guarantee this, because for all .
What is corrected. Exactly: every error operator that is a polynomial in , of the stated degrees. For the pure-loss channel: to order in the loss probability, see the theorem for the smallest code.
Properties. The codewords have bounded photon number and are exactly orthogonal, in contrast with cat codes. Under the pure-loss channel with optimal recovery, binomial and cat codes perform similarly, binomial codes being better at small loss rates (Albert et al.).
Realisations. Hu et al. implemented repeated error correction and a universal single-qubit gate set on the smallest binomial code in a superconducting cavity, extending the logical lifetime by a factor 2.8 over the uncorrected code. Ni et al. exceeded the break-even point, the lifetime of the best physical qubit of the system, by about 16%.
- Exact correction is with respect to the stated finite set of operators; for the pure-loss channel the correction is approximate, to a fixed order in the loss probability.
Theorems
The Knill–Laflamme conditions for loss
Apply the Knill–Laflamme conditions to the operators , . A code with basis corrects them exactly if and only if, for all and ,
Two kinds of condition are contained in this.
- Orthogonality (, and ): states reached by different numbers of losses from different codewords must not overlap. Placing the codewords on Fock states spaced by , with disjoint supports, achieves this for all operators at once.
- Equal moments (, ): the numbers , which are the factorial moments of the photon number, must not depend on . For this is equality of mean photon numbers.
The true loss channel has Kraus operators , not . Expanding the no-jump factor in powers of shows that the moment conditions up to order make the conditions for the channel hold up to terms of order . They cannot hold exactly for . The operators are diagonal in the Fock basis with entries , and a sequence is determined by the numbers , since these are the Taylor coefficients of . The off-diagonal conditions would therefore force the two codewords to have disjoint Fock supports, and the diagonal conditions would force them to have the same photon-number distribution, which is impossible. Bosonic codes for loss are approximate codes with a controlled order of approximation.
Let be the binomial code with basis , , and projector .
- Exact statement. For and ,
Hence corrects every error in the span of and , with the photon number parity as syndrome.
- Loss channel. For the Kraus operators of the pure-loss channel,
and the terms of order are not proportional to . The remaining Kraus operators occur with total probability .
So the code corrects the loss channel to first order in : after recovery the error is of order , compared with order for a qubit stored in the Fock states . The construction and the general version for losses are due to Michael et al.; correcting a channel only to a given order is approximate error correction in the sense of Leung et al..
- A single bosonic mode and the pure-loss channel with loss probability between corrections.
- In the second statement, correction means that the violation of the exact conditions is of order , the same order as the probability of losing two photons.
Proof · Proof that the smallest binomial code corrects one photon loss
Write and . The conditions to check are for .
Part 1. . and the codewords are orthonormal, so .
. lowers the photon number by one. Both codewords are superpositions of even Fock states, so is a superposition of odd Fock states and is orthogonal to every . Thus .
. is diagonal in the Fock basis. The codewords have disjoint Fock support, so , and
So . This proves the exact statement. The error spaces are and , orthogonal to each other and to the code space, and of odd parity.
Part 2. The operators and are diagonal in the Fock basis, so their matrix elements between and vanish. Their diagonal elements are
In both cases the two codewords agree to first order in and differ at second order, by and respectively to leading order. Finally lowers the photon number by one and has vanishing matrix elements in the code space by the parity argument of Part 1.
For , is the probability that a codeword loses exactly photons. It contains the factor , so the total is ; explicitly the two-photon terms are for and for .
A limitation of Gaussian resources
Squeezed and coherent states and the operations that preserve them (linear optics, squeezing, homodyne detection) are comparatively easy to realise. They are not enough: Gaussian operations cannot protect Gaussian states against Gaussian errors (Niset, Fiurášek and Cerf). Every useful bosonic code involves a non-Gaussian ingredient, either in its codewords (cat, binomial and GKP states are all non-Gaussian) or in its measurements (photon-number parity).
Worked Examples
A code that detects a loss and still fails
Take and . One loss maps these to and , of even parity, so the loss is detectable and the two results are orthogonal. But
so the equal-moment condition fails for . Concretely, the state becomes, after one loss and normalisation, : the amplitudes have changed from equal weights to weights and . Mapping and does not restore the original state, and no other operation can, because the conditions are necessary.
The smallest binomial code at 5% loss
Let and use , . The probabilities of losing 0, 1 and 2 photons are
| no loss | one loss | two losses | |
|---|---|---|---|
The first two columns nearly agree between the rows: the differences, and , are of order , as the theorem states. A single loss is identified by odd parity and undone by mapping and . What remains uncorrected is of the size of the last column, below 1%. A qubit stored in would have lost its excitation with probability 5%. The price is a mean photon number of 2 in place of , so losses are four times more frequent before correction; the code wins because it removes the first-order effect entirely.
Applications
Concatenation. A bosonic code alone does not reach arbitrarily low error rates with realistic resources. It is used as the lowest layer of a concatenated scheme: each oscillator holds one bosonic qubit, and these qubits are the physical qubits of a stabilizer code. The inner code either lowers the error rate presented to the outer code, or shapes it, into a strongly biased channel for cat qubits or into Pauli errors with reliability information for GKP qubits (Terhal, Conrad and Vuillot). See cat codes and GKP codes for the two main architectures.
Comparing codes. With the same error model and optimal recovery, Albert et al. find for the pure-loss channel that cat and binomial codes perform similarly, and that GKP codes outperform both for most loss rates even though they were designed for displacement errors.
A universal gate set for rotation codes. Grimsmo, Combes and Baragiola give a scheme of gates and teleportation-based error correction that applies to all number-phase codes, including cat and binomial codes.
Limitations and Common Pitfalls
- Forgetting the no-jump evolution. Checking the conditions for alone, or reasoning from "the outcomes are distinguishable", misses the damping factor . Equal mean photon number is the minimum requirement for first-order correction.
- More photons, more errors. Protection against losses needs Fock spacing and hence mean photon number growing with , while the loss rate grows in proportion to the photon number. For a given loss probability there is an optimal code size.
- Other noise. Codes designed for loss are exposed to dephasing of the oscillator, to thermal photon gain and to errors of the auxiliary qubit used for measurement and control, which in circuit implementations are often the limiting factor.
- Break-even is a milestone, not fault tolerance. Exceeding the lifetime of the best physical component shows that correction removes more errors than it adds. It says nothing about gates, nor about how the error rate scales under concatenation.
State of the Art
As of 2026-11, error correction beyond break-even has been reported for all three single-mode families in superconducting cavities. Ofek et al. (2016) corrected a four-component cat code in real time and obtained a lifetime of 320 μs, 10% longer than the best component of the system. Ni et al. (2023) exceeded break-even by about 16% with a binomial code, following the first repeated correction of that code by Hu et al. (2019). Sivak et al. (2023) reached a coherence gain of with a GKP code. Beyond a single mode, Putterman et al. (2025) operated a distance-5 repetition code of cat qubits. These statements summarise the cited papers; they are not a survey of all experiments.