Recommended resources
The freely available resources this lesson will direct you to.
Hello! Welcome to our next lesson in the series on recent advances in quantum error correction.
In our last lesson, we explored Schrödinger cat codes, which encode a qubit into a superposition of coherent states. We saw that their structure is tailored to combat "subtractive" errors like single photon loss, which is detected by a change in the state's photon number parity.
Today, we shift our focus to a different, yet equally important, family of bosonic codes: the Gottesman-Kitaev-Preskill (GKP) codes. As you'll see, these codes have a completely different structure in phase space, making them naturally suited to correcting "additive" errors in the form of small, random displacements. This lesson directly addresses the learning outcome: Analyze the structure of Gottesman-Kitaev-Preskill (GKP) codes in phase space and derive their mechanism for correcting small displacement errors.
1. The Structure of GKP States
While cat codes are superpositions of a few (2 or 4) coherent states, GKP states are superpositions of an infinite number of states, forming a regular grid or lattice in phase space. Let's start with a high-level visual and auditory introduction.
Optical quantum computing with continuous variables
This clip from a talk by Ulrik L. Andersen at the Centre for Quantum Technologies provides a concise visual introduction to the GKP state in phase space.
Please watch from 00:43:12 to 00:44:35. Pay attention to the description of the GKP state's Wigner function as a 'comb of spikes' and how it is constructed as a superposition of squeezed states.
As the video illustrates, the GKP state has a unique and intricate structure. To understand it formally, we will dive into a more detailed resource.
Bosonic Quantum Error Correction with a Heavy Fluxonium ...
The PhD thesis 'Bosonic Quantum Error Correction with a Heavy Fluxonium...' by Shoumik Chowdhury provides an excellent and detailed introduction to GKP codes. We'll use it to define both the idealized and the more realistic finite-energy versions of these states.
Please read Sections 2.2.1 ('Ideal GKP Codes') and 2.2.2 ('Finite-Energy GKP Codes'), including the captions for Figures 2-2, 2-4, and 2-5. Focus on how the ideal codes are defined via stabilizers and position eigenstates, and how the finite-energy codes are constructed using a Gaussian envelope.
Let's break down the key concepts from that reading.
Ideal GKP Codes
The ideal GKP code is defined within the Hilbert space of a single harmonic oscillator. Its core properties are:
-
Stabilizers: The logical subspace is defined as the simultaneous +1 eigenspace of two commuting stabilizer operators. For a square lattice GKP code, these are displacement operators:
Since , these operators commute, , allowing for simultaneous stabilization. This should feel familiar from the stabilizer codes you studied in Module 5.
-
Logical States: The logical basis states can be expressed as superpositions of position eigenstates . They form an infinite "comb" of Dirac delta functions:
The state consists of peaks at even integer multiples of , while has peaks at odd integer multiples.
In phase space, the Wigner function of an ideal GKP state like is a 2D grid of delta functions.
Finite-Energy GKP Codes
Ideal GKP states are unphysical as they contain infinite energy. To create a physically realizable version, we apply a Gaussian "envelope" operator to the ideal states. This has two effects:
- Each delta-function peak in phase space is broadened into a small Gaussian peak of width .
- The entire infinite grid is enveloped by a larger Gaussian of width .
The parameter represents a trade-off:
- Small : The state is closer to ideal, with well-defined, narrow peaks. This provides better error correction capabilities but requires higher energy (squeezing), making it harder to prepare and maintain.
- Large : The state has lower energy but the peaks are broader and overlap more, reducing the code's ability to correct errors.
The Wigner functions for the finite-energy GKP logical states, shown in Figure 2-5 of the thesis, provide an excellent visualization of this structure. The logical and (or ) states have grids offset along the axis, while the logical states are grids offset along the axis.
2. The GKP Error Correction Mechanism
GKP codes are designed to correct the primary error affecting continuous-variable systems: small, unknown displacements in phase space. This error channel maps a state to , where is a small, random complex number.
The Correction Principle
The fundamental idea is that because the GKP state is periodic in phase space, we only need to know an error's value modulo the lattice spacing to correct it.

