In short

Continuous-variable (CV) quantum computing encodes quantum information not in discrete two-level qubits but in the quadratures \hat{x} and \hat{p} of bosonic modes — the position-like and momentum-like operators of a harmonic oscillator. A qumode is a single bosonic mode, and its state is a wavefunction \psi(x) on the continuous real line, exactly as in the quantum mechanics of a particle on a line you have met in class 12. The operators satisfy the canonical commutation [\hat{x}, \hat{p}] = i (with \hbar = 1). Gaussian operations — squeezing \hat{S}(r), displacement \hat{D}(\alpha), and beam splitters mixing two modes — are the linear-optical toolkit of CV: they preserve the Gaussian shape of a wavefunction that started Gaussian, they are easy to implement experimentally, and they compose into any symplectic transformation of the quadratures. But by Bartlett–Sanders–Braunstein–Nemoto (2002) and related results, any Gaussian CV circuit on Gaussian input states with Gaussian (homodyne) measurement is classically simulable in polynomial time. For genuine quantum speedup, CV computing must introduce at least one non-Gaussian resource: the cubic phase gate e^{i\gamma \hat{x}^3}, photon-number-resolving detection, or a non-Gaussian input state such as a cat state or a GKP (Gottesman–Kitaev–Preskill) state. GKP encoding is the cleanest bridge between CV and qubit QC: a codeword |0\rangle_{\text{GKP}} is a comb of delta functions on the x-axis spaced by 2\sqrt{\pi}, with |1\rangle_{\text{GKP}} shifted by \sqrt{\pi}. Approximate GKP states (finite-width peaks) realise logical qubits inside a single bosonic mode with intrinsic protection against small displacement errors — a form of bosonic quantum error correction proposed in 2001 and first demonstrated in 2019 (Yale) and 2020 (ETH Zürich). Xanadu, a Canadian photonic-QC company, is the most visible CV-native platform: its Borealis (216 modes, Gaussian Boson Sampling) and X8 / X24 devices run CV circuits in the time domain on squeezed-light sources, and its roadmap targets GKP-encoded fault tolerance. CV QC's virtues: single-mode codes (one oscillator carries one qubit with built-in protection), room-temperature operation for photonic implementations, natural link to quantum optics. Its costs: non-Gaussian resources are experimentally very hard, GKP state preparation is still in the few-photon regime, and the architectural overhead for fault tolerance is comparable to qubit-based approaches.

In every other chapter of this curriculum, a qubit has been a discrete two-level system. A superconducting transmon lives in its two lowest energy eigenstates. A trapped ion lives in two hyperfine levels. A photon in polarisation encoding lives in |H\rangle vs |V\rangle. Even in measurement-based photonics, the logical basis is discrete — photon present here versus photon present there. The whole edifice of quantum gates, algorithms, and error correction has been built on the Hilbert space \mathbb{C}^2 of a single qubit and its tensor products.

There is a completely different way to build a quantum computer, and it has been pursued in parallel with the qubit approach for over two decades.

Forget the qubit. Start instead with a single harmonic oscillator — a mode of the electromagnetic field in a resonator, a mechanical oscillator, a collective atomic excitation, anything whose Hamiltonian looks like \hat{H} = \tfrac{1}{2}(\hat{p}^2 + \hat{x}^2). You met this system already in class 12 physics. Its state is a wavefunction \psi(x) on the real line; its position operator \hat{x} has continuous spectrum (-\infty, \infty); its momentum operator \hat{p} likewise. These are called the quadratures of the mode — two continuous-valued observables linked by the canonical commutation [\hat{x}, \hat{p}] = i (we use \hbar = 1 throughout).

Now make two bold choices.

This is continuous-variable quantum computing. It is not a curiosity. It is a mature, experimentally active paradigm pioneered by Seth Lloyd, Samuel Braunstein, Peter van Loock, and others in the late 1990s, and it is the architecture Xanadu (Canada) uses for their photonic quantum processors. It even has its own universality theorem, its own error-correcting codes, and its own distinctive failure mode (Gaussian simulability).

This chapter is the CV playbook. Quadratures. Gaussian and non-Gaussian. GKP. Xanadu.

The quadratures of a bosonic mode

