Skip to content

GKP Codes

A Gottesman–Kitaev–Preskill code, or GKP code, embeds a finite logical system in one or more oscillator modes by imposing a lattice of phase-space translation symmetries. Small continuous shifts of the quadratures become modular syndromes. Recovery rounds those analog shifts to a lattice cell, thereby converting a continuum of physical errors into discrete logical Pauli errors that an outer code can process.

That compact description hides three distinct layers:

  1. the ideal code is an exact translation-stabilizer code whose codewords are nonnormalizable Dirac combs;
  2. a finite-energy code replaces the comb by finite-width peaks under a decaying envelope and is only approximately invariant under ideal translations;
  3. an implemented protocol adds noisy state preparation, ancillas, syndrome extraction, decoding, feedback or autonomous pumping, and gates.

Statements about one layer do not automatically hold at the next.

Bosonic Codes is the canonical home for the common oscillator-code and recovery framework. Bosonic Qubits owns the oscillator–ancilla module, platform comparisons, and hardware evidence. Continuous-Variable Quantum Computation owns abstract mode computation and continuous-variable cluster-model semantics. Continuous-Variable Platforms owns optical and microwave cluster architectures, physical resource generation, and hardware evidence. This page owns GKP lattice conventions, ideal and finite- energy codewords, displacement distance, modular syndromes, analog decoding, code-specific gate options, variants, and fault-tolerance boundaries.

Bosonic and Encoded Computation Models owns the code-family-independent audit that composes a declared physical oscillator program before extracting its induced logical channel, leakage, rejection, recovery, frame, and resource ledger. This page retains the GKP lattice, states, syndromes, analog decoding, recovery, family-specific logical gates, and thresholds.

Quantum Error Correction and Fault Tolerance treats a GKP code as one phase-space encoding inside a complete protection record; this page retains lattice conventions, modular syndromes, finite-energy effects, analog decoding, recovery, logical gates, variants, evidence, and resources.

One oscillator has annihilation operator aa and dimensionless quadratures

q=a+a†2,p=a−a†i2,[q,p]=i,n=a†a=q2+p2−12.\begin{gathered} q = \frac{a+a^\dagger}{\sqrt2}, \qquad p = \frac{a-a^\dagger}{i\sqrt2}, \\ [q,p]=i, \qquad n=a^\dagger a = \frac{q^2+p^2-1}{2}. \end{gathered}

All distances below use these q,pq,p coordinates. A Weyl displacement is

W(u,v)=exp⁡ ⁣[i(vq−up)].W(u,v) = \exp\!\left[ i(vq-up) \right].

It shifts the quadrature means by

W(u,v)†qW(u,v)=q+u,W(u,v)†pW(u,v)=p+v.W(u,v)^\dagger qW(u,v)=q+u, \qquad W(u,v)^\dagger pW(u,v)=p+v.

The multiplication law is

W(u,v)W(u′,v′)=exp⁡ ⁣[−i2(uv′−vu′)]×W(u+u′,v+v′).\begin{aligned} W(u,v)W(u',v') &= \exp\!\left[ -\frac{i}{2} (uv'-vu') \right] \\ &\quad\times W(u+u',v+v'). \end{aligned}

Consequently,

W(u,v)W(u′,v′)=e−i(uv′−vu′)×W(u′,v′)W(u,v).\begin{aligned} W(u,v)W(u',v') &= e^{-i(uv'-vu')} \\ &\quad\times W(u',v')W(u,v). \end{aligned}

Two displacements commute when the signed phase-space area uv′−vu′uv'-vu' is an integer multiple of 2π2\pi. This area rule is the geometric origin of the stabilizer lattice.

The square GKP qubit is the simultaneous +1+1 generalized eigenspace of

SZ=W(0,2π)=ei2πq,S_Z = W(0,2\sqrt\pi) = e^{i2\sqrt\pi q},

and

SX=W(2π,0)=e−i2πp.S_X = W(2\sqrt\pi,0) = e^{-i2\sqrt\pi p}.

The generators commute because their enclosed area is 4π4\pi. The subscripts refer to the associated logical Pauli convention: SZS_Z is a full momentum translation and SXS_X is a full position translation.

In the position representation, a convenient logical basis is

⟨q∣0L⟩∝∑s∈Zδ ⁣(q−2sπ),\langle q|0_L\rangle \propto \sum_{s\in\mathbb Z} \delta\!\left( q-2s\sqrt\pi \right),

and

⟨q∣1L⟩∝∑s∈Zδ ⁣(q−(2s+1)π).\langle q|1_L\rangle \propto \sum_{s\in\mathbb Z} \delta\!\left( q-(2s+1)\sqrt\pi \right).

Logical zero occupies even multiples of π\sqrt\pi; logical one occupies odd multiples. Their sum and difference have the reciprocal combs

⟨p∣+L⟩∝∑s∈Zδ ⁣(p−2sπ),\langle p|+_L\rangle \propto \sum_{s\in\mathbb Z} \delta\!\left( p-2s\sqrt\pi \right),

and

⟨p∣−L⟩∝∑s∈Zδ ⁣(p−(2s+1)π).\langle p|-_L\rangle \propto \sum_{s\in\mathbb Z} \delta\!\left( p-(2s+1)\sqrt\pi \right).

The logical Pauli translations are half the stabilizer length:

ZL=W(0,π)=eiπq,Z_L = W(0,\sqrt\pi) = e^{i\sqrt\pi q},

and

XL=W(π,0)=e−iπp.X_L = W(\sqrt\pi,0) = e^{-i\sqrt\pi p}.

They satisfy

ZLXL=−XLZL,Z_LX_L=-X_LZ_L,

commute with both stabilizers, and act as

