Skip to content

A bosonic code encodes a finite logical system in one or more oscillator modes. The oscillator’s many number states provide room to separate likely errors from the protected information. Protection depends on the encoding, the physical noise, and the recovery together: simply choosing two orthogonal states in a large Hilbert space does not make loss reversible.

This page develops that common framework. A dual-rail example will distinguish detecting loss, recovering information, and conditioning on survival. We then connect loss moments, phase-space shifts, energy constraints, and imperfect recovery to the choice between cat, binomial, and GKP constructions.

Required background. Why Quantum Error Correction Is Possible explains error correction without measuring logical amplitudes. Bits, Qubits, Qudits, and Modes distinguishes logical dimension from the physical carrier. Number States supplies the ladder operators, and Erasure and Loss Channels derives attenuation and flagged erasure.

Oscillator encodings and the recovered logical channel

Section titled “Oscillator encodings and the recovered logical channel”

One mode has basis {∣n⟩:n=0,1,…}\{|n\rangle:n=0,1,\ldots\}, with

a∣n⟩=n ∣n−1⟩,N=a†a.a|n\rangle=\sqrt n\,|n-1\rangle,\qquad N=a^\dagger a.

An isometry VV maps a dLd_L-dimensional logical space into the Hilbert space of mm modes. Its projector is P=VV†P=VV^\dagger, with V†V=ILV^\dagger V=I_L. For a logical qubit, its two codewords must be orthonormal; a state α∣0L⟩+β∣1L⟩\alpha|0_L\rangle+\beta|1_L\rangle carries an unknown superposition, not a known label to be identified.

Let V(ρ)=VρV†\mathcal V(\rho)=V\rho V^\dagger, let N\mathcal N be physical noise, and let R\mathcal R be recovery. A complete decoding channel D\mathcal D gives

ΛL=D∘R∘N∘V.\Lambda_L=\mathcal D\circ\mathcal R\circ\mathcal N\circ\mathcal V.

If recovery always returns to the code, decoding can use V†(⋅)VV^\dagger(\cdot)V on that output. Otherwise that projection discards leakage and is not trace preserving. One must retain a failure flag, or specify how leaked states become logical outputs. Renormalizing the projected state describes a conditional experiment and changes the quantity being assessed.

For Kraus operators ErE_r of N\mathcal N, exact correctability is characterized by

PEr†EsP=crsP.PE_r^\dagger E_sP=c_{rs}P.

The right side is independent of the logical state. Thus the environment can learn an error syndrome but cannot learn the encoded amplitudes. This is the Knill–Laflamme condition from the linked correctability page. Its linear-span property is especially useful here: correcting a finite set of ladder-operator monomials corrects channels in their span, but not automatically a full finite-time attenuation channel. Chuang, Leung, and Yamamoto (1997) developed bosonic codes adapted to amplitude damping.

Dual rail: a loss flag does not reconstruct a qubit

Section titled “Dual rail: a loss flag does not reconstruct a qubit”

Encode one excitation across two modes:

∣0L⟩=∣1,0⟩,∣1L⟩=∣0,1⟩.|0_L\rangle=|1,0\rangle,\qquad |1_L\rangle=|0,1\rangle.

Assume independent, zero-temperature loss with the same transmissivity η\eta in both modes. On this encoded space, the no-loss branch multiplies every state by η\sqrt\eta. Either one-loss branch ends in the orthogonal vacuum ∣e⟩=∣0,0⟩|e\rangle=|0,0\rangle. The output is

N(VρV†)=ηVρV†+(1−η)∣e⟩⟨e∣.\mathcal N(V\rho V^\dagger) =\eta V\rho V^\dagger+(1-\eta)|e\rangle\langle e|.

An ideal nondestructive total-number measurement detects whether the excitation survived without identifying its mode. Survival preserves the entire qubit and occurs with probability η\eta, independent of ρ\rho. Loss is flagged, but the lost branch cannot be repaired from the vacuum alone. The environment’s two loss modes carry the original superposition. An outer erasure code, or a protocol that prepares another copy from known classical instructions, must handle that failure; an unknown state cannot simply be reconstructed.