A single bosonic mode — for example, one mode of the electromagnetic field in a laser cavity at frequency \omega — is described by the annihilation operator \hat{a} and creation operator \hat{a}^\dagger, with [\hat{a}, \hat{a}^\dagger] = 1. The number operator \hat{n} = \hat{a}^\dagger \hat{a} has integer eigenvalues 0, 1, 2, \ldots — these are the Fock states |n\rangle, each corresponding to exactly n photons in the mode.

The quadrature operators are defined as

\hat{x} = \frac{\hat{a} + \hat{a}^\dagger}{\sqrt{2}}, \qquad \hat{p} = \frac{\hat{a} - \hat{a}^\dagger}{i\sqrt{2}}.

Why this combination: inverting, \hat{a} = (\hat{x} + i\hat{p})/\sqrt{2} and \hat{a}^\dagger = (\hat{x} - i\hat{p})/\sqrt{2}. The commutator [\hat{x}, \hat{p}] = \tfrac{1}{2}[\hat{a} + \hat{a}^\dagger, -i(\hat{a} - \hat{a}^\dagger)] = -i \cdot \tfrac{1}{2}([\hat{a}, -\hat{a}^\dagger] + [\hat{a}^\dagger, \hat{a}]) = -i \cdot \tfrac{1}{2}(-1 - 1) = i as required. The \sqrt{2} factors are convention.

Think of \hat{x} as "position" and \hat{p} as "momentum" of an effective particle — the language inherited from mechanical oscillators. For a photonic mode, "position" is actually the in-phase component of the electric field, and "momentum" is the out-of-phase (quadrature) component. The physics is identical because mathematically they are the same oscillator.

Now the basic states.

The first three — vacuum, coherent, squeezed — are all Gaussian states: their Wigner functions (the phase-space quasi-probability distributions) are 2D Gaussians. The Fock states beyond n = 0 and any superposition that is not Gaussian-weighted are non-Gaussian states.

This Gaussian / non-Gaussian distinction is not a matter of aesthetics. It is the deep structural divide of CV quantum computing.

Phase space pictures of four CV statesFour panels on a 2-by-2 grid showing phase-space uncertainty contours. Vacuum: circle at origin. Coherent: circle displaced away from origin. Squeezed: ellipse at origin, narrow along x. Fock state n=1: ring around origin. Each panel labelled with its state name.Phase space: x horizontal, p verticalVacuum |0⟩xpCoherent |α⟩xSqueezed |r⟩xpFock |1⟩xpGaussian vs non-GaussianGaussian: vacuum, coherent, squeezed — Wigner function is a 2D GaussianNon-Gaussian: Fock |n⟩ (n ≥ 1), cat states, GKP states — Wigner function has ring structure or negative regionsThe Gaussian / non-Gaussian divide is what separates classical-simulable from universal in CV QC.
Four canonical CV states in phase space. The vacuum is a minimum-uncertainty Gaussian at the origin; a coherent state is the same Gaussian displaced; a squeezed state is the same Gaussian reshaped (narrower in one quadrature, wider in the orthogonal one). The Fock state $|1\rangle$ is a ring, a genuinely non-Gaussian distribution with Wigner-function negativity at the centre. The first three are Gaussian; the fourth is not. This distinction controls which circuits are classically simulable.

Gaussian operations — the linear-optical toolkit

A Gaussian operation is a unitary \hat{U} that maps Gaussian states to Gaussian states. Equivalently, \hat{U} maps the quadrature operators (\hat{x}, \hat{p}) to linear combinations of themselves, plus a displacement. In phase-space language, Gaussian operations are exactly the affine symplectic transformations of the quadrature plane.

There are three elementary Gaussian operations, and every CV Gaussian circuit is built from them.

Displacement

\hat{D}(\alpha) \;=\; e^{\alpha \hat{a}^\dagger - \alpha^* \hat{a}}, \qquad \hat{D}(\alpha)^\dagger \hat{a} \hat{D}(\alpha) = \hat{a} + \alpha.

Shifts the quadrature by a complex number \alpha — slides \psi(x) rightward by \alpha_x \sqrt{2} and multiplies it by a phase e^{i \alpha_p x \sqrt{2}}. Physically, \hat{D}(\alpha) applied to the vacuum produces a coherent state: \hat{D}(\alpha) |0\rangle = |\alpha\rangle. In the lab, displacement is implemented by mixing the mode with a strong coherent-state reference at a highly-asymmetric beam splitter.

Squeezing