ZL∣0L⟩=∣0L⟩,ZL∣1L⟩=−∣1L⟩,XL∣0L⟩=∣1L⟩,XL∣1L⟩=∣0L⟩.\begin{aligned} Z_L|0_L\rangle&=|0_L\rangle, & Z_L|1_L\rangle&=-|1_L\rangle, \\ X_L|0_L\rangle&=|1_L\rangle, & X_L|1_L\rangle&=|0_L\rangle. \end{aligned}

The ideal construction can be summarized as follows.

itemsquare GKP qubit
physical carrierone oscillator mode
logical subspacesimultaneous ideal +1+1 eigenspace of two commuting translations
stabilizersSZ=ei2πqS_Z=e^{i2\sqrt\pi q} and SX=e−i2πpS_X=e^{-i2\sqrt\pi p}
logical PaulisZL=eiπqZ_L=e^{i\sqrt\pi q} and XL=e−iπpX_L=e^{-i\sqrt\pi p}
displacement distanceddisp=πd_{\rm disp}=\sqrt\pi in the stated (q,p)(q,p) coordinates
ideal correctable cell∣u∣<π/2\lvert u\rvert<\sqrt\pi/2 and ∣v∣<π/2\lvert v\rvert<\sqrt\pi/2
syndromestabilizer phases, equivalently uu and vv modulo π\sqrt\pi
basic decodernearest point of the logical displacement lattice
ideal Clifford gatesGaussian symplectic transformations
non-Clifford routemagic-state injection, a nonlinear phase resource, or code-aware optimal control

There is a crucial mathematical qualification: the Dirac combs are distributions, not vectors of the oscillator Hilbert space. They have no finite normalization and no finite mean energy. The ideal code is an exact algebraic reference, not a laboratory state.

Lattice Geometry and Displacement Distance

Section titled “Lattice Geometry and Displacement Distance”

The square stabilizer lattice is

ΛS=2π Z2.\Lambda_{\rm S} = 2\sqrt\pi\,\mathbb Z^2.

The displacements that commute with every stabilizer form its symplectic dual,

ΛS⊥=π Z2.\Lambda_{\rm S}^{\perp} = \sqrt\pi\,\mathbb Z^2.

The quotient

ΛS⊥/ΛS≅Z2×Z2\Lambda_{\rm S}^{\perp}/\Lambda_{\rm S} \cong \mathbb Z_2\times\mathbb Z_2

contains the four logical displacement cosets II, XX, ZZ, and YY. The shortest displacement in the dual lattice that is not a stabilizer has length

ddisp=min⁡λ∈ΛS⊥∖ΛS∥λ∥=π.d_{\rm disp} = \min_{\lambda\in \Lambda_{\rm S}^{\perp}\setminus\Lambda_{\rm S}} \|\lambda\| = \sqrt\pi.

This is a phase-space distance, not a Hamming weight. Its operational meaning depends on a metric and a decoder. For isotropic additive Gaussian noise, Euclidean nearest-lattice decoding is natural and the Voronoi cell around the identity is

VI=[−π2,π2)×[−π2,π2).\mathcal V_I = \left[ -\frac{\sqrt\pi}{2}, \frac{\sqrt\pi}{2} \right) \times \left[ -\frac{\sqrt\pi}{2}, \frac{\sqrt\pi}{2} \right).

For anisotropic or correlated noise, the likelihood contours are not circles, and Euclidean distance need not be the correct decoding metric.

Ideal square GKP position combs and displacement-lattice Pauli cosets

Left: the ideal logical basis alternates on a position comb with logical spacing π\sqrt\pi and stabilizer period 2π2\sqrt\pi. Right: the commuting displacement lattice splits into II, XX, ZZ, and YY cosets. The shaded square is the nearest-lattice correction cell around II; crossing one of its boundaries can leave a logical Pauli after recovery. This is displacement space, not a Wigner-function plot of a physical finite-energy state.

Suppose a displacement error W(u,v)W(u,v) acts on an ideal code state. Weyl commutation gives

SZW(u,v)∣ψL⟩=ei2πuW(u,v)∣ψL⟩,SXW(u,v)∣ψL⟩=e−i2πvW(u,v)∣ψL⟩.\begin{aligned} S_ZW(u,v)|\psi_L\rangle &= e^{i2\sqrt\pi u} W(u,v)|\psi_L\rangle, \\ S_XW(u,v)|\psi_L\rangle &= e^{-i2\sqrt\pi v} W(u,v)|\psi_L\rangle. \end{aligned}

The two stabilizer phases reveal

u mod π,v mod π,u\bmod\sqrt\pi, \qquad v\bmod\sqrt\pi,

without revealing the encoded amplitudes. Choose centered representatives

u~,v~∈[−π2,π2).\tilde u,\tilde v \in \left[ -\frac{\sqrt\pi}{2}, \frac{\sqrt\pi}{2} \right).

Applying W(−u~,−v~)W(-\tilde u,-\tilde v) leaves

W(mπ,nπ),m,n∈Z,W(m\sqrt\pi,n\sqrt\pi), \qquad m,n\in\mathbb Z,

up to a global phase. The parities of mm and nn determine the residual logical Pauli:

parity of (m,n)(m,n)residual logical operator
even, evenILI_L
odd, evenXLX_L
even, oddZLZ_L
odd, oddYLY_L up to phase

If the physical shift lies strictly inside VI\mathcal V_I, then m=n=0m=n=0 and ideal recovery is exact. At a cell boundary, two corrections are equally near; no decoder can resolve the ambiguity without a prior or additional information.

For

u=0.37π,v=−0.18π,u=0.37\sqrt\pi, \qquad v=-0.18\sqrt\pi,

the centered residue is the shift itself. Recovery returns the state to the identity coset.

For

u=0.63π,v=−0.18π,u=0.63\sqrt\pi, \qquad v=-0.18\sqrt\pi,

the measured position-shift residue is

u~=−0.37π.\tilde u=-0.37\sqrt\pi.