As shown in the figure above, phase space is tiled into cells centered on the lattice points.
- If a displacement error is small enough (e.g., ), the state remains within its original cell. We can measure the displacement and apply a correcting displacement to move the state back to the center of the cell.
- If the displacement is too large (e.g., ), the state is pushed into a neighboring cell. Our measurement will now identify the center of this new cell as the target. Correcting to this new center is equivalent to a perfect correction followed by a logical operator ( or ), resulting in a logical error.
To formalize this, we can define distinct zones in phase space.
arXiv:2308.01549v1 [quant-ph] 3 Aug 2023
This paper, 'Concatenation of a bosonic code with a qubit code...', provides a very clear mathematical description of the GKP error correction process, including the crucial concepts of Pauli Error Zones.
Please read Section III, 'GKP Error Correction with Noisy Ancillary Qubits' (up to the end of subsection B). Focus on how Figure 2's circuit works, the definition of the 'no Pauli error zone' (NPZ) and 'Pauli error zone' (PZ) in Eq. (31) and Fig. 3, and the derivation of the residual displacement for both ideal and physical ancillas.
Deriving the Mechanism with an Ancilla
As the paper explains, measuring the stabilizers and is not a simple projective measurement. Instead, it is implemented by coupling the GKP oscillator (the data qubit) to another GKP oscillator (the ancilla) and then measuring the ancilla. The circuit in Figure 2 of arXiv:2308.01549v1 uses a SUM gate, , to achieve this.
Let's trace the effect of a displacement error on the data qubit's position quadrature.
1. Ideal Ancilla Case:
- The data qubit has an initial displacement error . The ancilla is a perfect GKP state with no error ().
- After the SUM gate, the ancilla's position quadrature becomes . An ideal GKP state has position peaks at . A measurement of the ancilla's position will therefore yield an outcome .
- To infer the error, we find the nearest lattice point: . With a high probability for small , our guess for the error is .
- We apply a correction displacement of to the data qubit. The residual displacement is .
- As derived in the paper (Eq. 30), this residual error is discrete:
- If is in the NPZ (e.g., ), then (modulo ). Perfect correction.
- If is in the PZ (e.g., ), then (modulo ). This is a logical Pauli- error.
2. Physical Ancilla Case (The Realistic Scenario):
This is the crucial part. The ancilla is also a physical GKP state and has its own small displacement error, .
- The measurement outcome of the ancilla's position is now .
- Our inferred error is .
- The residual displacement on the data qubit is now .
- As shown in Eq. (36), if falls into a cell centered at , the residual error becomes .
This is a profound result. The error correction process effectively substitutes the unknown error of the data qubit () with the unknown error of the ancilla qubit (), while re-centering it on the GKP grid. This is why high-quality ancillas (small , i.e., small in the paper's notation) are essential for effective GKP error correction. The distribution of this continuous residual error, shown in Figure 5 of the paper, clearly illustrates that a better ancilla (smaller ) leads to a sharper peak around , meaning a more successful correction.
Test your understanding!
Imagine you are performing GKP error correction using the SUM gate protocol. Your data GKP state suffers a position displacement of . Your ancilla GKP state, which you thought was perfect, actually has a displacement of .
- Is the initial error in a Pauli Error Zone (PZ) or a No-Pauli Zone (NPZ)?
- What is the total displacement measured by the ancilla, ?
- After inferring the error and applying the correction, what is the residual displacement on the data qubit?
- Has the correction been successful in completely removing the error?
Show answer
- The first NPZ is centered at 0 and extends to . Since , the initial error is in the NPZ.
- The total displacement is .
- The inferred error is . Since , the nearest lattice point is at . So, . The residual displacement is . Alternatively, using the formula : here, is in the cell centered at , so .
- No, the correction was not successful. In fact, it made things worse! The initial error was correctable, but the ancilla's error pushed the total displacement into a PZ. The correction protocol therefore misidentified the error and applied a logical flip, leaving a large residual displacement of . This highlights the critical sensitivity of the protocol to ancilla quality.
Conclusion
In this lesson, we have analyzed the Gottesman-Kitaev-Preskill code, a cornerstone of bosonic quantum error correction.
Key Takeaways:
- Structure: GKP codes encode a qubit into a periodic grid-like structure in the phase space of a harmonic oscillator. Ideal states are infinite-energy "combs" of delta functions, while physical states are finite-energy versions with Gaussian-broadened peaks.
- Error Model: They are designed to correct small, additive displacement errors, which are common in continuous-variable systems.
- Correction Mechanism: The correction works by measuring the oscillator's position and momentum quadratures modulo the lattice period. This is typically done by coupling the oscillator to an ancilla GKP state.
- Ancilla's Role: The process effectively transfers the error from the data qubit to the ancilla. A perfect correction relies on a perfect ancilla; a physical ancilla replaces the data error with its own error, limiting the overall fidelity.
Preview of the next lesson:
Both cat codes and GKP codes are examples of active quantum error correction (QEC), where we detect errors and apply real-time corrections. This is a powerful but demanding approach. For the noisy quantum devices available today, a different strategy is often more practical. In our next lesson, we will explore the principles of quantum error mitigation (QEM). Instead of actively correcting errors, QEM techniques aim to estimate and computationally subtract their effects during data post-processing, providing a pathway to useful results on near-term hardware.