\hat{S}(r) \;=\; e^{r (\hat{a}^2 - \hat{a}^{\dagger 2})/2}, \qquad \hat{S}(r)^\dagger \hat{x} \hat{S}(r) = e^{-r} \hat{x}, \quad \hat{S}(r)^\dagger \hat{p} \hat{S}(r) = e^r \hat{p}.

Stretches the quadrature plane — compresses \hat{x} by e^{-r} while stretching \hat{p} by e^r (or vice versa for negative r). In the lab, squeezing is generated by parametric amplification: pump a non-linear crystal (like \chi^{(2)} PPKTP) with an intense laser beam at frequency 2\omega, and the crystal non-linearity couples the vacuum mode at frequency \omega to a two-photon process that produces squeezed light.

The current-record single-mode squeezing is about -15 dB below vacuum noise, achieved by the Schnabel group in Hannover around 2016. "Decibels below vacuum" means e^{-2r} = 10^{-15/10}, so r \approx 1.7.

Beam splitter (two-mode Gaussian)

\hat{B}(\theta) \;=\; e^{\theta (\hat{a}^\dagger \hat{b} - \hat{a} \hat{b}^\dagger)}, \qquad \begin{pmatrix} \hat{a}' \\ \hat{b}' \end{pmatrix} = \begin{pmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{pmatrix} \begin{pmatrix} \hat{a} \\ \hat{b} \end{pmatrix}.

Mixes two modes — a 50/50 beam splitter (\theta = \pi/4) sends input modes \hat{a}, \hat{b} to (\hat{a} + \hat{b})/\sqrt{2}, (-\hat{a} + \hat{b})/\sqrt{2}. Together with phase shifters, beam splitters generate any two-mode Gaussian unitary. A network of beam splitters and phase shifters realises any multi-mode passive linear-optical transformation.

Together: all Gaussian unitaries

Theorem (Bloch–Messiah / Euler decomposition). Any multi-mode Gaussian unitary can be written as a product of

This is an extraordinary structural result. It means that the entire Gaussian toolkit is linear optics + single-mode squeezing + displacements — all building blocks experimentally available in any optics lab. The expressive power of Gaussian CV is exactly the power of these three ingredients combined.

Homodyne detection — the Gaussian measurement

A CV circuit must end with a measurement. The standard CV measurement is homodyne detection: interfere the mode of interest with a strong coherent-state local oscillator at a balanced beam splitter, photodetect both output ports, and subtract the counts. The output is a classical real number x \in (-\infty, \infty) with probability density |\psi(x)|^2 — a direct measurement of \hat{x} (or, by choosing the local oscillator phase, any linear combination \cos\phi \, \hat{x} + \sin\phi \, \hat{p}).

Homodyne is fast, efficient, and Gaussian: if the pre-measurement state is Gaussian, the measurement outcome is drawn from a Gaussian distribution. Crucially, the outcome is continuous — no discretisation into 0 and 1 as in qubit measurement.

The Gaussian trap — why Gaussian alone is not enough

You have a full Gaussian toolkit. Squeezing, beam splitters, displacements, homodyne. You can entangle, you can process, you can measure. Is this enough for a universal quantum computer?

No. This is the central theorem of CV quantum computing.

Bartlett–Sanders–Braunstein–Nemoto theorem (2002). Any quantum circuit consisting of Gaussian state preparation + Gaussian unitary operations + homodyne measurement can be classically simulated in polynomial time.

The proof is computationally explicit. Gaussian states are described by a finite vector of means and a finite covariance matrix — 2n means and (2n)(2n+1)/2 covariance entries for n modes. Gaussian unitaries are symplectic matrices acting on this data — polynomial-size objects evolved in polynomial time. Homodyne measurements are Gaussian integrals, computable in closed form.

The classical simulation is not merely "there exists an algorithm" — it is a concrete, constructive procedure that tracks the Gaussian state's mean and covariance throughout the circuit. A laptop running Xanadu's Strawberry Fields simulator can simulate millions of Gaussian modes exactly.

The conclusion for CV quantum computing: Gaussian is to CV what Clifford is to qubits. The analogy is deep:

And the remedy is analogous. For Clifford qubits, you inject a non-Clifford magic state (the T state) to reach universality. For Gaussian CV, you inject a non-Gaussian resource — either a non-Gaussian unitary (the cubic phase gate) or a non-Gaussian state (a Fock state, a cat state, a GKP state).

The non-Gaussian ingredient

Three standard ways to escape the Gaussian trap.

The cubic phase gate

The first fully general prescription is to augment the Gaussian set with the cubic phase gate:

\hat{V}(\gamma) \;=\; e^{i\gamma \hat{x}^3}.

This unitary is generated by a Hamiltonian cubic in \hat{x} — the first non-quadratic case after the Gaussians. Gaussian + cubic-phase is provably universal: Lloyd and Braunstein (1999) proved that any polynomial-in-quadrature Hamiltonian can be approximately implemented by alternating Gaussian unitaries with cubic-phase unitaries, up to arbitrary precision.

The catch: e^{i\gamma \hat{x}^3} is not realisable by any linear optical process. It requires a third-order optical non-linearity (\chi^{(3)}) strong enough at the single-photon level, which in conventional materials is many orders of magnitude too weak. Alternative implementations use measurement-induced non-linearities — consume a non-Gaussian resource state in a measurement-based protocol to enact an effective cubic phase gate. This is the route Xanadu and most experimental groups take.

Photon-number-resolving measurement

Instead of homodyne (continuous outcome, Gaussian-friendly), measure using a photon-number-resolving (PNR) detector — count how many photons arrive in a mode. The outcome is a discrete integer, and the conditional state on the other modes of an entangled CV state given a specific photon count is generically non-Gaussian.

PNR detection with high efficiency is hard but now routinely available: superconducting nanowire arrays (SNSPDs), transition-edge sensors (TES) at ~100 mK, and photon-number-resolving threshold detectors. A single PNR outcome in a Gaussian circuit breaks Gaussianity and, with the right architecture, delivers universality.

Non-Gaussian input states

Prepare a Fock state, a cat state (|\alpha\rangle + |-\alpha\rangle)/\mathcal{N}, or a GKP state, then run Gaussian operations on the Fock-plus-Gaussian input. Again, the non-Gaussianity of the input is injected into the circuit and lifts it out of the simulable regime.

This is the route for many hybrid and measurement-based CV proposals. Preparing high-quality non-Gaussian states is itself challenging — single photons have been generated at high efficiency but cat states at amplitude \alpha > 2 and GKP states with multiple clean peaks remain the cutting edge of experimental CV.

GKP encoding — a qubit inside a qumode

Now the payoff. With non-Gaussian states available, you can encode a discrete qubit inside a single bosonic mode, with built-in error correction against small displacement errors.

The GKP codewords

In 2001, Daniel Gottesman, Alexei Kitaev, and John Preskill proposed a remarkable code — now universally called the GKP code — for encoding a qubit into an oscillator. The ideal codewords are:

|\bar{0}\rangle \;=\; \sum_{n \in \mathbb{Z}} |x = 2n\sqrt{\pi}\rangle, \qquad |\bar{1}\rangle \;=\; \sum_{n \in \mathbb{Z}} |x = (2n+1)\sqrt{\pi}\rangle.

Read this: |\bar{0}\rangle is a sum of position eigenstates at every even multiple of \sqrt{\pi}; |\bar{1}\rangle is the same, but shifted — at every odd multiple. Equivalently, |\bar{0}\rangle is a Dirac comb of infinitely many delta functions spaced by 2\sqrt{\pi}, and |\bar{1}\rangle is the same comb shifted by \sqrt{\pi}.

Both are unnormalisable (infinite in extent) and unphysical in their ideal form, but approximate GKP states use finite-width Gaussian peaks with a Gaussian envelope — normalisable and realisable in the lab.

Logical gates from Gaussian operations

Here is the beautiful part. The logical Pauli operators on the GKP qubit are:

These are Gaussian operations on the mode. The logical Clifford group on GKP qubits is implemented entirely by Gaussian operations (displacements, squeezing, beam splitters). Only the logical T gate and related non-Clifford pieces require genuine non-Gaussian operations.

The error-correction payoff

Suppose a small displacement error — a noise process that shifts the mode by (\Delta x, \Delta p) with |\Delta x|, |\Delta p| < \sqrt{\pi}/2. The GKP codewords are periodic with period 2\sqrt{\pi} in x and in p separately. A homodyne measurement of \hat{x} modulo \sqrt{\pi} tells you \Delta x \bmod \sqrt{\pi} (which, if small, equals \Delta x). Applying \hat{D}(-\Delta x) corrects it. The same trick handles \Delta p errors via homodyne of \hat{p}.

So small displacement errors — the dominant noise mode in photonic and microwave cavities — are directly correctable by measurement and feedback, using only Gaussian operations. The GKP code turns a continuous noise model into a discrete logical qubit with protection.

Experimental status

GKP state preparation has progressed rapidly.

Photonic GKP has been harder: photonic modes do not have a built-in qubit (like a transmon) to mediate the non-Gaussian state preparation. Xanadu and several academic groups have published schemes using photon-number-resolved measurement on one arm of an entangled two-mode squeezed state as a preparation method, but the resulting GKP states have been restricted to few-peak (low-n) approximations so far.

Xanadu and the photonic CV programme

Xanadu Quantum Technologies, based in Toronto, is the company most closely identified with CV quantum computing. Their architecture:

Borealis — 2022

Borealis was Xanadu's first cloud-accessible CV machine. It ran Gaussian Boson Sampling (GBS) — a sampling task (not a general computation) that involves Gaussian squeezing, a programmable linear network, and PNR detection. In the 2022 Nature paper, Borealis was demonstrated with 216 squeezed modes and argued to sample from a distribution that would take a classical supercomputer more than 9,000 years to reproduce. This is a supremacy-type claim, not a general-purpose computation.

GBS is instructive: it is not universal — the output is just a sample from a specific distribution — but it uses exactly the ingredients you need for general CV QC (squeezing + Gaussian network + non-Gaussian measurement). Borealis is a proof that the ingredients work at scale.

The roadmap

Xanadu's announced roadmap (as of 2025) targets:

The target is ambitious. No group has yet demonstrated fault-tolerant CV computation; GKP qubits are single-mode and have their own error syndromes; multi-mode protocols require extensive time-multiplexed concatenation. But the ingredients are there, and the community regards CV as one of the two or three credible roads to fault tolerance alongside surface-code qubit approaches and topological approaches.

Two worked examples

Example 1: Squeezed vacuum — the Gaussian workhorse

Work through the squeezing operation explicitly, and see where "below vacuum noise" comes from.

Step 1. Start with the vacuum |0\rangle. Its quadrature variances are

\langle 0 | \hat{x}^2 | 0 \rangle \;=\; \langle 0 | \frac{(\hat{a} + \hat{a}^\dagger)^2}{2} | 0 \rangle \;=\; \frac{1}{2} \langle 0 | \hat{a} \hat{a}^\dagger | 0 \rangle \;=\; \frac{1}{2},

and similarly \langle \hat{p}^2 \rangle = 1/2. The uncertainty product is \Delta x \cdot \Delta p = 1/2, saturating Heisenberg.

Why only the \hat{a} \hat{a}^\dagger term survives: expanding (\hat{a} + \hat{a}^\dagger)^2 = \hat{a}^2 + \hat{a}\hat{a}^\dagger + \hat{a}^\dagger \hat{a} + \hat{a}^{\dagger 2}. The vacuum is annihilated by \hat{a} on the right, so \langle 0 | \hat{a}^2 | 0 \rangle = 0 and \langle 0 | \hat{a}^\dagger \hat{a} | 0 \rangle = 0; and \langle 0 | \hat{a}^{\dagger 2} | 0 \rangle = 0 because \hat{a}^\dagger raises to |2\rangle, orthogonal to \langle 0|. That leaves \langle 0 | \hat{a} \hat{a}^\dagger | 0 \rangle = \langle 0 | (1 + \hat{a}^\dagger \hat{a}) | 0 \rangle = 1.

Step 2. Apply the squeezing operator \hat{S}(r) with r > 0. By the transformation rule \hat{S}^\dagger \hat{x} \hat{S} = e^{-r} \hat{x}:

\langle 0 | \hat{S}^\dagger \hat{x}^2 \hat{S} | 0 \rangle \;=\; \langle 0 | e^{-2r} \hat{x}^2 | 0 \rangle \;=\; \frac{e^{-2r}}{2}.

Similarly \langle \hat{p}^2 \rangle for the squeezed vacuum equals e^{2r}/2.

Why the variance transforms this way: \hat{S}^\dagger \hat{x} \hat{S} = e^{-r} \hat{x} is a statement about the operator in the Heisenberg picture. Squaring, \hat{S}^\dagger \hat{x}^2 \hat{S} = e^{-2r} \hat{x}^2. Taking the expectation in the vacuum gives e^{-2r} \times 1/2 as claimed.

Step 3. Compute the "dB below vacuum." Quantum-optics convention: variance expressed in decibels relative to vacuum. 10 \log_{10}(e^{-2r}) = -20 r / \ln 10 \approx -8.686 r dB.

At r = 1.7 (the Schnabel group record): -8.686 \times 1.7 \approx -14.8 dB, matching the claimed -15 dB. The squeezed-quadrature variance is 10^{-1.48} \approx 0.033 times the vacuum variance — about 30× reduction.

Step 4. Check uncertainty conservation. Product of squeezed-quadrature variances: (e^{-2r}/2)(e^{2r}/2) = 1/4, so \Delta x \cdot \Delta p = 1/2 still — Heisenberg still saturated. The squeezing reshuffles the uncertainty; it does not reduce it in total.

Result. Squeezing reduces the variance along one quadrature by e^{-2r} while amplifying the orthogonal one by e^{2r}, conserving the uncertainty product. This is the primary resource for below-vacuum-noise measurement precision — used by gravitational-wave detectors (LIGO, Virgo, KAGRA; squeezed light in their readout since 2019) and by CV quantum computing as the Gaussian input of choice.

Squeezing vacuum — variance below the vacuum levelLeft: phase-space ellipse comparison between vacuum (circle) and squeezed vacuum (ellipse squished along x). Right: a variance bar chart showing vacuum level at 0 dB and squeezed level at minus 15 dB, with a dashed threshold line marking vacuum.Vacuum vs squeezed vacuumxpvacuumsqueezedx-quadrature variance (dB)0 dB (vacuum)vacuumr = 1.7−14.8 dB
Squeezing reshapes the vacuum's phase-space uncertainty from a circle (equal variance in $\hat{x}$ and $\hat{p}$) into an ellipse — narrower in one quadrature, wider in the orthogonal one, same area. The variance of the squeezed quadrature, plotted on the right in decibels below the vacuum level, reaches roughly $-15$ dB at squeezing parameter $r \approx 1.7$ — the current experimental record. Below-vacuum-noise measurement is the reason LIGO's gravitational-wave strain sensitivity was upgraded in 2019 by injecting squeezed light into the interferometer readout.

Example 2: GKP state encoding a qubit in one oscillator

Work through the idealised GKP codewords and see where the \sqrt{\pi} spacing comes from.

Step 1. Write the codewords explicitly:

|\bar{0}\rangle \;=\; \sum_{n \in \mathbb{Z}} |x = 2n\sqrt{\pi}\rangle, \qquad |\bar{1}\rangle \;=\; \sum_{n \in \mathbb{Z}} |x = (2n+1)\sqrt{\pi}\rangle.

Combs of position eigenstates, one at every even multiple of \sqrt{\pi} for |\bar{0}\rangle, one at every odd for |\bar{1}\rangle.

Step 2. Verify that \bar{X} = e^{-i\sqrt{\pi} \hat{p}} flips them. The operator e^{-ia\hat{p}} is the translation operator by a in position space: e^{-ia\hat{p}} |x\rangle = |x + a\rangle (standard result from class-12 quantum mechanics). So

\bar{X} |\bar{0}\rangle = \sum_n |x = 2n\sqrt{\pi} + \sqrt{\pi}\rangle = \sum_n |x = (2n+1)\sqrt{\pi}\rangle = |\bar{1}\rangle.

Why the translation operator is e^{-ia\hat{p}}: from the canonical commutation relation, \hat{p} is the generator of translations in \hat{x}, exactly as in classical Hamiltonian mechanics. Taking the exponential of -ia\hat{p} produces a finite translation by a along \hat{x}.

By the same argument, \bar{X} |\bar{1}\rangle = |\bar{0}\rangle. So \bar{X} is the logical Pauli X.

Step 3. Verify that \bar{Z} = e^{i\sqrt{\pi} \hat{x}} gives opposite signs. On a position eigenstate |x\rangle, e^{i\sqrt{\pi} \hat{x}} |x\rangle = e^{i\sqrt{\pi} x} |x\rangle. For |\bar{0}\rangle:

\bar{Z} |\bar{0}\rangle = \sum_n e^{i\sqrt{\pi} \cdot 2n\sqrt{\pi}} |x = 2n\sqrt{\pi}\rangle = \sum_n e^{2\pi i n} |\ldots\rangle = \sum_n |\ldots\rangle = |\bar{0}\rangle.

For |\bar{1}\rangle:

\bar{Z} |\bar{1}\rangle = \sum_n e^{i\sqrt{\pi} \cdot (2n+1)\sqrt{\pi}} |\ldots\rangle = \sum_n e^{i\pi (2n+1)} |\ldots\rangle = \sum_n (-1) |\ldots\rangle = -|\bar{1}\rangle.

So \bar{Z} acts as +1 on |\bar{0}\rangle and -1 on |\bar{1}\rangle — exactly Pauli Z.

Step 4. Note that both \bar{X} and \bar{Z} are displacements in phase space — Gaussian operations. The logical Clifford group of the GKP code is realised entirely by Gaussian unitaries on the underlying mode. Only the logical non-Clifford gates (logical T, magic-state injection) require non-Gaussian resources.

Result. The GKP code encodes a qubit in a comb of evenly-spaced peaks on the real line, with spacing \sqrt{\pi} between neighbouring logical basis components and 2\sqrt{\pi} within one basis state. A displacement by \sqrt{\pi} flips the logical bit; a momentum-displacement introduces logical Z; both are Gaussian. What this shows: the GKP construction is the bridge between CV and qubit QC — it exhibits an entire qubit, with its full Pauli structure, inside a single oscillator, and it does so in a way that turns small mode-displacement errors into correctable logical errors.

Ideal GKP codewords in position representationTwo parallel x-axes stacked vertically. Top axis shows tall accent spikes at x equals zero, plus and minus two root pi, plus and minus four root pi labelled bar zero. Bottom axis shows spikes at plus and minus root pi, plus and minus three root pi labelled bar one. A double arrow between spikes of length root pi shows the shift that is the logical X operation.Ideal GKP codewords: combs of delta functions at multiples of √πx|0̄⟩0−2√π2√πx|1̄⟩−√π√πX̄ = shift by √π
The two ideal GKP codewords, one drawn per axis. $|\bar{0}\rangle$ is a Dirac comb at even multiples of $\sqrt{\pi}$, $|\bar{1}\rangle$ at odd multiples. Each codeword is periodic with period $2\sqrt{\pi}$; the two codewords differ by a shift of $\sqrt{\pi}$. The logical $\bar{X}$ operator is exactly this shift — realised physically as a displacement on the underlying mode, a Gaussian operation. Approximate GKP states, used in experiments, replace each delta function with a narrow Gaussian and multiply the entire comb by a Gaussian envelope.

Common confusions

Going deeper

If you understand that CV QC encodes information in bosonic modes whose quadratures \hat{x}, \hat{p} have continuous spectrum, that Gaussian operations (squeezing, beam splitters, displacements) form a symplectic group of classically simulable transformations on Gaussian states, that universality requires a non-Gaussian resource (cubic phase gate, photon-number-resolving detection, or non-Gaussian input state), that the GKP code encodes a qubit in a single oscillator as a comb of delta functions with logical Pauli operators realised as Gaussian displacements, and that Xanadu's Borealis (2022) demonstrated 216-mode Gaussian Boson Sampling on squeezed light toward a GKP-fault-tolerance roadmap — you have chapter 187. What follows states the symplectic formalism precisely, the cubic-phase universality theorem, and how GKP codes compose with outer codes.

The symplectic formalism

An n-mode Gaussian state is fully characterised by a displacement vector \mu \in \mathbb{R}^{2n} and a covariance matrix \sigma \in \mathbb{R}^{2n \times 2n}, where the phase-space coordinates are \mathbf{r} = (x_1, p_1, x_2, p_2, \ldots, x_n, p_n):

\mu_i = \langle \hat{r}_i \rangle, \qquad \sigma_{ij} = \frac{1}{2}\langle \{\hat{r}_i - \mu_i, \hat{r}_j - \mu_j\} \rangle.

A Gaussian unitary acts on (\mu, \sigma) by \mu \to S\mu + d, \sigma \to S \sigma S^T, where S \in Sp(2n, \mathbb{R}) is a symplectic matrix (S \Omega S^T = \Omega with \Omega the standard symplectic form) and d \in \mathbb{R}^{2n} is a displacement. Homodyne measurements give Gaussian integrals with known formulas. Everything is classical algebra of size O(n^2).

The Lloyd–Braunstein universality theorem

Let \mathcal{G} denote the set of Gaussian unitaries plus the cubic phase gate e^{i\gamma \hat{x}^3}. Lloyd and Braunstein (1999) proved:

Theorem. Any polynomial P(\hat{x}_1, \hat{p}_1, \ldots, \hat{x}_n, \hat{p}_n)-Hamiltonian unitary e^{iP} can be approximated to any precision \epsilon by a product of unitaries from \mathcal{G}, with total length polynomial in the polynomial degree and 1/\epsilon.

The proof uses a Trotter-like decomposition: combine e^{iA} and e^{iB} using the approximation e^{i(A+B)\delta} \approx e^{iA\delta} e^{iB\delta}, and recursively generate higher-order polynomials via nested commutators of Gaussian + cubic terms. The algebra of polynomials on \hat{x}, \hat{p} is generated by the quadratic and cubic terms via commutators, and any polynomial-Hamiltonian unitary is reachable from these.

GKP codes combined with outer codes

GKP alone protects against small mode-displacement errors but not against large-displacement errors or against mode loss (photon loss). A full fault-tolerant architecture concatenates GKP with an outer qubit code — typically a surface code over many GKP-encoded modes:

  1. Each physical mode is encoded as a GKP qubit, protected against small displacement errors by stabilizer measurements.
  2. A lattice of GKP qubits is arranged in the 2D surface-code geometry.
  3. Surface-code syndrome extraction runs over GKP qubits; the inner GKP layer suppresses small errors, the outer surface code handles the rare logical failures of the inner code.

This concatenation was proved to yield a threshold at around 10 dB of GKP squeezing (Fukui–Tomita–Noiri, 2018; Vuillot et al., 2019). Current experimental GKP states are approaching this threshold in microwave-cavity platforms.

The link to boson sampling and classical hardness

Gaussian Boson Sampling — the task Borealis ran — samples from the output distribution of a Gaussian input passed through a random linear network and measured with PNR detectors. The output distribution is governed by hafnians of sub-matrices of the scattering matrix, a permanent-like quantity that is #P-hard to compute classically (Aaronson–Arkhipov for boson sampling; Hamilton et al. for Gaussian variant). This is why 216 squeezed modes suffice for a supremacy-style argument.

GBS is not universal CV QC, but it shows that the ingredients (squeezing + linear optics + PNR) are individually sufficient for hard sampling problems — and that these ingredients can be scaled on integrated photonics.

How CV compares with qubit approaches

Qubit-based CV-based
Information carrier 2-level system bosonic mode (harmonic oscillator)
State space \mathbb{C}^2 per qubit L^2(\mathbb{R}) per mode
Clifford analogue Clifford gates Gaussian gates
Simulable core Clifford + stabilizer + comp-basis meas Gaussian + Gaussian states + homodyne
Non-Clifford / non-Gaussian T gate + magic states cubic phase / PNR / GKP
Error-corrected logical qubit ~1000 physical qubits (surface code) 1 mode (GKP), concatenated for FT
Experimental lead superconducting (IBM, Google) photonic (Xanadu, Jiuzhang)
Temperature 10 mK (superconducting) room temp (photonic)
Scaling millions of physical qubits millions of modes (time-multiplexed)

Neither approach is obviously dominant. CV's one-mode-per-logical-qubit potential is enormously attractive, but the non-Gaussian resource cost and the photonic loss channel keep it on the same order of magnitude as qubit surface codes in realistic estimates.

Where this leads next

References

  1. Samuel L. Braunstein, Peter van Loock, Quantum information with continuous variables (2005), Rev. Mod. Phys. 77, 513 — arXiv:quant-ph/0410100.
  2. Daniel Gottesman, Alexei Kitaev, John Preskill, Encoding a qubit in an oscillator (2001), Phys. Rev. A 64, 012310 — arXiv:quant-ph/0008040.
  3. Seth Lloyd, Samuel L. Braunstein, Quantum computation over continuous variables (1999), Phys. Rev. Lett. 82, 1784 — arXiv:quant-ph/9810082.
  4. Stephen D. Bartlett, Barry C. Sanders, Samuel L. Braunstein, Kae Nemoto, Efficient classical simulation of continuous variable quantum information processes (2002), Phys. Rev. Lett. 88, 097904 — arXiv:quant-ph/0109047.
  5. Lars S. Madsen et al. (Xanadu), Quantum computational advantage with a programmable photonic processor (2022), Nature 606 — Nature 606, 75–81.
  6. Wikipedia, Continuous-variable quantum information.