The corresponding correction leaves a net position translation π\sqrt\pi, hence a logical XLX_L. The syndrome was measured perfectly; the logical error arose because the physical shift crossed a decoding boundary.

Let a position shift be Gaussian,

fσ(u)=12πσ2exp⁡ ⁣(−u22σ2).f_\sigma(u) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\!\left( -\frac{u^2}{2\sigma^2} \right).

Nearest-lattice decoding produces a logical XX whenever uu lies in a cell centered on an odd multiple of π\sqrt\pi:

pX(q)=∑m∈Zm odd∫(m−1/2)π(m+1/2)πfσ(u) du.\begin{aligned} p_X^{(q)} &= \sum_{\substack{m\in\mathbb Z\\m\ {\rm odd}}} \int_{(m-1/2)\sqrt\pi}^{(m+1/2)\sqrt\pi} f_\sigma(u)\,du. \end{aligned}

At small σ\sigma, the nearest two wrong cells dominate, giving

pX(q)≃erfc⁡ ⁣(π22 σ),p_X^{(q)} \simeq \operatorname{erfc}\!\left( \frac{\sqrt\pi}{2\sqrt2\,\sigma} \right),

with exponentially smaller corrections from farther even and odd cells. The same calculation applies to momentum shifts and logical ZZ errors.

This formula is a channel model, not a universal performance law. Finite energy, noisy ancillas, loss, rotations, and repeated measurements alter the distribution and can correlate the two axes.

A modular outcome is more informative than a hard Pauli decision. The general decoder contract explains how soft records enter logical-class inference. For the square GKP code, given a centered residue rr and a Gaussian prior, the likelihoods that the hidden lattice index is even or odd are

Peven(r)∝∑k∈Zk evenexp⁡ ⁣[−(r+kπ)22σ2],Podd(r)∝∑k∈Zk oddexp⁡ ⁣[−(r+kπ)22σ2].\begin{aligned} P_{\rm even}(r) &\propto \sum_{\substack{k\in\mathbb Z\\k\ {\rm even}}} \exp\!\left[ -\frac{(r+k\sqrt\pi)^2}{2\sigma^2} \right], \\ P_{\rm odd}(r) &\propto \sum_{\substack{k\in\mathbb Z\\k\ {\rm odd}}} \exp\!\left[ -\frac{(r+k\sqrt\pi)^2}{2\sigma^2} \right]. \end{aligned}

The log-likelihood ratio

Λ(r)=log⁡Peven(r)Podd(r)\Lambda(r) = \log \frac{P_{\rm even}(r)} {P_{\rm odd}(r)}

is large in magnitude near a cell center and approaches zero near a decision boundary. Passing this soft information to a concatenated surface-code or cluster-state decoder can outperform throwing it away and retaining only a binary syndrome.

No normalizable physical state is exactly invariant under both independent stabilizer translations. A common one-parameter finite-energy model applies a Gaussian envelope operator to an ideal codeword:

EΔ=e−Δ2n,∣μΔ⟩=EΔ∣μL⟩⟨μL∣EΔ2∣μL⟩.E_\Delta = e^{-\Delta^2 n}, \qquad |\mu_{\Delta}\rangle = \frac{ E_\Delta|\mu_L\rangle }{ \sqrt{ \langle\mu_L|E_\Delta^2|\mu_L\rangle } }.

For Δ>0\Delta>0, the state is normalizable and has finite mean occupation. The ideal limit is Δ→0\Delta\to0, in which the energy diverges.

Another useful model displays the two physical scales directly:

⟨q∣μσ,κ⟩∝∑s∈Zexp⁡ ⁣[−(q−qsμ)24σ2]×exp⁡ ⁣[−κ2qsμ22],\begin{aligned} \langle q|\mu_{\sigma,\kappa}\rangle \propto \sum_{s\in\mathbb Z} & \exp\!\left[ -\frac{ (q-q_{s\mu})^2 }{4\sigma^2} \right] \\ &\times \exp\!\left[ -\frac{\kappa^2q_{s\mu}^2}{2} \right], \end{aligned}

where

qsμ=(2s+μ)π.q_{s\mu} = (2s+\mu)\sqrt\pi.

Here σ2\sigma^2 is the probability variance of an isolated position peak in the negligible-overlap limit, while κ−1\kappa^{-1} controls the broad envelope. Fourier transformation exchanges peak and envelope roles between the two quadratures. A one-parameter symmetric model ties these scales together; a general prepared state need not.

Finite energy is not a cosmetic preparation infidelity. It changes:

  • exact stabilizer eigenvalues into distributions of modular outcomes;
  • orthogonality and logical-state normalization;
  • intrinsic decoding tails before additional environmental noise;
  • mean occupation and sensitivity to photon loss;
  • how Gaussian gates deform the envelope;
  • the backaction tolerated from finite-strength syndrome extraction;
  • which channel distance and recovery metric are physically meaningful.

The energy cost increases as peaks narrow. In a symmetric small-width regime, the mean occupation scales parametrically as

nˉ=O(σ−2),\bar n=O(\sigma^{-2}),

although the coefficient depends on the envelope convention.

If σ2\sigma^2 denotes the probability variance of an isolated quadrature peak and the vacuum variance is 1/21/2, one common effective squeezing convention is

sGKP=−10log⁡10(2σ2) dB.s_{\rm GKP} = -10\log_{10}(2\sigma^2) \ {\rm dB}.

Other papers infer an effective width from stabilizer expectation values, fit a global finite-energy state, or report optical input squeezing. Those numbers need not coincide. A defensible report states the quadrature normalization, estimator, peak model, envelope model, and uncertainty.

The oscillator Hilbert space can be organized as a logical subsystem and a continuous stabilizer-syndrome subsystem,