This is a genuine erasure-channel reduction under the stated equal-loss and ideal-flag assumptions. Fixed excitation by itself is insufficient to correct an unknown loss location. More redundant multimode encodings can meet the loss-correction conditions, as discussed by Wasilewski and Banaszek (2007).

Unequal loss also filters the surviving state

Section titled “Unequal loss also filters the surviving state”

Let the two transmissivities be η0,η1\eta_0,\eta_1. In the logical basis, the no-loss operator is

K0=(η000η1).K_0=\begin{pmatrix}\sqrt{\eta_0}&0\\0&\sqrt{\eta_1}\end{pmatrix}.

For input α∣0L⟩+β∣1L⟩\alpha|0_L\rangle+\beta|1_L\rangle, survival now has probability

psurv=η0∣α∣2+η1∣β∣2.p_{\rm surv}=\eta_0|\alpha|^2+\eta_1|\beta|^2.

Conditional on that outcome, the amplitudes are proportional to η0α\sqrt{\eta_0}\alpha and η1β\sqrt{\eta_1}\beta. The survival flag itself carries information about the input populations. It is therefore not enough to say “no photon was lost, so no error occurred.”

For η0=0.8\eta_0=0.8, η1=0.2\eta_1=0.2, and input ∣+L⟩|+_L\rangle, survival probability is 1/21/2 and the normalized output is 0.8∣0L⟩+0.2∣1L⟩\sqrt{0.8}|0_L\rangle+\sqrt{0.2}|1_L\rangle. Its logical ZZ expectation is 0.60.6, instead of zero. For a general input population imbalance z=Tr⁡(ZLρ)z=\operatorname{Tr}(Z_L\rho),

psurv=0.5+0.3z,zsurv=0.3+0.5z0.5+0.3z.\begin{aligned} p_{\rm surv}&=0.5+0.3z,\\ z_{\rm surv}&=\frac{0.3+0.5z}{0.5+0.3z}. \end{aligned}

The normalized conditional map is nonlinear in ρ\rho because its denominator depends on ρ\rho. The underlying unnormalized quantum instrument remains linear and completely positive.

Survival probability and conditional logical population imbalance for equal and unequal attenuation in a dual-rail encoding

Equal attenuation η0=η1=0.5\eta_0=\eta_1=0.5 gives input-independent survival and preserves the conditional qubit. Unequal attenuation (0.8,0.2)(0.8,0.2) has the same average survival for a maximally mixed input, but favors logical zero. At z=0z=0, both cases survive with probability 1/21/2 while the unequal-loss output has zsurv=0.6z_{\rm surv}=0.6. Matching a survival rate does not match the recovered quantum channel.

Photon loss, no-loss evolution, and number moments

Section titled “Photon loss, no-loss evolution, and number moments”

For a single mode and 0<η≤10<\eta\le1, pure loss has Kraus operators

Aℓ=(1−η)ℓℓ! ηN/2aℓ.A_\ell=\sqrt{\frac{(1-\eta)^\ell}{\ell!}}\, \eta^{N/2}a^\ell.

The operator order matters. Acting on ∣n⟩|n\rangle gives

Aℓ∣n⟩=(nℓ)(1−η)ℓ/2×η(n−ℓ)/2∣n−ℓ⟩.A_\ell|n\rangle =\sqrt{\binom n\ell}(1-\eta)^{\ell/2} \times\eta^{(n-\ell)/2}|n-\ell\rangle.

Consequently, the number of lost excitations is binomial conditional on the initial number nn. It is not generally Poisson. The no-loss operator A0=ηN/2A_0=\eta^{N/2} also changes relative amplitudes between different number states.

Writing η=e−κt\eta=e^{-\kappa t}, on states for which the required moments are controlled,

A0=I−12κtN+O(t2),A1=κt a+O(t3/2).\begin{aligned} A_0&=I-\tfrac12\kappa tN+O(t^2),\\ A_1&=\sqrt{\kappa t}\,a+O(t^{3/2}). \end{aligned}

These are short-time expansions on the relevant states or a fixed cutoff, not uniform operator-norm expansions over the entire unbounded oscillator space. A small κt\kappa t alone is insufficient if appreciable probability sits at arbitrarily large occupation.

For the leading error set {I,a}\{I,a\}, the conditions include

