Skip to content

A cat code uses superpositions of coherent states related by rotations in oscillator phase space. Their separation can suppress certain transitions, while their number-parity or rotation sectors organize photon losses. Two common constructions use this idea differently: a two-component cat qubit makes one logical error direction much rarer than the other; a four-component cat code moves a single loss into a distinguishable error subspace.

The logical basis, the measured syndrome, and the finite cat amplitude matter. We will calculate the loss action explicitly, including finite-amplitude points at which the four-component code exactly corrects the operator set {I,a}\{I,a\}. That exact statement is narrower than correcting the full finite-time loss channel.

Required background. Bosonic Codes supplies the channel–encoding–recovery framework. Coherent States in Phase Space explains coherent-state overlap, Number States supplies ladder operators, and Erasure and Loss Channels describes attenuation.

Let x=∣α∣2>0x=|\alpha|^2>0. Coherent states obey a∣α⟩=α∣α⟩a|\alpha\rangle=\alpha|\alpha\rangle, and opposite components have overlap s=e−2xs=e^{-2x}. Their normalized parity superpositions are

∣Cα±⟩=∣α⟩±∣−α⟩2(1±s).|C_\alpha^\pm\rangle =\frac{|\alpha\rangle\pm|-\alpha\rangle}{\sqrt{2(1\pm s)}}.

The even cat contains only even number states, and the odd cat only odd ones. They are exactly orthogonal at any nonzero amplitude, although the coherent components are not. With Π=eiπN\Pi=e^{i\pi N}, they have parity ±1\pm1. As α→0\alpha\to0 along a fixed phase, the even cat approaches vacuum and the odd cat approaches the one-photon state, up to that phase.

Writing r=tanh⁡xr=\sqrt{\tanh x}, the loss action is

a∣Cα+⟩=αr∣Cα−⟩,a∣Cα−⟩=αr−1∣Cα+⟩.\begin{aligned} a|C_\alpha^+\rangle&=\alpha r|C_\alpha^-\rangle,\\ a|C_\alpha^-\rangle&=\alpha r^{-1}|C_\alpha^+\rangle. \end{aligned}

Thus the two mean occupations are nˉ+=xtanh⁡x\bar n_+=x\tanh x and nˉ−=xcoth⁡x\bar n_-=x\coth x. At large xx they approach xx, but they differ at finite amplitude. The symbol xx is the component occupation; it is not exactly the occupation of every cat superposition.

Two logical bases, two names for the same error

Section titled “Two logical bases, two names for the same error”

First use the parity basis ∣0P⟩=∣Cα+⟩|0_P\rangle=|C_\alpha^+\rangle, ∣1P⟩=∣Cα−⟩|1_P\rangle=|C_\alpha^-\rangle. The exact restricted loss operator is

aP=α(0r−1r0),ΠP=Z.a_P=\alpha\begin{pmatrix}0&r^{-1}\\r&0\end{pmatrix}, \qquad \Pi_P=Z.

Now change to the orthonormal coherent-like basis

2∣0C⟩=∣Cα+⟩+∣Cα−⟩,2∣1C⟩=∣Cα+⟩−∣Cα−⟩.\begin{aligned} \sqrt2|0_C\rangle&=|C_\alpha^+\rangle+|C_\alpha^-\rangle,\\ \sqrt2|1_C\rangle&=|C_\alpha^+\rangle-|C_\alpha^-\rangle. \end{aligned}

These approach ∣α⟩|\alpha\rangle and ∣−α⟩|-\alpha\rangle as xx grows. A Hadamard basis change gives

aC=α2(r+r−1r−r−1r−1−r−r−r−1),ΠC=X.\begin{aligned} a_C&=\frac\alpha2\begin{pmatrix} r+r^{-1}&r-r^{-1}\\ r^{-1}-r&-r-r^{-1} \end{pmatrix},\\ \Pi_C&=X. \end{aligned}

For x≫1x\gg1, aP≃αXa_P\simeq\alpha X and aC≃αZa_C\simeq\alpha Z. At finite xx the restricted jump is not proportional to a unitary Pauli: the unequal norms also filter amplitudes. Calling a loss a bit or phase flip without specifying this basis can therefore be misleading.

Two-component basis Parity measurement Large-cat loss
Parity cats Logical ZZ Logical XX
Coherent-like states Logical XX Logical ZZ