Hosc≅C2⊗Hsynd,\mathcal H_{\rm osc} \cong \mathbb C^2 \otimes \mathcal H_{\rm synd},

for the square qubit convention. This decomposition is useful because a finite-energy physical state need not lie in an exact two-dimensional subspace: its logical content and its modular displacement content can still be separated operationally. It also supports channel simulation without a prohibitively large Fock cutoff.

The ideal algebra specifies what to measure, not how to measure it. Four broad recovery routes are common.

A prepared grid-state ancilla interacts with the data through a SUM or controlled-phase Gaussian coupling. Homodyne measurement of the ancilla returns one modular quadrature; a second ancilla or round obtains the conjugate syndrome. This is the oscillator analogue of Steane-style syndrome extraction.

The ancilla is not harmless. Its finite squeezing adds shift noise, coupling faults can propagate between modes, detector inefficiency broadens the outcome, and a badly displaced ancilla can introduce a logical error into the data. Fault-tolerant analysis must include those channels rather than treating the ancilla as an exact comb.

An encoded Bell resource, Gaussian entangling operation, and homodyne measurements can teleport the logical state into a fresh mode while supplying both modular syndromes. The feedforward displacement completes recovery. This route can combine error correction, state refresh, and gate teleportation, but its cost includes resource-state yield, optical or microwave loss, detection, and feedforward latency.

In circuit QED and trapped motion, a nonlinear two-level ancilla can control oscillator displacements. Ramsey-like or phase-estimation sequences map a stabilizer phase to the ancilla, followed by readout, reset, and feedback. Echoed conditional displacements can reduce unwanted entanglement and make weak dispersive coupling useful.

Repeated rounds need a decoder over the complete record. Ancilla relaxation, dephasing, thermal population, readout assignment, leakage, and reset failure can all become oscillator displacements or envelope distortions.

Engineered dissipation or repeated unconditional ancilla-reset cycles can pump the oscillator toward a finite-energy GKP manifold without recording a classical syndrome each round. Autonomous operation removes some measurement latency, but it does not remove the ancilla, reset channel, pumps, or steady-state deformation from the resource and error budgets.

Single-round nearest-lattice rounding is optimal only under a symmetric, memoryless displacement model with ideal syndrome readout. A practical decoder may need:

  • unequal qq and pp noise variances;
  • correlated shifts and phase rotations;
  • finite-energy syndrome priors;
  • a hidden Markov model for repeated rounds;
  • ancilla-state and reset flags;
  • analog likelihoods rather than hard decisions;
  • oscillator loss and leakage hypotheses;
  • joint decoding with an outer qubit code;
  • a declared response to out-of-model records.

For a general multimode lattice, maximum-likelihood decoding becomes a closest-vector problem in the appropriate symplectic dual lattice. Exact closest-vector decoding is hard for an unstructured large lattice, although important structured GKP and surface–GKP families admit efficient decoders.

The GKP code is naturally adapted to displacement errors. Real oscillators also experience attenuation, heating, dephasing, Kerr evolution, control leakage, and correlated ancilla faults.

A pure-loss channel of transmissivity η\eta transforms one quadrature as

qout=η q+1−η qenv,q_{\rm out} = \sqrt\eta\,q +\sqrt{1-\eta}\,q_{\rm env},

with the environment in vacuum for ideal attenuation. The channel both shrinks the lattice and adds noise. A quantum-limited phase-insensitive amplifier of gain 1/η1/\eta placed after the loss restores the mean scale but adds another vacuum contribution. In the present normalization, the combined additive variance per quadrature is

σadd2=1−ηη.\sigma_{\rm add}^2 = \frac{1-\eta}{\eta}.

This mapping is useful for analysis, but the amplifier is a physical noisy operation and finite-energy envelope deformation remains. The GKP code does not algebraically “correct one photon loss” in the same sense as a declared Fock-state loss code.

Number dephasing generates random rotations,

Uθ=e−iθn.U_\theta=e^{-i\theta n}.

A point at phase-space radius rr moves transversely by approximately rθr\theta for small θ\theta. Far-out peaks of a high-energy grid can therefore cross a decoding boundary even when θ\theta is small. This is one reason energy constraints are essential in channel metrics and fault-tolerance statements.

Self-Kerr evolution shears the grid. Calibration error in a conditional displacement leaves coherent residual shifts. Ancilla decay during a controlled operation can produce a displacement whose size depends on the unknown jump time. These faults are not captured by one Gaussian variance; the decoder and recovery must use the measured device channel.

The 2026 comparison literature reinforces the general lesson: GKP and number-phase codes exchange advantage as the balance of loss and dephasing changes. There is no oscillator code that is uniformly optimal for every channel.

For the ideal square code, important logical Clifford operations are Gaussian symplectic transformations.

logical operationoscillator actionphase-space map
XLX_L, ZLZ_Lhalf-lattice displacementstranslate by π\sqrt\pi along one axis
Hadamardquarter-period rotation(q,p)↦(p,−q)(q,p)\mapsto(p,-q) up to convention
phase gatequadratic shear(q,p)↦(q,p+q)(q,p)\mapsto(q,p+q)
SUMe−iq1p2e^{-iq_1p_2}q2↦q2+q1q_2\mapsto q_2+q_1, p1↦p1−p2p_1\mapsto p_1-p_2
Pauli measurementhomodyne plus modular decodingresolve a logical comb coset

Gaussian Clifford gates map the ideal lattice to itself. Universality still requires a non-Clifford resource, such as a logical magic state, a cubic-phase resource, photon counting, adaptive measurement, or a code-aware nonlinear control pulse.

Finite-energy envelopes are not invariant under every ideal lattice automorphism. A shear can stretch one envelope direction; a two-mode gate can correlate the shift noise; loss during a gate can propagate through a SUM interaction. A fault-tolerant gate claim must state:

  1. the finite-energy input family;
  2. which data and ancilla faults are included;
  3. whether error correction occurs before, during, or after the gate;
  4. how analog outcomes are propagated to the outer decoder;
  5. whether the logical error improves as code resources increase;
  6. the complete operation cost and acceptance probability.