PaP=c01P,PNP=c11P.PaP=c_{01}P,\qquad PNP=c_{11}P.

If the code lies in one number-parity sector, PaP=0PaP=0. The second relation requires equal mean loss exposure for every logical superposition, including vanishing off-diagonal logical matrix elements. Equal means of two basis states alone need not establish that operator identity.

For multiple losses, products (a†)ras(a^\dagger)^r a^s must satisfy the same scalar-compression test. In particular,

(a†)rar=N(N−1)⋯(N−r+1)(a^\dagger)^r a^r=N(N-1)\cdots(N-r+1)

introduces factorial moments. For a number distribution with finite relevant moments, the probability of exactly two losses in a short interval is

p2(t)=12(κt)2⟨N(N−1)⟩+O(t3).p_2(t)=\tfrac12(\kappa t)^2 \langle N(N-1)\rangle+O(t^3).

The displayed remainder requires sufficient higher-moment control. Replacing the factorial moment by ⟨N⟩2\langle N\rangle^2 assumes Poisson number statistics; it is not a generic oscillator identity.

Initial number statistics Mean Second factorial moment
Number state ∣n⟩\lvert n\rangle nn n(n−1)n(n-1)
Coherent state nˉ\bar n nˉ2\bar n^2
Thermal state nˉ\bar n 2nˉ22\bar n^2

These are illustrative physical states, not three proposed logical codes. At mean occupation two, their leading two-loss coefficients differ by factors of two. Mean energy alone does not determine rare-event exposure.

Finite-support binomial codes choose number spacing and weights to enforce specified polynomial-error conditions; Michael and collaborators (2016) construct these families. Their finite-time performance still requires the no-loss deformation and omitted loss orders. The specialist page gives the single-loss code and its explicit recovery, rather than repeating that construction here.

Other oscillator errors and code geometries

Section titled “Other oscillator errors and code geometries”

Thermal excitation introduces a†a^\dagger, and frequency noise introduces number-dependent phases. A common Markovian model is

ρ˙=κ(nˉth+1)D[a]ρ+κnˉthD[a†]ρ+κϕD[N]ρ,D[L]ρ=LρL†−12{L†L,ρ}.\begin{aligned} \dot\rho={}&\kappa(\bar n_{\rm th}+1)\mathcal D[a]\rho +\kappa\bar n_{\rm th}\mathcal D[a^\dagger]\rho +\kappa_\phi\mathcal D[N]\rho,\\ \mathcal D[L]\rho={}&L\rho L^\dagger-\tfrac12\{L^\dagger L,\rho\}. \end{aligned}

Here κ\kappa and κϕ\kappa_\phi are rates, and nˉth\bar n_{\rm th} is a dimensionless bath occupation. This convention gives number-basis dephasing rate κϕ(n−m)2/2\kappa_\phi(n-m)^2/2 for coherence ρnm\rho_{nm}. The equation defines a channel only after an evolution time is chosen; it does not select a recovery or show that its implementation is reliable.

The rotation RM=e2πiN/MR_M=e^{2\pi iN/M} obeys

RMaℓRM†=e−2πiℓ/Maℓ.R_Ma^\ell R_M^\dagger=e^{-2\pi i\ell/M}a^\ell.

Thus a code in one common rotation eigenspace moves to another sector after loss. A modular-number measurement can reveal loss count modulo MM without resolving logical amplitudes, provided those amplitudes occupy the same measured sector. Counts separated by MM collide. A symmetry does not by itself make their logical effects correctable.

Grimsmo, Combes, and Baragiola (2020) organize rotation-symmetric encodings in a common framework. Both coherent-state cat codes and finite number-state constructions can use this symmetry. Increasing coherent-component separation may suppress one logical error while increasing occupation and loss exposure. The error bias must survive the gates and measurements needed by the computation.

Use dimensionless quadratures [q,p]=i[q,p]=i, with

q=a+a†2,p=a−a†i2.q=\frac{a+a^\dagger}{\sqrt2},\qquad p=\frac{a-a^\dagger}{i\sqrt2}.

The displacement D(ξ)=exp⁡(ξa†−ξ∗a)D(\xi)=\exp(\xi a^\dagger-\xi^*a) shifts these coordinates. For the ideal square GKP qubit, commuting translations can be written