Parity is not a harmless loss syndrome for this two-dimensional code. It measures a logical observable and can destroy an unknown logical superposition. The error set {I,a}\{I,a\} is not correctable here: PaPPaP is nonzero and not scalar. Increasing xx does not change that fact; it makes the loss approach a clean logical error instead of eliminating it.

For the rest of this section use the coherent-like basis. An ideal two-photon process has jump operator

L2=a2−α2,ρ˙=κ2D[L2]ρ.L_2=a^2-\alpha^2,\qquad \dot\rho=\kappa_2\mathcal D[L_2]\rho.

Both coherent components are annihilated by L2L_2. Every superposition in their span is therefore dark in this ideal model. Mirrahimi and collaborators (2014) develop such multiphoton stabilization schemes. The process can restore excursions away from the manifold, but it does not diagnose a single-photon jump that acts logically inside it.

For a fixed-degree normally ordered polynomial O(a†,a)O(a^\dagger,a), the matrix element ⟨α∣O∣−α⟩\langle\alpha|O|-\alpha\rangle is a polynomial factor times e−2xe^{-2x}. This helps explain why some transitions between separated components can be strongly suppressed. It is not a universal bound on all physical errors: large displacements, uncontrolled rotations, or a faulty ancilla may connect the components by another mechanism.

With strong confinement and large xx, the leading effective single-loss channel has jump κ1x Z\sqrt{\kappa_1x}\,Z. Its master equation is approximately ρ˙=κ1x(ZρZ−ρ)\dot\rho=\kappa_1x(Z\rho Z-\rho). Logical off-diagonal coherence then decays as e−2κ1xte^{-2\kappa_1xt}; the equivalent phase-flip probability is

pZ(t)=1−e−2κ1xt2.p_Z(t)=\frac{1-e^{-2\kappa_1xt}}2.

The jump rate κ1x\kappa_1x and coherence-decay rate 2κ1x2\kappa_1x differ by a factor two. This effective description assumes confinement remains faster than the relevant noise and control dynamics. Without confinement, ordinary attenuation also shrinks the coherent amplitudes.

At zero detuning, choose a rotating-frame convention with K>0K>0 and

Hℏ=−Ka†2a2+ϵ2a†2+ϵ2∗a2.\frac H\hbar=-Ka^{\dagger2}a^2 +\epsilon_2a^{\dagger2}+\epsilon_2^*a^2.

Here KK and ϵ2\epsilon_2 have units of angular frequency. Set α2=ϵ2/K\alpha^2=\epsilon_2/K. Then

Hℏ=−K(a†2−α∗2)(a2−α2)+Kx2.\frac H\hbar =-K(a^{\dagger2}-\alpha^{*2})(a^2-\alpha^2)+Kx^2.

The two cats are exact degenerate eigenstates of this ideal Hamiltonian, not merely semiclassical fixed points. Puri, Boutin, and Blais (2017) exploit this factorization. With the displayed negative-Kerr convention they lie at the top of this effective spectrum; this rotating-frame Hamiltonian is not a bounded-below laboratory energy. Detuning and additional terms can alter the degeneracy and leakage spectrum.

Hamiltonian evolution alone does not remove entropy or relax every leaked state back into the manifold. Spectral separation can suppress unwanted transitions, while dissipative stabilization has an attracting dynamics. Neither automatically preserves the bias during a gate. The gate’s full fault propagation and leakage need separate analysis.

Define unnormalized number-sector functions

fk(x)=∑n≡k  (mod  4)xnn!,k=0,1,2,3.f_k(x)=\sum_{n\equiv k\;({\rm mod}\;4)}\frac{x^n}{n!}, \qquad k=0,1,2,3.

The normalized sector cats are

∣Ck⟩=1fk(x)∑n≡k  (mod  4)αnn!∣n⟩.|C_k\rangle=\frac1{\sqrt{f_k(x)}} \sum_{n\equiv k\;({\rm mod}\;4)} \frac{\alpha^n}{\sqrt{n!}}|n\rangle.

They can also be obtained by projecting ∣α⟩|\alpha\rangle onto one number class, or by combining ∣α⟩,∣iα⟩,∣−α⟩,∣−iα⟩|\alpha\rangle,|i\alpha\rangle,|-\alpha\rangle,|-i\alpha\rangle with appropriate phases. All four sectors are exactly orthogonal. Useful closed forms are