An inner GKP layer digitizes oscillator noise and supplies soft information. An outer surface, color, repetition, or cluster-state code suppresses the remaining logical Pauli errors:

oscillator noise⟶GKP analog syndrome⟶logical Pauli likelihood⟶outer-code decoder.\text{oscillator noise} \longrightarrow \text{GKP analog syndrome} \longrightarrow \text{logical Pauli likelihood} \longrightarrow \text{outer-code decoder}.

Threshold values quoted for surface–GKP or photonic cluster architectures are conditional on a state model, squeezing convention, loss model, gate noise, decoder, and architecture. They are not universal constants of “the GKP code.”

In 2026, a threshold theorem extended continuous-variable fault tolerance beyond the usual Gaussian-random-displacement idealization to a specified class of general Markovian-type noise. The result uses finite-energy states, energy-aware channel bounds, GKP gadgets, and an outer concatenated code. It is an important theoretical advance, not evidence that arbitrary unbounded noise or a present device lies below threshold.

A rectangular lattice trades correction radius between qq and pp while preserving the symplectic cell area. It can be advantageous when one quadrature is substantially noisier or when concatenation is designed around a biased logical channel. The decoder metric must use that asymmetry.

At fixed cell area, a hexagonal lattice has a larger Euclidean packing radius than a square lattice for isotropic shifts. This can lower ideal displacement error under an isotropic Gaussian model. Gate convenience, syndrome circuits, finite-energy preparation, and hardware anisotropy can reverse the comparison.

A one-mode square GKP qudit of logical dimension dd has stabilizer spacing

ℓd=2πd\ell_d=\sqrt{2\pi d}

in the present q,pq,p coordinates, and logical spacing

λd=2πd.\lambda_d = \sqrt{\frac{2\pi}{d}}.

The stabilizers and generalized Paulis may be chosen as

SZ=eiℓdq,SX=e−iℓdp,Zd=eiλdq,Xd=e−iλdp.\begin{gathered} S_Z=e^{i\ell_d q}, \qquad S_X=e^{-i\ell_d p}, \\ Z_d=e^{i\lambda_d q}, \qquad X_d=e^{-i\lambda_d p}. \end{gathered}

With

ωd=e2πi/d,\omega_d=e^{2\pi i/d},

they obey

ZdXd=ωdXdZd.Z_dX_d=\omega_d X_dZ_d.

The ideal position codewords are

⟨q∣μL⟩∝∑s∈Zδ ⁣[q−(sd+μ)λd],\langle q|\mu_L\rangle \propto \sum_{s\in\mathbb Z} \delta\!\left[ q-(sd+\mu)\lambda_d \right],

for μ=0,…,d−1\mu=0,\ldots,d-1. Setting d=2d=2 recovers the square qubit convention.

Several oscillators can support a higher-dimensional symplectic lattice. Multimode codes can improve Euclidean distance, tailor correlations, or incorporate an outer code directly into the lattice. The benefits come with more couplers, more complex state preparation, and a higher-dimensional closest-vector decoder.

Surface–GKP and cluster-state constructions

Section titled “Surface–GKP and cluster-state constructions”

In a surface–GKP architecture, each oscillator supplies one inner GKP qubit and the outer surface code uses its analog likelihoods. In photonic measurement-based constructions, finite-energy GKP resource states are fused with Gaussian operations into a large cluster and measured adaptively. These are complete architecture proposals, not merely different one-mode wavefunctions.

One GKP logical qubit can occupy one data mode, but one mode is not the full correction module.

resourcerolequantities that must be counted
data oscillatorstores the finite-energy gridlifetime, dephasing, Kerr, nˉ\bar n, truncation
nonlinear or GKP ancillaextracts modular quadratures or mediates controlpreparation fidelity, loss, relaxation, leakage
Gaussian couplingSUM, beam splitter, squeezing, conditional displacementgain error, phase error, propagation, duration
detector and readout chainhomodyne or ancilla-state measurementefficiency, assignment, bandwidth, latency
reset or dissipative channelremoves syndrome entropyresidual excitation, heating, correlations
decoder and controllerevaluates analog history and applies feedforwardmodel mismatch, throughput, calibration drift
outer code, if usedsuppresses residual logical Paulismodes, checks, routing, cycle time, decoder cost

A useful report includes at least

(nˉ,sGKP,σq,σp,η,Δt,Nmode,Nanc,Tlatency,Pacc),\left( \bar n, s_{\rm GKP}, \sigma_q, \sigma_p, \eta, \Delta t, N_{\rm mode}, N_{\rm anc}, T_{\rm latency}, P_{\rm acc} \right),

together with the state model and logical metric. Optical implementations must additionally report source probability, multiplexing loss, detector efficiency, and accepted output rate. A cavity implementation must include the ancilla and readout hardware, not advertise only “one oscillator.”

Experimental and Theoretical Evidence Through August 2026

Section titled “Experimental and Theoretical Evidence Through August 2026”

The record is strongest when separated by capability.

In 2019, trapped-ion motion hosted an encoded grid-state qubit. In 2020, a superconducting cavity experiment prepared square and hexagonal GKP states and repeatedly corrected both quadratures without postselection. In 2022, a trapped-ion dissipative protocol extended logical coherence by more than a factor of three relative to its uncorrected logical states.

These experiments established controllable finite-energy grids and repeated state-preserving syndrome cycles on two physical platforms. Improvement over an uncorrected encoding is not automatically improvement over the best physical memory in the same module.

In 2023, a superconducting oscillator–transmon module used repeated real-time correction and a learned control policy. The reported average coherence gain over the best physical qubit in the device was