Sq=ei2πq,Sp=e−i2πp.S_q=e^{i2\sqrt\pi q},\qquad S_p=e^{-i2\sqrt\pi p}.

Gottesman, Kitaev, and Preskill (2001) use their joint eigenspace to encode a qubit. The ideal combs are nonnormalizable. Finite-energy states have finite peak width and an envelope, so ideal translation-eigenstate formulas become approximations. GKP Codes gives the lattice construction and finite-energy conventions.

The modular syndrome retains a continuous position inside the decision cell. A value close to a boundary is less reliable than one near the center. Decoders should compare the sum of probabilities for all shifts in each logical class; comparing two neighboring shifts is only a small-noise approximation. Noh and Chamberland (2020) exploit analog information in a specified surface–GKP architecture. Its numerical performance depends on that architecture and noise model.

A measurement-based recovery is an instrument followed by conditional corrections:

R=∑yCy∘My.\mathcal R=\sum_y\mathcal C_y\circ\mathcal M_y.

The record yy may be a parity history, a modular quadrature, or a loss flag. The maps My\mathcal M_y include measurement backaction. A classical label with no associated quantum map cannot establish coherence preservation. Degenerate errors need not be distinguished if they have the same protected action; the useful information is the correctable class rather than a unique microscopic history.

Engineered dissipation can provide recovery continuously, but confinement to a manifold alone does not prove preservation of logical information. Uncontrolled channels, auxiliary-mode noise, and operations that leave the protected manifold still matter. Bosonic Qubits describes the physical controls and measurement systems.

A compressed Hamiltonian is not a logical gate

Section titled “A compressed Hamiltonian is not a logical gate”

For a code-preserving operator, require OˉV=VOL\bar O V=VO_L. Merely checking POˉP=VOLV†P\bar OP=VO_LV^\dagger leaves the leakage block (I−P)OˉP(I-P)\bar OP unchecked. For a Hamiltonian, both the intended compression and vanishing leakage block are needed to infer the encoded unitary evolution.

For example, on single rail {∣0⟩,∣1⟩}\{|0\rangle,|1\rangle\}, the drive H=ℏΩ(a+a†)H=\hbar\Omega(a+a^\dagger) compresses to ℏΩXL\hbar\Omega X_L. Yet it also couples ∣1⟩|1\rangle to ∣2⟩|2\rangle with matrix element 2ℏΩ\sqrt2\hbar\Omega. Its full evolution is a displacement, not a closed two-level XX rotation. Exercise 7 quantifies the leakage. Even exact code preservation is only an ideal-gate property; preserving the correctability of faults during a gate is an additional requirement.

Fidelity includes every input and every outcome

Section titled “Fidelity includes every input and every outcome”

For a trace-preserving logical channel, define entanglement fidelity by

σρ=(id⁡⊗ΛL)(∣Ψρ⟩⟨Ψρ∣),Fe(ρ,ΛL)=⟨Ψρ∣σρ∣Ψρ⟩,\begin{aligned} \sigma_\rho&=(\operatorname{id}\otimes\Lambda_L) (|\Psi_\rho\rangle\langle\Psi_\rho|),\\ F_e(\rho,\Lambda_L)&=\langle\Psi_\rho|\sigma_\rho|\Psi_\rho\rangle, \end{aligned}

where ∣Ψρ⟩|\Psi_\rho\rangle purifies ρ\rho. This is a squared-overlap convention. Worst-case performance minimizes over ρ\rho; optimizing recovery is a separate step. Bény and Oreshkov (2010) formulate approximate correctability using worst-case entanglement fidelity. An optimized mathematical recovery gives a bound on what can be achieved, not a demonstration that a particular device implements it.

Testing only the logical basis is inadequate: complete logical dephasing preserves both basis states but destroys their superpositions. Conditioning on accepted runs can also hide failure probability. If erasures are retained as orthogonal output flags, their overlap with the desired logical state is zero. An accepted fidelity of one therefore does not make the unconditional channel perfect.