f0=(cosh⁡x+cos⁡x)/2,f2=(cosh⁡x−cos⁡x)/2,f1=(sinh⁡x+sin⁡x)/2,f3=(sinh⁡x−sin⁡x)/2.\begin{aligned} f_0&=(\cosh x+\cos x)/2,\\ f_2&=(\cosh x-\cos x)/2,\\ f_1&=(\sinh x+\sin x)/2,\\ f_3&=(\sinh x-\sin x)/2. \end{aligned}

Choose ∣0L⟩=∣C0⟩|0_L\rangle=|C_0\rangle and ∣1L⟩=∣C2⟩|1_L\rangle=|C_2\rangle. Both have even parity. One loss gives

a∣Ck⟩=αfk−1fk∣Ck−1⟩,a|C_k\rangle =\alpha\sqrt{\frac{f_{k-1}}{f_k}}|C_{k-1}\rangle,

with labels modulo four. Thus C0C_0 moves to C3C_3 and C2C_2 to C1C_1. A parity measurement separates the original code from these odd error states without learning the logical label. Measuring the full number class modulo four would instead distinguish C0C_0 from C2C_2, or C3C_3 from C1C_1, and reveal logical information. The coarseness of the syndrome is essential.

Orthogonal error images do not alone preserve the relative amplitudes: their norms must also agree. The mean occupations of the two logical states are

n0=xf3f0,n2=xf1f2.n_0=x\frac{f_3}{f_0},\qquad n_2=x\frac{f_1}{f_2}.

Generic finite amplitudes give n0≠n2n_0\ne n_2, so loss carries some logical-state information. However, equality occurs at special finite amplitudes. Substituting the closed forms reduces the condition to

sin⁡xcosh⁡x+cos⁡xsinh⁡x=0,\sin x\cosh x+\cos x\sinh x=0,

or tan⁡x=−tanh⁡x\tan x=-\tanh x. The first positive solution is x≃2.3650x\simeq2.3650, where ∣α∣≃1.5379|\alpha|\simeq1.5379 and n0=n2≃2.3236n_0=n_2\simeq2.3236. Because PaP=0PaP=0 by parity and PNP=n0PPNP=n_0P, all conditions for {I,a}\{I,a\} hold exactly at that amplitude. Albert and collaborators (2018) discuss these finite-amplitude sweet spots and their channel-dependent extensions.

Four-component cat sectors under loss and the two logical mean occupations crossing at a finite single-loss correction point

Top: a one-loss error sends both logical branches from even to odd parity without merging them. The parity bit is a syndrome; the individual sector label contains logical information. Bottom: equal norms of the two error states require equal mean occupations. The first crossing is at component occupation x≃2.3650x\simeq2.3650, where the restricted error set {I,a}\{I,a\} is exactly correctable.

What the exact point does and does not correct

Section titled “What the exact point does and does not correct”

At the crossing, define the coherent recovery on the odd space by ∣C3⟩↦∣C0⟩|C_3\rangle\mapsto|C_0\rangle and ∣C1⟩↦∣C2⟩|C_1\rangle\mapsto|C_2\rangle. The common loss amplitude means this map restores every superposition after the jump. A complete recovery also specifies its action on the even code and on any unused states.

Two losses exchange the logical sectors. In fact,

a2∣C0⟩=α2f2/f0∣C2⟩,a2∣C2⟩=α2f0/f2∣C0⟩.\begin{aligned} a^2|C_0\rangle&=\alpha^2\sqrt{f_2/f_0}|C_2\rangle,\\ a^2|C_2\rangle&=\alpha^2\sqrt{f_0/f_2}|C_0\rangle. \end{aligned}

This is an amplitude-filtered logical exchange, approaching α2XL\alpha^2X_L only when the normalization factors become equal. Four annihilations obey a4P=α4Pa^4P=\alpha^4P exactly, but the complete finite-time channel contains more than these bare monomials.

The no-loss operator A0=ηN/2A_0=\eta^{N/2} sends each sector cat at α\alpha to the same sector at ηα\sqrt\eta\alpha, with amplitude fk(ηx)/fk(x)\sqrt{f_k(\eta x)/f_k(x)}. Even at a single-loss sweet spot, the higher moments differ and these no-loss probabilities are not generally equal. Active recovery must also address shrinkage and unobserved multiple losses. Thus exact correction of {I,a}\{I,a\} does not make a finite-energy cat immune to attenuation.

Repeated parity measurements can distinguish successive losses if the intervening sign changes are reliably resolved. Two jumps between samples have the same final parity as no jump. False readouts, ancilla faults, and missed changes must enter the decoder’s likelihoods. A record chosen only from successfully identified trajectories is a conditional performance measure.