G=2.27±0.07.G=2.27\pm0.07.

That is an end-to-end beyond-break-even memory result for one finite-energy GKP qubit. It is not an increasing-distance threshold demonstration.

In 2024, autonomous GKP correction with unconditional ancilla reset showed that a dissipative protocol can extend logical lifetime without a recorded digital feedback decision every round.

In 2025, the square construction was extended to a logical qutrit and ququart in one oscillator. Their reported gains over the best physical references of matching dimension were

G3=1.82±0.03,G4=1.87±0.03.G_3=1.82\pm0.03, \qquad G_4=1.87\pm0.03.

This establishes error-corrected logical qudits. It does not turn one mode into several independently addressable logical qubits.

In 2025, a trapped-ion experiment implemented deterministic logical single-mode gates, a non-Clifford gate, a two-mode controlled-ZZ, and direct logical Bell-state preparation for finite-energy GKP states. The reported average controlled-ZZ process fidelity was 0.73(1)0.73(1) and the Bell-state fidelity was 0.83(3)0.83(3). The operations were not protected simultaneously by repeated correction, so this was a universal encoded gate set rather than a fault-tolerant processor.

An integrated photonic experiment in 2025 produced heralded optical states with resolved grid structure and Wigner negativity in both quadratures. The authors identified further loss reduction as necessary for the targeted fault-tolerant regime. In 2026, a peer-reviewed optical resource framework gave a numerical and architectural route from low-squeezing Gaussian inputs and heralded detection to higher-quality non-Gaussian and GKP resources. It was not an end-to-end experimental processor demonstration.

As of the review date, no one GKP architecture has demonstrated all of:

  • increasing-resource suppression of the complete logical error;
  • repeated correction during a universal one- and two-logical-mode gate set;
  • fault-contained ancilla preparation, measurement, and reset;
  • large-scale analog decoding within the physical cycle time;
  • an outer-code threshold experiment with full oscillator-module accounting;
  • task-level advantage after source yield, loss, and correction overhead.

Theoretical threshold results, memory break-even, a universal encoded gate set, and a scalable-looking source are complementary milestones. None substitutes for the others.

In the convention [q,p]=i[q,p]=i, the square-qubit stabilizer spacing is 2π2\sqrt\pi. The logical Pauli spacing and displacement distance are π\sqrt\pi.

“Ideal GKP codewords are highly squeezed physical states”

Section titled ““Ideal GKP codewords are highly squeezed physical states””

Ideal codewords are nonnormalizable distributions with divergent energy. A finite-energy state is a different mathematical object with an envelope, finite peaks, and intrinsic logical noise.

It does not. Peak variance, envelope width, stabilizer expectation, optical input squeezing, and effective channel variance use different conventions.

“Every shift smaller than half a cell is corrected in hardware”

Section titled ““Every shift smaller than half a cell is corrected in hardware””

That statement assumes ideal states, exact modular measurements, exact displacements, and no ancilla faults. A physical recovery has its own logical channel.

“Photon loss is just a correctable displacement”

Section titled ““Photon loss is just a correctable displacement””

Loss attenuates the grid and injects noise. Amplification can convert it to an additive-noise model only by adding a physical noisy operation and specifying its ordering.

“Rounding the syndrome is the decoder”

Section titled ““Rounding the syndrome is the decoder””

Hard rounding discards analog confidence and ignores temporal, correlated, and ancilla information. It is a useful baseline, not a universal decoder.

“Gaussian Clifford gates are automatically fault tolerant”

Section titled ““Gaussian Clifford gates are automatically fault tolerant””

They preserve the ideal lattice algebra. Finite-energy envelope distortion, fault propagation, loss during the gate, and imperfect correction still have to be bounded.

“Beyond break-even proves a threshold”

Section titled ““Beyond break-even proves a threshold””

Break-even compares one implemented logical memory with a named reference. A threshold claim needs a scalable family and decreasing logical error as the relevant resource increases under matched conditions.

Use the Weyl commutation relation to show that SXS_X and SZS_Z commute, while XLX_L and ZLZ_L anticommute.

Solution

For two displacement vectors ξ=(u,v)\xi=(u,v) and ξ′=(u′,v′)\xi'=(u',v'), the commutation phase is

e−i(uv′−vu′).e^{-i(uv'-vu')}.

The stabilizer vectors are

ξX=(2π,0),ξZ=(0,2π).\xi_X=(2\sqrt\pi,0), \qquad \xi_Z=(0,2\sqrt\pi).

Their signed area is

ξX∧ξZ=4π,\xi_X\wedge\xi_Z = 4\pi,

so the phase is e−i4π=1e^{-i4\pi}=1.

The logical vectors are

λX=(π,0),λZ=(0,π).\lambda_X=(\sqrt\pi,0), \qquad \lambda_Z=(0,\sqrt\pi).

Their area is π\pi, giving e−iπ=−1e^{-i\pi}=-1. Thus

XLZL=−ZLXL.X_LZ_L=-Z_LX_L.

Show directly in the qq representation that ZLZ_L distinguishes the two logical codewords and XLX_L swaps them.

Solution

On a position eigenket,

ZL∣q⟩=eiπq∣q⟩.Z_L|q\rangle = e^{i\sqrt\pi q}|q\rangle.

For logical zero, q=2sπq=2s\sqrt\pi, so

eiπq=ei2πs=1.e^{i\sqrt\pi q} = e^{i2\pi s} =1.

For logical one, q=(2s+1)πq=(2s+1)\sqrt\pi, so

eiπq=ei(2s+1)π=−1.e^{i\sqrt\pi q} = e^{i(2s+1)\pi} =-1.

Meanwhile,

XL=e−iπpX_L=e^{-i\sqrt\pi p}

translates position by π\sqrt\pi. It maps every even comb point to an odd comb point and vice versa, hence swaps ∣0L⟩|0_L\rangle and ∣1L⟩|1_L\rangle.

