Computing Library › Quantum Error Correction
Quantum Error Correction

GKP Bosonic Codes

The Gottesman-Kitaev-Preskill code stores a qubit in a single oscillator using a grid of position and momentum, correcting small shifts in phase space.

A qubit in an oscillator

Bosonic codes encode a qubit into the infinite-dimensional Hilbert space of a harmonic oscillator, a mode of light or a mechanical or microwave resonator. The GKP code does this with a lattice: the ideal code states are superpositions of position eigenstates spaced periodically, forming a grid in the phase space of position q and momentum p.

Correcting small shifts

Kronos motion — error correction

The dominant noise on an oscillator is small random displacements in q and p. GKP stabilizers are the two commuting displacement operators that translate by a full lattice period. Measuring them modulo the lattice reveals how far the state has drifted within a unit cell, and the correction pushes it back to the nearest grid point. Shifts smaller than half a lattice spacing are corrected.

GKP is powerful because it turns the hardest analog error, a continuous displacement, into a digitizable one, and because a single well-made GKP qubit already has a nonzero distance. This makes it a strong inner code: a lattice of GKP qubits fed into a surface code can outperform a surface code built from ordinary qubits, since the GKP layer supplies analog information about how confident each syndrome is.

The engineering challenge is preparing and maintaining highly squeezed grid states, since finite squeezing sets the residual error floor. Superconducting-cavity and trapped-ion experiments have demonstrated GKP states and rounds of correction, making it one of the more mature bosonic approaches.