More sectors, useful gates, and an outer code

Section titled “More sectors, useful gates, and an outer code”

For 2M2M rotated components, logical number sectors separated by MM can distinguish losses 0,…,M−10,\ldots,M-1 through number modulo MM. Measuring modulo MM, rather than 2M2M, avoids directly distinguishing the two logical sectors. Equal error norms and the other Knill–Laflamme products remain necessary. At fixed ∣α∣|\alpha|, increasing the component count also brings neighboring phase-space points closer. Sector resolution and component separation are different design constraints; Grimsmo, Combes, and Baragiola (2020) develop the rotation-symmetric framework.

A multiphoton jump a2M−α2Ma^{2M}-\alpha^{2M} has all 2M2M coherent components as dark states. It confines their span but does not by itself select a two-dimensional code or correct every logical error inside it. Pump imperfections and parasitic lower-order processes can change the channel.

In the two-component coherent-like basis, a bias-preserving gate keeps dominant ZZ-type faults predominantly ZZ-type throughout the operation, including propagation to other qubits. A Hadamard, for example, interchanges ZZ and XX; a generic gate set does not preserve the idle bias. Puri and collaborators (2020) construct gates using controlled cat-manifold dynamics. A correct projected rotation alone does not prove that faults during the pulse remain correctable; see Bosonic and Encoded Computation Models.

An outer repetition code can suppress the dominant phase errors while the cat encoding suppresses the rare opposite errors. Guillaud and Mirrahimi (2019) analyze this concatenation with specified operations. The advantage depends on bias during preparation, idling, measurements, and gates, not just on one storage lifetime. Bosonic Qubits discusses physical controls, while Error-Correction Case Studies compares experimental performance under stated conditions.

Derive the parity-cat normalization and mean occupations. What happens as x→0x\to0?

Solution

The squared norms of ∣α⟩±∣−α⟩|\alpha\rangle\pm|-\alpha\rangle are 2(1±e−2x)2(1\pm e^{-2x}). Opposite parities make their overlap zero. Applying aa gives squared norms xr2=xtanh⁡xxr^2=x\tanh x and x/r2=xcoth⁡xx/r^2=x\coth x. Their limits are zero and one, respectively. Both original coherent components approach vacuum, but their normalized difference approaches a one-photon state; normalization must be taken before the limit.

2. Why parity can destroy the two-component qubit

Section titled “2. Why parity can destroy the two-component qubit”

Start in ∣0C⟩=(∣Cα+⟩+∣Cα−⟩)/2|0_C\rangle=(|C_\alpha^+\rangle+|C_\alpha^-\rangle)/\sqrt2. Measure parity and discard the result. Find the final state and its overlap with the input.

Solution

The output is

ρ′=12∣Cα+⟩⟨Cα+∣+12∣Cα−⟩⟨Cα−∣.\rho'={}\tfrac12|C_\alpha^+\rangle\langle C_\alpha^+| +\tfrac12|C_\alpha^-\rangle\langle C_\alpha^-|.

In the coherent-like basis this is IL/2I_L/2, with input overlap 1/21/2. Parity has measured logical XX rather than a syndrome independent of the logical amplitudes. For the four-component code, by contrast, parity is positive on every original logical state and negative on the single-loss subspace.

In the large-cat effective model, assume independent phase-flip jumps at rate λ=κ1x\lambda=\kappa_1x. Derive the phase-flip probability after time tt and the off-diagonal decay.

Solution

Only an odd number of ZZ jumps changes the final Pauli frame. For Poisson count JJ, E[(−1)J]=e−2λt\mathbb E[(-1)^J]=e^{-2\lambda t}, so P(J odd)=(1−e−2λt)/2P(J\text{ odd})=(1-e^{-2\lambda t})/2. The mixture of identity and ZZ multiplies the logical off-diagonal by 1−2P=e−2λt1-2P=e^{-2\lambda t}. Two jumps cancel, and the long-time probability tends to 1/21/2 rather than growing indefinitely as λt\lambda t.

Show that n0=n2n_0=n_2 reduces to tan⁡x=−tanh⁡x\tan x=-\tanh x. Why is there a unique solution in (π/2,π)(\pi/2,\pi), and why does it establish correction of {I,a}\{I,a\}?

Solution

Cross multiplication gives

(sinh⁡x−sin⁡x)(cosh⁡x−cos⁡x)=(sinh⁡x+sin⁡x)(cosh⁡x+cos⁡x).(\sinh x-\sin x)(\cosh x-\cos x) =(\sinh x+\sin x)(\cosh x+\cos x).