For each shift below, find the centered residue and residual logical Pauli:

(u,v)A=(0.20,−0.41)π,(u,v)B=(0.72,0.61)π.\begin{aligned} (u,v)_A &= (0.20,-0.41)\sqrt\pi, \\ (u,v)_B &= (0.72,0.61)\sqrt\pi. \end{aligned}
Solution

Record AA already lies in the centered cell:

(u~,v~)A=(0.20,−0.41)π.(\tilde u,\tilde v)_A = (0.20,-0.41)\sqrt\pi.

After the inverse displacement, no lattice translation remains, so the residual is ILI_L.

For record BB, subtract one lattice spacing on each axis:

(u~,v~)B=(−0.28,−0.39)π.(\tilde u,\tilde v)_B = (-0.28,-0.39)\sqrt\pi.

Recovery leaves

W(π,π),W(\sqrt\pi,\sqrt\pi),

which is XLZLX_LZ_L up to phase, hence a logical YLY_L up to phase.

For a narrow Gaussian position-shift distribution, derive the leading approximation

pX(q)≃erfc⁡ ⁣(π22 σ).p_X^{(q)} \simeq \operatorname{erfc}\!\left( \frac{\sqrt\pi}{2\sqrt2\,\sigma} \right).
Solution

At small σ\sigma, nearly all wrong decisions arise when the shift leaves the central interval:

∣u∣>π2.|u|>\frac{\sqrt\pi}{2}.

The probability of the two Gaussian tails is

ptail=2∫π/2∞du2πσ2e−u2/(2σ2)=erfc⁡ ⁣(π22 σ).\begin{aligned} p_{\rm tail} &= 2 \int_{\sqrt\pi/2}^{\infty} \frac{du}{\sqrt{2\pi\sigma^2}} e^{-u^2/(2\sigma^2)} \\ &= \operatorname{erfc}\!\left( \frac{\sqrt\pi}{2\sqrt2\,\sigma} \right). \end{aligned}

Farther intervals centered on even multiples of π\sqrt\pi are included in this tail but return to the identity Pauli. Their probabilities are exponentially smaller than the nearest odd intervals, so the tail is the leading logical-error approximation, not the exact periodic sum.

Two centered residues are r1=0.05πr_1=0.05\sqrt\pi and r2=0.49πr_2=0.49\sqrt\pi under the same narrow Gaussian prior. Which record should have the larger-magnitude log-likelihood ratio, and why?

Solution

The residue r1r_1 lies near the center of the identity cell. Its nearest even lattice hypothesis is much more likely than its nearest odd hypothesis, so ∣Λ(r1)∣|\Lambda(r_1)| is large.

The residue r2r_2 lies close to the boundary between the cells centered at 00 and π\sqrt\pi. Those two hypotheses have nearly equal likelihood, so Λ(r2)\Lambda(r_2) is near zero. A hard decoder can assign both records, but the analog decoder correctly marks the second decision as fragile.

Using

sGKP=−10log⁡10(2σ2) dB,s_{\rm GKP} = -10\log_{10}(2\sigma^2)\ {\rm dB},

find sGKPs_{\rm GKP} when the isolated peak variance is σ2=0.05\sigma^2=0.05.

Solution

Here

2σ2=0.10.2\sigma^2=0.10.

Therefore,

sGKP=−10log⁡10(0.10)=10 dB.s_{\rm GKP} = -10\log_{10}(0.10) = 10\ {\rm dB}.

The numerical answer is meaningful only with the stated vacuum variance and peak-variance definition.

7. Recover the qubit from the qudit formulas

Section titled “7. Recover the qubit from the qudit formulas”

Set d=2d=2 in the square-qudit construction. Show that the stabilizer and logical spacings reduce to the qubit values.

Solution

For d=2d=2,

ℓ2=2π(2)=2π,\ell_2 = \sqrt{2\pi(2)} = 2\sqrt\pi,

while

λ2=2π2=π.\lambda_2 = \sqrt{\frac{2\pi}{2}} = \sqrt\pi.

The position comb becomes

q=(2s+μ)π,μ∈{0,1},q=(2s+\mu)\sqrt\pi, \qquad \mu\in\{0,1\},

which is precisely the even and odd square-qubit comb.

An experiment demonstrates a beyond-break-even GKP memory in one mode and, in a separate sequence, a two-mode encoded entangling gate. Correction is not run during the gate, and no outer-code scaling is tested. Which claims are supported?

Solution

The evidence can support:

  • beyond-break-even storage for the named memory metric and reference;
  • coherent encoded two-mode control;
  • implementation of the reported logical entangling operation.

It does not by itself establish:

  • a fault-tolerant entangling gate;
  • suppression with increasing code distance;
  • an outer-code threshold;
  • a complete fault-tolerant processor;
  • task-level advantage after full resource accounting.