Energy comparisons should bound occupation across logical states, for example V†NtotV≤nˉmax⁡ILV^\dagger N_{\rm tot}V\le\bar n_{\max}I_L, where NtotN_{\rm tot} sums over the storage modes. A mean bound and a hard occupation cutoff are different assumptions. Numerical truncation must control discarded probability and the moments needed by the calculation; a tiny high-number tail can strongly affect higher-order loss terms.

Finally, a recovery cycle takes time and introduces faults. Reducing the interval suppresses multiple losses between corrections but increases the number of imperfect corrections. Compare full logical channels at a common storage time, with the actual storage and auxiliary modes, energy constraint, cycle duration, and acceptance rule. Albert and collaborators (2018) illustrate channel-matched comparisons of bosonic code families. No ordering obtained for one noise channel and optimized recovery is universal across hardware and tasks.

For ∣0L⟩=∣0⟩|0_L\rangle=|0\rangle and ∣1L⟩=∣1⟩|1_L\rangle=|1\rangle, evaluate the two nontrivial Knill–Laflamme blocks for {I,a}\{I,a\}.

Solution

They are PaP=∣0L⟩⟨1L∣PaP=|0_L\rangle\langle1_L| and PNP=∣1L⟩⟨1L∣PNP=|1_L\rangle\langle1_L|. Neither is a scalar multiple of PP. The first says a loss moves logical one directly to logical zero. The second says the event probability distinguishes logical populations. Orthogonality of the original codewords solves neither problem.

Compare a number state ∣2⟩|2\rangle with the distribution assigning equal probability to n=0n=0 and n=4n=4. Find the means, second factorial moments, and leading two-loss probabilities. Does this test alone establish a quantum code?

Solution

Both means are two. The factorial moments are 22 and 66, respectively. Their leading two-loss probabilities are (κt)2(\kappa t)^2 and 3(κt)23(\kappa t)^2. Equal mean exposure thus does not equalize higher-order events. These diagonal statistics alone do not test the cross products or off-diagonal code-space matrix elements needed for quantum error correction. A coherent encoding must satisfy the full operator conditions.

3. Undo unequal attenuation probabilistically

Section titled “3. Undo unequal attenuation probabilistically”

After dual-rail survival with (η0,η1)=(0.8,0.2)(\eta_0,\eta_1)=(0.8,0.2), consider the additional successful-filter operator F=diag⁡(1/2,1)F=\operatorname{diag}(1/2,1). Find the joint success probability and the accepted logical channel.

Solution

The product is FK0=0.2ILFK_0=\sqrt{0.2}I_L. Thus the two-stage procedure succeeds with probability 0.20.2 for every input and restores the accepted qubit exactly. It is a valid filter because F†F≤IF^\dagger F\le I; a complementary Kraus operator describes failure. For input ∣+L⟩|+_L\rangle, the first stage succeeds with probability 0.50.5 and the second succeeds conditionally with probability 0.40.4. The accepted fidelity is one, but 80%80\% of attempts fail. Deterministic recovery cannot invert the unequal singular values without an additional failure outcome.

For codewords sharing an eigenvalue of RMR_M, derive the rotation-sector shift after ℓ\ell losses. What happens to losses ℓ\ell and ℓ+M\ell+M?

Solution

From [N,a]=−a[N,a]=-a, conjugating aℓa^\ell by RMR_M multiplies it by e−2πiℓ/Me^{-2\pi i\ell/M}. Acting on an initial rotation eigenstate therefore shifts its eigenvalue by this factor. Adding MM losses gives the same factor. A modular measurement cannot separate those events; their residual logical actions must be assessed rather than assumed equivalent. Measuring a symmetry shared by the code avoids directly resolving its logical amplitudes, but does not supply unlimited loss correction.

Let a one-dimensional square-grid syndrome be r∈[−π/2,π/2)r\in[-\sqrt\pi/2,\sqrt\pi/2). Under Gaussian displacement noise of variance σ2\sigma^2, write the even- and odd-cell likelihoods. Recover the two-neighbor approximation for r≥0r\ge0.

Solution

The two unnormalized class likelihoods are

