Bosonic and Encoded Computation Models
An oscillator has infinitely many number states, but a bosonic quantum computer can use a small subspace to represent a finite logical register. A physical pulse becomes a logical gate only after specifying that encoding and following the complete physical evolution. Amplitude may leave the code and return later; a measurement may reject an input; recovery may depend on a recorded outcome.
This page shows how to calculate the logical result, using an exact dual-rail rotation and a single-mode displacement. Bosonic codes explains error-correcting encodings and recovery; continuous-variable computation treats computation directly with quadratures.
Helpful background. Bosonic codes introduces code subspaces and recovery. The circuit model explains channels, measurement branches and classical control.
Encoding a finite register in oscillator modes
Section titled “Encoding a finite register in oscillator modes”For modes with , write the total occupation as . An encoding isometry
maps logical basis states to orthonormal physical code states. Define
For example, single-rail encoding uses and in one mode. Dual-rail encoding uses and in two modes. Neither choice alone proves error correction: that requires a noise model and a recovery that preserves unknown logical information, including correlations with a reference.
Here has normalizable columns. Ideal infinitely squeezed GKP states are distributions rather than Hilbert-space vectors, so this isometry cannot be applied to them literally. Finite-energy approximations require actual normalized, orthogonal code states or an explicitly specified physical encoding map. Two approximate wavefunctions need not be exactly orthogonal just because their ideal limits are.
A mean-energy constraint differs from a hard number cutoff. It also does not ensure that every higher moment or product of unbounded operators exists. A self-adjoint Hamiltonian generates a unitary defined on the entire Hilbert space; differentiating its action or using products of generators requires the relevant domains. The finite-particle span is useful for polynomial identities, but a displacement or squeezing unitary need not preserve that span.
From physical evolution to a logical operation
Section titled “From physical evolution to a logical operation”For a physical unitary , separate its code and leakage blocks:
Inserting into gives
Thus is the leakage probability for a normalized logical input, and its maximum is . The code block need not be unitary. An exact logical gate , up to common phase, instead satisfies
on the whole logical space. This simultaneously requires the correct action and zero final leakage.
Composition is especially important. For two pulses,
The last term is amplitude that leaves the code after the first pulse and returns during the second. Multiplying the compressed blocks omits it. In the figure, encode , and let swap with . The full program returns every input, whereas an intervening measurement that rejects destroys the logical-one branch.
The shaded levels form the code. Intermediate leakage can return coherently. Projecting and rejecting the middle state changes this physical program.
For a complete physical channel , a useful mathematical comparison is the flagged decoder
The first term occupies the logical output block and is an orthogonal flag. This is a trace-preserving channel: it discards coherence between the code and its complement but retains the probability outside the code. It can define a comparison even when no decoder is built. To claim that an experiment actually returns this flag, one must implement a corresponding measurement or decoding operation. The mathematical definition supplies no detector automatically.
An exact dual-rail beam-splitter gate
Section titled “An exact dual-rail beam-splitter gate”Use the ordered basis and
The generator commutes with . Within the invariant one-excitation sector,
It therefore equals logical , and
At the logical rotation is
No Fock cutoff or postselection is used. A rail-number measurement on this output gives equal probabilities, but that one test would not establish the gate’s relative phases. The matrix calculation applies to every logical input. If readout is performed, its disturbance is an additional operation after the gate.
The ideal invocation uses two modes, one excitation and one beam-splitter interaction. Preparation and final measurement have separate costs. Phase shifts and beam splitters provide single-qubit control in dual rail; they do not by themselves provide a deterministic universal multiqubit computer. The Knill–Laflamme–Milburn construction adds prepared ancillas, photon counting and feedforward to linear optics.
A displacement followed by code selection
Section titled “A displacement followed by code selection”Return to single rail and define the Weyl displacement
For real , normal ordering or the coherent-state expansion gives
Using then gives the entire single-rail code block:
This matrix is generally nonunitary even though is unitary on the oscillator. Take , prepare vacuum, and explicitly measure after the displacement. Accepting gives
The normalized accepted state is . Its squared fidelity with is . Including rejection, the target overlap is instead
Here leakage and rejection both equal because the measurement rejects exactly the complement of the code. Repeating this known-state preparation needs another vacuum each time; the expected attempts are . An unknown input cannot generally be recreated after rejection.
Recovery and outcome-dependent frames
Section titled “Recovery and outcome-dependent frames”Let describe outcome of a physical instrument and a subsequent recovery. Each recovery is trace preserving when all its outcomes are included. For the mathematical code-decoded block, define
If is the logical correction associated with that outcome, the corrected code-output map for records in is
Its trace counts both the selected records and final code survival. It is the observed acceptance probability only if the protocol actually tests that survival, or guarantees it. Records outside and any remaining leakage must be included for an unconditional output.
A tracked frame retains and a rule for using in later commands or final decoding; it does not physically apply . Forgetting first generally gives a different channel. For example, equally likely raw branches and dephase a qubit when the outcome is forgotten, but a known byproduct can be corrected.
Normalization by a positive success probability generally makes an input-dependent accepted map nonlinear. There is a useful exception: always prepares on success, so its normalized output is constant wherever defined. The success probability still depends on the input and remains necessary. At zero success probability the conditional state is undefined.
For more detail, see quantum instruments and decoders. Grimsmo, Combes and Baragiola give code-specific examples of teleportation-based recovery and software tracking; a frame rule must come from the actual protocol.
Code preservation, correction and computational power
Section titled “Code preservation, correction and computational power”Preservation by one control is weaker than protection against noise. For example, equal pure loss in the two rails gives a no-loss block . Conditioned on detecting one surviving excitation, the logical state is unchanged. Loss sends either logical basis state to the same vacuum, so the lost unknown qubit cannot be recovered from these two modes alone. The signal is a detectable erasure, useful when combined with additional coding.
Different loss probabilities distort even the accepted state: the no-loss block becomes . Exercise 3 calculates that distortion. Comparisons of bosonic encodings therefore need the complete noise-and-recovery channel, as in Albert and collaborators’ analysis, rather than code-state resemblance alone.
One exact encoded gate also does not prove universality. Arbitrary rotations together with controlled- remain diagonal. Adding a Hadamard gives arbitrary single-qubit rotations and an entangling gate; how to implement that Hadamard while controlling errors is a separate physical question. See universal gate sets and fault-tolerant gates.
Energy, truncation and repeated attempts
Section titled “Energy, truncation and repeated attempts”For a cutoff keeping total occupation below , Markov’s inequality gives
If the retained weight is nonzero, the normalized projection is at trace distance at most from the original state. The same channel and measurement cannot increase that distance. This does not compare evolution under a truncated Hamiltonian with the full propagator, nor control an unbounded observable. Those comparisons require additional dynamical or moment estimates; continuous-variable computation explains the distinction.
For an independent known-state preparation with success probability , repeating whole attempts gives mean count . Multiply per-attempt consumed operations by that number; do not multiply the number of reusable modes. Early stopping after a failure changes the average consumed work and must be modeled separately. Energy, latency, pulse count and mode count measure different costs.
Exercises
Section titled “Exercises”Build an Encoding Isometry and Flagged Decoder
Section titled “Build an Encoding Isometry and Flagged Decoder”Set and . Construct the code projector and flagged decoder. Apply the decoder to , where .
Solution
The isometry gives
Define
The code component decodes to , whereas lies in the flag subspace. Therefore
Code acceptance is and flag probability is . Discarding the flag would falsely turn a trace-preserving decoded channel into an apparently deterministic logical output.
Expose the Projection–Composition Trap
Section titled “Expose the Projection–Composition Trap”Use the encoding and . Let fix and swap , with for every . Compare the square of the projected one-step block with the projection of the complete two-step program.
Solution
In the ordered logical basis,
so
But , hence
The missing contribution is
The logical-one state leaks fully after the first step and returns after the second. Projected step maps therefore cannot replace the composed physical program.
Calculate asymmetric dual-rail loss
Section titled “Calculate asymmetric dual-rail loss”Send through independent pure-loss channels with and . Decode the total-one sector as accepted and vacuum as an orthogonal flag. Find the accepted probability, conditional rail populations, conditional target fidelity, and unconditioned embedded target overlap.
Solution
The unnormalized accepted vector is
Therefore
After normalization, the two rail populations are and . The target fidelity is
The unconditioned embedded overlap is
The accepted probability changes with the logical rail populations when . The normalized accepted state alone is therefore not a deterministic logical channel.
Test Code Preservation under a Number Rotation
Section titled “Test Code Preservation under a Number Rotation”Encode and . For at , find the induced logical action, leakage, output from , and input mean photon number.
Solution
Since and ,
Thus , leakage is zero, and the encoded has mean photon number
This is one exact native logical ; it does not establish a universal gate set.
Normalize an Input-Dependent Accepted Map
Section titled “Normalize an Input-Dependent Accepted Map”Let an accepted and rejected logical instrument have Kraus operators
Verify completeness. For , find the accepted probability and normalized state, then test whether normalizing endpoint inputs and averaging gives the same result.
Solution
Direct multiplication gives
For ,
so
The normalized endpoint outputs are and . Their equal average is , not the matrix above. Input-dependent normalization is nonlinear, so the subnormalized accepted map and rejected branch must be retained.
Bound a Coherent-State Fock Cutoff
Section titled “Bound a Coherent-State Fock Cutoff”For , consider a dimension- truncation retaining . Compute the exact omitted probability and compare it with the mean-energy bound.
Solution
The coherent-state number distribution is Poisson with mean . Its exact tail is
The mean-energy estimate is much looser:
Both numbers bound the input-state tail. To convert a tail to a state-distance bound, take its square root. This still does not compare two different propagators or establish a logical-gate error bound.
Complete a gate set and count repeated attempts
Section titled “Complete a gate set and count repeated attempts”Why are and controlled- insufficient for universality, and what changes if Hadamard is available? Then consider a known-state preparation with three recoveries, each accepting independently with probability . Every attempt consumes six native controls, one Hadamard, three recovery measurements and three ancilla preparation/reset operations, even if a failure occurs. Two storage modes and one reusable ancilla are available. Find the expected consumed resources until success.
Solution
The first two gates remain diagonal under composition. Hadamard converts rotations to rotations, giving arbitrary single-qubit unitaries; controlled- supplies an entangling gate.
The complete attempt succeeds with , so the mean attempts are . Thus
and the expected number of recoveries, measurements and ancilla preparation/reset operations is each. There are fresh logical-input preparations on average. The simultaneous footprint remains three modes.
If each of the three layers has two control slots and one bundled recovery slot, plus one Hadamard slot overall, the ideal depth per attempt is ten and expected total depth is . This count assumes each recovery slot includes its ancilla preparation/reset and measurement. Separate preparation, reset or readout latency adds time. Stopping early after a failure would produce different consumed counts.
Predict a single-rail phase measurement
Section titled “Predict a single-rail phase measurement”Encode , . Prepare , apply and measure logical . Find the output and outcome. Extend the measurement to be complete for arbitrary oscillator inputs.
Solution
On the code, . Therefore
The outcome is with unit probability, with no leakage. The mean photon number is . This example uses one phase operation and one terminal measurement; it establishes neither error correction nor universality.
Writing , the two projectors sum to , not the full identity. A complete oscillator measurement has Lüders Kraus operators , and , with a third outcome for states outside the code. That third outcome has zero probability for the present input and gate.
References
Section titled “References”- V. V. Albert, K. Noh, K. Duivenvoorden, D. J. Young, R. T. Brierley, P. Reinhold, C. Vuillot, L. Li, C. Shen, S. M. Girvin, B. M. Terhal, and L. Jiang, “Performance and structure of single-mode bosonic codes,” Physical Review A 97, 032346 (2018), doi:10.1103/PhysRevA.97.032346.
- 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.
- A. L. Grimsmo, J. Combes, and B. Q. Baragiola, “Quantum Computing with Rotation-Symmetric Bosonic Codes,” Physical Review X 10, 011058 (2020), doi:10.1103/PhysRevX.10.011058.
- E. Knill, R. Laflamme, and G. J. Milburn, “A scheme for efficient quantum computation with linear optics,” Nature 409, 46–52 (2001), doi:10.1038/35051009.