Those stronger claims require correction during operations, fault containment, scaling, and matched end-to-end benchmarks.

  1. D. Gottesman, A. Kitaev, and J. Preskill, “Encoding a qubit in an oscillator,” Physical Review A 64, 012310 (2001), doi:10.1103/PhysRevA.64.012310.
  2. S. Glancy and E. Knill, “Error analysis for encoding a qubit in an oscillator,” Physical Review A 73, 012325 (2006), doi:10.1103/PhysRevA.73.012325.
  3. N. C. Menicucci, “Fault-tolerant measurement-based quantum computing with continuous-variable cluster states,” Physical Review Letters 112, 120504 (2014), doi:10.1103/PhysRevLett.112.120504.
  4. B. M. Terhal and D. J. Weigand, “Encoding a qubit into a cavity mode in circuit QED using phase estimation,” Physical Review A 93, 012315 (2016), doi:10.1103/PhysRevA.93.012315.
  5. K. Fukui, A. Tomita, and A. Okamoto, “Analog quantum error correction with encoding a qubit into an oscillator,” Physical Review Letters 119, 180507 (2017), doi:10.1103/PhysRevLett.119.180507.
  6. K. Fukui, A. Tomita, A. Okamoto, and K. Fujii, “High-threshold fault-tolerant quantum computation with analog quantum error correction,” Physical Review X 8, 021054 (2018), doi:10.1103/PhysRevX.8.021054.
  7. V. V. Albert et al., “Performance and structure of single-mode bosonic codes,” Physical Review A 97, 032346 (2018), doi:10.1103/PhysRevA.97.032346.
  8. C. Flühmann et al., “Encoding a qubit in a trapped-ion mechanical oscillator,” Nature 566, 513–517 (2019), doi:10.1038/s41586-019-0960-6.
  9. C. Vuillot, H. Asasi, Y. Wang, L. P. Pryadko, and B. M. Terhal, “Quantum error correction with the toric Gottesman–Kitaev–Preskill code,” Physical Review A 99, 032344 (2019), doi:10.1103/PhysRevA.99.032344.
  10. P. Campagne-Ibarcq et al., “Quantum error correction of a qubit encoded in grid states of an oscillator,” Nature 584, 368–372 (2020), doi:10.1038/s41586-020-2603-3.
  11. K. Noh and C. Chamberland, “Fault-tolerant bosonic quantum error correction with the surface–Gottesman–Kitaev–Preskill code,” Physical Review A 101, 012316 (2020), doi:10.1103/PhysRevA.101.012316.
  12. B. Royer, S. Singh, and S. M. Girvin, “Stabilization of finite-energy Gottesman–Kitaev–Preskill states,” Physical Review Letters 125, 260509 (2020), doi:10.1103/PhysRevLett.125.260509.
  13. A. L. Grimsmo and S. Puri, “Quantum error correction with the Gottesman–Kitaev–Preskill code,” PRX Quantum 2, 020101 (2021), doi:10.1103/PRXQuantum.2.020101.
  14. J. E. Bourassa et al., “Blueprint for a scalable photonic fault-tolerant quantum computer,” Quantum 5, 392 (2021), doi:10.22331/q-2021-02-04-392.
  15. B. de Neeve, T.-L. Nguyen, T. Behrle, and J. P. Home, “Error correction of a logical grid state qubit by dissipative pumping,” Nature Physics 18, 296–300 (2022), doi:10.1038/s41567-021-01487-7.
  16. J. Conrad, J. Eisert, and F. Arzani, “Gottesman–Kitaev–Preskill codes: A lattice perspective,” Quantum 6, 648 (2022), doi:10.22331/q-2022-02-10-648.
  17. V. V. Sivak et al., “Real-time quantum error correction beyond break-even,” Nature 616, 50–55 (2023), doi:10.1038/s41586-023-05782-6.
  18. M. Lin, C. Chamberland, and K. Noh, “Closest lattice point decoding for multimode Gottesman–Kitaev–Preskill codes,” PRX Quantum 4, 040334 (2023), doi:10.1103/PRXQuantum.4.040334.
  19. M. H. Shaw, A. C. Doherty, and A. L. Grimsmo, “Stabilizer subsystem decompositions for single- and multimode Gottesman–Kitaev–Preskill codes,” PRX Quantum 5, 010331 (2024), doi:10.1103/PRXQuantum.5.010331.
  20. D. Lachance-Quirion et al., “Autonomous quantum error correction of Gottesman–Kitaev–Preskill states,” Physical Review Letters 132, 150607 (2024), doi:10.1103/PhysRevLett.132.150607.
  21. B. L. Brock et al., “Quantum error correction of qudits beyond break-even,” Nature 641, 612–618 (2025), doi:10.1038/s41586-025-08899-y.
  22. V. G. Matsos et al., “Universal quantum gate set for Gottesman–Kitaev–Preskill logical qubits,” Nature Physics 21, 1664–1669 (2025), doi:10.1038/s41567-025-03002-8.
  23. M. V. Larsen et al., “Integrated photonic source of Gottesman–Kitaev–Preskill qubits,” Nature 642, 587–591 (2025), doi:10.1038/s41586-025-09044-5.
  24. T. Matsuura, N. C. Menicucci, and H. Yamasaki, “Continuous-variable fault-tolerant quantum computation under general noise,” Nature Communications 17, 1709 (2026), doi:10.1038/s41467-026-69036-5.
  25. Ö. Erkılıç et al., “A unified optical platform for non-Gaussian and fault-tolerant Gottesman–Kitaev–Preskill states,” npj Quantum Information (2026), doi:10.1038/s41534-026-01336-6.
  26. K.-X. Wen, D.-L. Hu, S. Li, and Z.-L. Xiang, “Estimating the performance boundary of Gottesman–Kitaev–Preskill codes and number-phase codes,” Physical Review A 114, 012450 (2026), doi:10.1103/yh45-pj3r.
  • Coherent States in Phase Space develops displacement operators, characteristic functions, and Wigner representations used to diagnose grid states.
  • Continuous-Variable Systems develops multimode quadratures, symplectic transformations, Gaussian states, and covariance conventions.
  • Bosonic Codes supplies approximate correction criteria, channel metrics, energy constraints, and comparisons among oscillator-code geometries.
  • Surface Code develops the outer-code checks, matching intuition, and threshold language used in surface–GKP concatenation.
  • Bosonic Qubits compares cavity, trapped-motion, acoustic, and optical modules and owns the detailed hardware evidence ledger.
  • Error-Correction Case Studies compares GKP, binomial, cat, and discrete-qubit break-even claims under matched evidence rules.
  • Fault-Tolerant Quantum Computing Frontier places GKP inner codes inside the larger gate, decoder, outer-code, and resource problem.