QuantumAtlas

Research Explained · Error Correction

Encoding a Qubit in an Oscillator

Daniel Gottesman, Alexei Kitaev, and John Preskill

California Institute of Technology; Microsoft Research; Perimeter Institute · 2001 · Difficulty ★★★★★

Reference

Gottesman, D., Kitaev, A., & Preskill, J. (2001). Encoding a qubit in an oscillator. Physical Review A, 64, 012310. arXiv:quant-ph/0008040.

Preprint: arXiv:quant-ph/0008040

This page is an independent explanation. For exact wording, figures, and data, read the original paper.

The short version

Gottesman, Kitaev, and Preskill show how to store a qubit in the position and momentum of a single oscillator, using a state with a regular grid of narrow peaks. Small shifts in position or momentum can then be detected and undone. The GKP code is now a leading bosonic code.

Key findings

  • The two logical states are superpositions of many narrow position peaks spaced evenly, offset from each other by half a period.
  • Shifts in position and momentum smaller than a threshold, about one quarter of the grid spacing in the appropriate units, can be corrected.
  • Errors typical of oscillators, such as loss and heating, produce small shifts that the code can handle, with a small residual error.
  • Clifford gates are implemented with linear optics and squeezing, and measurement with homodyne detection, and non-Clifford resources can be added through special states.

Background: why this paper was written

Quantum information is usually encoded in two-level systems, but many physical systems are oscillators, such as modes of the electromagnetic field and vibrations of ions. Their Hilbert space is infinite-dimensional, and continuous-variable quantum information had been developed in the late 1990s, with the encoding of qubits in oscillators in earlier schemes, such as Braunstein's and Lloyd's, that protect against some errors but not general ones.

Gottesman, Kitaev, and Preskill, at Caltech, asked whether a qubit could be encoded in an oscillator with protection against the generic small errors, since any error on an oscillator can be expanded in terms of small shifts in position and momentum. The answer was to build a code in which the logical information is stored in the integer multiples of a lattice in phase space.

What the researchers did

The ideal code states are defined in the position representation. The logical zero is the sum of position eigenstates at all even multiples of the square root of pi, and the logical one is the sum at all odd multiples. The two states are orthogonal, and in the momentum representation they have a similar comb structure. A small shift in position by an amount less than one half of the spacing between a zero peak and a neighbor one peak moves the state off the grid slightly, and a measurement of the position modulo the square root of pi reveals the shift without revealing the logical value.

The error correction therefore consists of measuring the position and momentum modulo the square root of pi, which gives the shifts, and applying the opposite shifts. The code corrects shifts in each quadrature of magnitude less than the square root of pi over 2, and the shifts that exceed this cause logical errors. The paper treats the code as a stabilizer code on the oscillator, with the stabilizers being the displacements by the square root of 2 pi in position and in momentum, which commute and define the code space.

The authors describe the logical operations. Pauli operators are displacements by half the grid spacing, and the Hadamard gate is a Fourier transform, realized by a phase shifter. The controlled-NOT between two such oscillators needs a quadratic interaction, equivalent to a beam splitter and squeezers. They also deal with the realistic case of finite energy, by smoothing the combs with a Gaussian envelope, and estimate that large squeezing, of the order of 10 to 20 decibels, is needed for the peaks to be narrow enough.

Results

The code gives protection against small errors with a single oscillator, which fits the dominant noise of many bosonic systems.

The paper shows how to build a fault-tolerant scheme from the code, using it as an inner code concatenated with an outer code, such as the surface code, and calculates thresholds in terms of the noise in the peaks.

Later work by Menicucci and coauthors in 2014 showed how GKP states could be used for fault-tolerant measurement-based computation in continuous variables, with a threshold at a squeezing level of about 20 decibels, and later improved to about 10 decibels.

Key facts and numbers

ItemDetail
Year and venue2001, Physical Review A
Code statesCombs of position peaks spaced by 2 times the square root of pi, with logical states offset by the square root of pi
Correctable shiftsLess than half the spacing between logical peaks in each quadrature
Squeezing neededAbout 10 to 20 decibels, depending on the scheme
First experimentsTrapped ion (2019) and superconducting cavity (2020)

Limitations and caveats

Perfect GKP states need infinite energy, and approximate states with finite squeezing leave residual errors that limit performance. Preparing states with enough squeezing is the main experimental obstacle.

Non-Clifford gates and universal computation need extra resources, and implementing high-fidelity two-oscillator gates is difficult.

The code protects against small shifts, so large errors, such as photon loss with large amplitudes, remain a problem, and the ancilla used for measurements introduces errors.

Why it matters

The GKP code is used in the experiments of Yale, ETH Zurich, Paris, and Xanadu, and is the code chosen by Nord Quantique and others for building fault-tolerant machines with fewer physical components.

What happened next

GKP states were first created in the motion of a trapped ion by the ETH Zurich group in 2019 and in a superconducting cavity in 2020, and the 2023 experiment of Sivak and coauthors passed break-even. Xanadu generated GKP states on a photonic chip in 2025 as part of its Aurora system.

The paper is a main reference for bosonic quantum error correction, and its ideas about using the phase-space structure of an oscillator influenced the cat-code and binomial-code proposals as well as the study of quantum error correction for quantum communication.

How to read the original paper

The paper is long and technical. The sections that define the code and the error correction are accessible with some knowledge of oscillators and phase space.

The GKP qubit and cat qubit pages on this site compare the bosonic codes.

Original abstract (paraphrased)

The paper shows how to encode a qubit in a harmonic oscillator in such a way that small shifts in position and momentum can be corrected. The code states are infinite combs of position eigenstates, with practical versions being finite-energy approximations. The paper describes error correction, logical gates, and fault-tolerant protocols, and shows that the code can be concatenated with a qubit code to give protection against larger errors.

Frequently asked questions

What is a GKP qubit?

A qubit encoded in a comb-like state of an oscillator, so that small shifts in position or momentum can be detected and corrected.

Why is it attractive?

It corrects the most common oscillator errors at the hardware level and can reduce the overhead of an outer error-correcting code.

What is the main challenge?

Creating states with enough squeezing and performing high-fidelity gates between GKP qubits.

Keep exploring

Explanations on this page summarize published work for education (last reviewed September 30, 2026). Numbers are taken from the cited paper or from widely reported follow-up work, and later results may have updated or challenged them. Check the reference above before citing.

← Back to all research papers