Canceling common terms yields sinh⁡xcos⁡x+sin⁡xcosh⁡x=0\sinh x\cos x+\sin x\cosh x=0. On that interval, tan⁡x+tanh⁡x\tan x+\tanh x rises strictly from −∞-\infty to a positive value, since its derivative is sec⁡2x+sech⁡2x>0\sec^2x+\operatorname{sech}^2x>0. The root is x≃2.3650x\simeq2.3650. Different number sectors make off-diagonal number matrix elements vanish; parity makes PaP=0PaP=0; equal diagonal means give PNP=cPPNP=cP. Together with PIP=PPIP=P, these are the complete error-product conditions.

5. The sweet spot is not full-channel correction

Section titled “5. The sweet spot is not full-channel correction”

At the first single-loss point, use F2,k=x2fk−2/fkF_{2,k}=x^2f_{k-2}/f_k to compare the second factorial moments of C0C_0 and C2C_2. What does this imply for no-loss probabilities when η=1−δ\eta=1-\delta?

Solution

The moments are approximately F2,0=7.3072F_{2,0}=7.3072 and F2,2=4.2814F_{2,2}=4.2814. Expanding the exact no-loss probability gives

p0,k=1−δnk+12δ2F2,k+O(δ3).p_{0,k}=1-\delta n_k+\tfrac12\delta^2F_{2,k}+O(\delta^3).

The linear difference vanishes, but p0,0−p0,2≃1.5129δ2p_{0,0}-p_{0,2}\simeq1.5129\delta^2. Higher-order number dependence still distinguishes logical states. The finite set {I,a}\{I,a\} omits that information as well as two-loss logical exchanges.

List the sector pair descended from (0,2)(0,2) after zero through four annihilations. What information should a parity apparatus reveal?

Solution
Loss count Descendant sectors Parity
0 (0,2)(0,2) Even
1 (3,1)(3,1) Odd
2 (2,0)(2,0) Even
3 (1,3)(1,3) Odd
4 (0,2)(0,2) Even

The two entries label coherent logical branches, not alternatives to distinguish in a measurement. The apparatus should report their common parity. Resolving which entry occurred would collapse the encoded superposition. Final parity identifies only loss count modulo two; relative amplitudes also depend on the loss operator and any intervening no-loss evolution.

7. Find a finite optimum in a toy bias model

Section titled “7. Find a finite optimum in a toy bias model”

For x≥xmin⁡>0x\ge x_{\min}>0, minimize Ae−2x+BxA e^{-2x}+Bx, where A,B>0A,B>0. Explain the limits of interpreting this as a physical error probability.

Solution

The derivative is −2Ae−2x+B-2Ae^{-2x}+B and the second derivative is positive. The constrained minimum is

x∗=max⁡ ⁣{xmin⁡,12log⁡(2A/B)}.x_* =\max\!\left\{x_{\min},\tfrac12\log(2A/B)\right\}.

The formula assumes the two fitted contributions apply at the chosen size and operation duration. The linear phase term is a small-error approximation, while an outer code weights logical directions differently. Thus the expression illustrates competing costs rather than supplying a universal device optimum.

Use outer checks X1X2,X2X3X_1X_2,X_2X_3. Independent local ZZ errors have probability pp, and independent local XX errors have probability qq. Find the majority-decoder failure from the first type and the undetectable logical-error probability from the second type, treating each channel separately.

Solution

Two or three ZZ errors cause majority failure, giving 3p2−2p33p^2-2p^3. For local XX errors, every even-weight pattern is a stabilizer and every odd-weight pattern is in the same nontrivial logical class. Therefore

PX,odd=3q(1−q)2+q3=3q−6q2+4q3.\begin{aligned} P_{X,\rm odd}&=3q(1-q)^2+q^3\\ &=3q-6q^2+4q^3. \end{aligned}

This differs from the probability 1−(1−q)31-(1-q)^3 of at least one event: two XX faults are harmless in this ideal code. Both expressions begin with 3q3q, so leading-order statements alone conceal the distinction. The outer code protects the dominant direction only; the cat mechanism must keep the orthogonal direction small throughout its circuits.

J. Guillaud, J. Cohen, and M. Mirrahimi, “Quantum computation with cat qubits,” Les Houches lecture notes (2022), arXiv:2203.03222, develops stabilized dynamics and gate constructions in more detail.