Leven(r)=∑j∈Ze−(r+2jπ)2/(2σ2),Lodd(r)=∑j∈Ze−(r+(2j+1)π)2/(2σ2).\begin{aligned} \mathcal L_{\rm even}(r) &=\sum_{j\in\mathbb Z}e^{-(r+2j\sqrt\pi)^2/(2\sigma^2)},\\ \mathcal L_{\rm odd}(r) &=\sum_{j\in\mathbb Z}e^{-(r+(2j+1)\sqrt\pi)^2/(2\sigma^2)}. \end{aligned}

For small σ\sigma and away from equal-weight competing odd images, retain shifts rr and r−πr-\sqrt\pi. Their log-likelihood ratio is

log⁡L0L1≃π−2πr2σ2.\log\frac{\mathcal L_0}{\mathcal L_1} \simeq\frac{\pi-2\sqrt\pi r}{2\sigma^2}.

At r=0r=0, the two nearest odd images are equally likely, so their sum has an extra factor two that a one-image approximation misses. At a cell boundary the exact even and odd sums are equal. Retaining the full likelihood ratio conveys reliability to an outer decoder; keeping only a preferred class discards it.

Suppose each recovery adds logical failure probability q>0q>0. Model all two-loss events as failures and neglect other storage errors, with F2=⟨N(N−1)⟩>0F_2=\langle N(N-1)\rangle>0 constant across logical inputs. Minimize failure per unit time in the short-interval regime.

Solution

The toy rate is

Γ(τ)≃qτ+κ2F22τ.\Gamma(\tau)\simeq\frac q\tau+\frac{\kappa^2F_2}{2}\tau.

Its stationary point and minimum are

τ∗=2qκF2,Γ(τ∗)=κ2qF2.\begin{aligned} \tau_*&=\frac{\sqrt{2q}}{\kappa\sqrt{F_2}},\\ \Gamma(\tau_*)&=\kappa\sqrt{2qF_2}. \end{aligned}

The second derivative is positive. The familiar replacement F2=nˉ\sqrt{F_2}=\bar n is valid for Poisson statistics only. If F2=0F_2=0, this model has no finite optimum; another error mechanism or storage-time constraint is needed. A real code may also have no-loss deformation at the same order, nonunit failure probability after two losses, and a minimum realizable cycle duration. Those effects change the coefficient or the allowed interval.

For single rail and H=ℏΩ(a+a†)H=\hbar\Omega(a+a^\dagger), start in ∣1⟩|1\rangle. Find the leading probability to leave the code during a short time tt, although PHP=ℏΩXLPHP=\hbar\Omega X_L.

Solution

The first-order amplitude in ∣2⟩|2\rangle is −i2Ωt-i\sqrt2\Omega t, so

pleak=2(Ωt)2+O(t4).p_{\rm leak}=2(\Omega t)^2+O(t^4).

The exact unitary is D(−iΩt)D(-i\Omega t). With u=Ωtu=\Omega t, its total single-rail survival probability is e−u2(1−u2+u4)e^{-u^2}(1-u^2+u^4), obtained from the ∣0⟩|0\rangle and ∣1⟩|1\rangle amplitudes. Expanding its complement gives the same leading coefficient. A projection can reproduce a desired matrix while missing the coupling that invalidates its two-level dynamics.

For integer K>nˉ>0K>\bar n>0, consider ∣ψK⟩=1−nˉ/K∣0⟩+nˉ/K∣K⟩|\psi_K\rangle=\sqrt{1-\bar n/K}|0\rangle+\sqrt{\bar n/K}|K\rangle. Find its mean, second factorial moment, and trace distance from vacuum. What does this imply for a mean-energy truncation rule?

Solution

The mean is nˉ\bar n, independent of KK, but F2=nˉ(K−1)F_2=\bar n(K-1) grows without bound. The discarded tail probability is nˉ/K\bar n/K, and the pure-state trace distance from vacuum is nˉ/K\sqrt{\bar n/K}, which tends to zero. Thus small state-distance error need not mean small error in an unbounded moment or a short-time expansion coefficient.

For any state with mean at most nˉ\bar n, the probability above cutoff nmax⁡n_{\max} is bounded by nˉ/(nmax⁡+1)\bar n/(n_{\max}+1). That controls discarded probability, but additional moment assumptions are required to control F2F_2 uniformly. The limits of large KK and short time cannot be exchanged without such control.