[Jump to code hierarchy]

Dual-rail quantum code [1–3]

Description

Two-mode bosonic code encoding a logical qubit in Fock states with one excitation. The logical-zero state is represented by \(|10\rangle\), while the logical-one state is represented by \(|01\rangle\). This encoding is often realized in temporal or spatial modes, corresponding to a time-bin or frequency-bin encoding. Two different types of photon polarization can also be used.

This code is a DFS [4–7] with respect to phase errors [3,8].

Protection

This is an error-detecting code against one photon loss event; it is often used in photonic quantum devices because of its ease of realization. A single loss event can be detected because, after the loss occurs, the output state \(|00\rangle\) is orthogonal to the codespace. Recovery is not possible, so a successful run of a quantum circuit is conditioned on not losing a photon during the circuit.

Photon loss from a dual-rail or polarization encoding maps the qubit outside its two-dimensional codespace into a vacuum state, so it is naturally modeled as an erasure rather than as a qubit amplitude-damping channel [9; Ch. 1].

For Deutsch”s problem specifically, this code protects against errors resulting in states that have the correct photon number, but in the wrong modes [1].

Encoding

Optimal control pulses [10]

Gates

General gates are performed using two-body Hamiltonian rotations [8,11].Bosonic gates include beamsplitters [12] and Kerr nonlinearities. In particular, a cross Kerr rotation at angle \(\pi\) induces a \(CZ\) gate. Universal quantum computing can be achieved using the KLM protocol [13] with only linear optical elements and photon detectors.Photon-number-conserving universal quantum logic can be implemented using continuous-time quantum walks on dual-rail transmon arrays [14].Dynamical-decoupling protocols [8,15,16].A probabilistic CZ gate via a non-linear sign-shift gate, which transforms the Fock states \( \alpha|0\rangle+\beta|1\rangle+\gamma|2\rangle\) into \(\alpha|0\rangle+\beta|1\rangle-\gamma|2\rangle \), followed by measurement [17].Error-detecting \(CCZ\) and \(cSWAP\) gates using three-level ancilla [18].Cavity-assisted bias-preserving CNOT gate [19].

Fault Tolerance

Dual-rail qubits can be used to convert leakage and AD noise into erasure noise [20,21].

Realizations

The dual-rail code is ubiquitous in linear-optical quantum devices and is behind the KLM protocol, one of the first proposals for fault-tolerant computation. See reviews [22–24] for more details.Superconducting circuit devices: Gates have been demonstrated in the Schoelkopf group at Yale University [12]. Error detection has been demonstrated in 3D cavities in the Devoret group at Yale University [10] and Amazon Web Services [25] using transmon qubits, following earlier theoretical proposals [21,26]. GHZ and Bell states as well as universal gates have been implemented on a four-qubit dual-rail code by the Yu group [27]. Logical readout in 3D cavities has been demonstrated by Quantum Circuits Inc. [28]. Cavity-assisted bias-preserving CNOT gate has been demonstrated [19].Photonic platforms: state preparation and measurement fidelity of \(99.98\%\) in the C telecom band by PsiQuantum [29].

Cousins

  • Concatenated bosonic code— The KLM protocol, one of the first protocols for fault-tolerant quantum computation, utilizes concatenations of the dual-rail code with a stabilizer code such as the Steane code [13,30,31]. Concatenating the dual-rail code with an \([[n,k,d]]\) stabilizer code yields an \([[2n,k,d]]\) constant-excitation code [32] that protects against \(d-1\) AD errors [33]. Using the concatenation convention of the Zoo, concatenating the inner dual-rail code with an outer single-mode bosonic code yields several gates that are independent of the outer code [34].
  • \([[7,1,3]]\) Steane code— The KLM protocol, one of the first protocols for fault-tolerant quantum computation, utilizes concatenations of the dual-rail code with a stabilizer code such as the Steane code [13,30,31].
  • Single-mode bosonic code— Using the concatenation convention of the Zoo, concatenating the inner dual-rail code with an outer single-mode bosonic code yields several gates that are independent of the outer code [34].
  • Amplitude-damping (AD) code— Dual-rail qubits can be used to convert leakage and AD noise into erasure noise [20,21]. Concatenating the dual-rail code with an \([[n,k,d]]\) stabilizer code yields an \([[2n,k,d]]\) constant-excitation code [32] that protects against \(d-1\) AD errors [33].
  • Quantum parity code (QPC)— An \([[8,1,2]]\) QPC correcting a single AD error is equivalent to a concatenation of the \(\{|\overline{01}\rangle,|\overline{11}\rangle\}\) (constant-excitation) subcode of the \([[4,2,2]]\) code with the dual-rail code [32,35,36]. More generally, an \([[m^2,1,m]]\) QPC corrects \(m-1\) AD errors [33].
  • \([[4,2,2]]\) Four-qubit code— An \([[8,1,2]]\) QPC correcting a single AD error is equivalent to a concatenation of the \(\{|\overline{01}\rangle,|\overline{11}\rangle\}\) (constant-excitation) subcode of the \([[4,2,2]]\) code with the dual-rail code [32,35,36]. More generally, an \([[m^2,1,m]]\) QPC corrects \(m-1\) AD errors [33].
  • Cluster-state code— The KLM protocol can be combined with cluster states in various ways to yield MBQC protocols [37–39]; see review [24].
  • Quantum repetition code— The dual-rail code is an error space of the quantum repetition code for \(n=2\) and is stabilized by \(-ZZ\).
  • Fusion-based quantum computing (FBQC) code— FBQC resource states are concatenated with dual-rail codes to increase loss detection.
  • XYZ\(^2\) hexagonal stabilizer code— The XYZ\(^2\) hexagonal stabilizer code can be viewed as a concatenation of the \(YZZY\) surface code with one of the possible \([[2,1]]\) repetition codes, with the case of the bit-flip repetition code yielding a concatenation of the surface code with the dual-rail code [40].

References

  1. [1]

    I. L. Chuang and Y. Yamamoto, “Simple quantum computer”, Physical Review A 52, 3489 (1995) arXiv:quant-ph/9505011 DOI

  2. [2]

    I. L. Chuang and Y. Yamamoto, “Quantum Bit Regeneration”, Physical Review Letters 76, 4281 (1996) arXiv:quant-ph/9604031 DOI

  3. [3]

    “Quantum computers and dissipation”, Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences 452, 567 (1996) arXiv:quant-ph/9702001 DOI

  4. [4]

    D. A. Lidar, I. L. Chuang, and K. B. Whaley, “Decoherence-Free Subspaces for Quantum Computation”, Physical Review Letters 81, 2594 (1998) arXiv:quant-ph/9807004 DOI

  5. [5]

    D. Bacon, D. A. Lidar, and K. B. Whaley, “Robustness of decoherence-free subspaces for quantum computation”, Physical Review A 60, 1944 (1999) arXiv:quant-ph/9902041 DOI

  6. [6]

    D. A. Lidar, D. Bacon, J. Kempe, and K. B. Whaley, “Decoherence-free subspaces for multiple-qubit errors. I. Characterization”, Physical Review A 63, (2001) arXiv:quant-ph/9908064 DOI

  7. [7]

    D. A. Lidar, D. Bacon, J. Kempe, and K. B. Whaley, “Decoherence-free subspaces for multiple-qubit errors. II. Universal, fault-tolerant quantum computation”, Physical Review A 63, (2001) arXiv:quant-ph/0007013 DOI

  8. [8]

    M. S. Byrd and D. A. Lidar, “Combined error correction techniques for quantum computing architectures”, Journal of Modern Optics 50, 1285 (2003) arXiv:quant-ph/0210072 DOI

  9. [9]

    D. Gottesman, Surviving as a Quantum Computer in a Classical World (2024) URL

  10. [10]

    A. Koottandavida et al., “Erasure detection of a dual-rail qubit encoded in a double-post superconducting cavity”, (2023) arXiv:2311.04423

  11. [11]

    L.-A. Wu and D. A. Lidar, “Power of anisotropic exchange interactions: Universality and efficient codes for quantum computing”, Physical Review A 65, (2002) arXiv:quant-ph/0103039 DOI

  12. [12]

    Y. Lu, A. Maiti, J. W. O. Garmon, S. Ganjam, Y. Zhang, J. Claes, L. Frunzio, S. M. Girvin, and R. J. Schoelkopf, “High-fidelity parametric beamsplitting with a parity-protected converter”, Nature Communications 14, (2023) DOI

  13. [13]

    E. Knill, R. Laflamme, and G. J. Milburn, “A scheme for efficient quantum computation with linear optics”, Nature 409, 46 (2001) DOI

  14. [14]

    H.-Y. Guan, Y. Li, and X.-H. Deng, “Photon-number conserved universal quantum logic employing continuous-time quantum walk on dual-rail qubit arrays”, npj Quantum Information 12, (2026) DOI

  15. [15]

    M. S. Byrd and D. A. Lidar, “Comprehensive Encoding and Decoupling Solution to Problems of Decoherence and Design in Solid-State Quantum Computing”, Physical Review Letters 89, (2002) arXiv:quant-ph/0112054 DOI

  16. [16]

    D. Geberth, O. Kern, G. Alber, and I. Jex, “Stabilization of quantum information by combined dynamical decoupling and detected-jump error correction”, The European Physical Journal D 46, 381 (2007) arXiv:0712.1480 DOI

  17. [17]

    E. Knill, “Bounds on the probability of success of postselected nonlinear sign shifts implemented with linear optics”, Physical Review A 68, (2003) arXiv:quant-ph/0307015 DOI

  18. [18]

    T. Tsunoda, J. D. Teoh, W. D. Kalfus, S. J. de Graaf, B. J. Chapman, J. C. Curtis, N. Thakur, S. M. Girvin, and R. J. Schoelkopf, “Error-detectable bosonic entangling gates with a noisy ancilla”, (2022) arXiv:2212.11196

  19. [19]

    N. Mehta et al., “Bias-preserving and error-detectable entangling operations in a superconducting dual-rail system”, (2025) arXiv:2503.10935

  20. [20]

    A. S. Fletcher, P. W. Shor, and M. Z. Win, “Channel-Adapted Quantum Error Correction for the Amplitude Damping Channel”, (2007) arXiv:0710.1052

  21. [21]

    A. Kubica, A. Haim, Y. Vaknin, H. Levine, F. Brandão, and A. Retzker, “Erasure Qubits: Overcoming the T1 Limit in Superconducting Circuits”, Physical Review X 13, (2023) arXiv:2208.05461 DOI

  22. [22]

    C. R. Myers and R. Laflamme, “Linear Optics Quantum Computation: an Overview”, (2005) arXiv:quant-ph/0512104

  23. [23]

    P. Kok, W. J. Munro, K. Nemoto, T. C. Ralph, J. P. Dowling, and G. J. Milburn, “Linear optical quantum computing with photonic qubits”, Reviews of Modern Physics 79, 135 (2007) arXiv:quant-ph/0512071 DOI

  24. [24]

    S. Slussarenko and G. J. Pryde, “Photonic quantum information processing: A concise review”, Applied Physics Reviews 6, (2019) arXiv:1907.06331 DOI

  25. [25]

    H. Levine et al., “Demonstrating a Long-Coherence Dual-Rail Erasure Qubit Using Tunable Transmons”, Physical Review X 14, (2024) arXiv:2307.08737 DOI

  26. [26]

    J. D. Teoh et al., “Dual-rail encoding with superconducting cavities”, Proceedings of the National Academy of Sciences 120, (2023) arXiv:2212.12077 DOI

  27. [27]

    W. Huang et al., “Logical multi-qubit entanglement with dual-rail superconducting qubits”, Nature Physics (2026) arXiv:2504.12099 DOI

  28. [28]

    K. S. Chou et al., “Demonstrating a superconducting dual-rail cavity qubit with erasure-detected logical measurements”, (2023) arXiv:2307.03169

  29. [29]

    K. Alexander et al., “A manufacturable platform for photonic quantum computing”, (2024) arXiv:2404.17570

  30. [30]

    M. Silva, “Erasure Thresholds for Efficient Linear Optics Quantum Computation”, (2004) arXiv:quant-ph/0405112

  31. [31]

    M. Silva, M. Rötteler, and C. Zalka, “Thresholds for linear optics quantum computing with photon loss at the detectors”, Physical Review A 72, (2005) arXiv:quant-ph/0502101 DOI

  32. [32]

    Y. Ouyang, “Avoiding coherent errors with rotated concatenated stabilizer codes”, npj Quantum Information 7, (2021) arXiv:2010.00538 DOI

  33. [33]

    R. Duan, M. Grassl, Z. Ji, and B. Zeng, “Multi-error-correcting amplitude damping codes”, 2010 IEEE International Symposium on Information Theory 2672 (2010) arXiv:1001.2356 DOI

  34. [34]

    H.-K. Lau and M. B. Plenio, “Universal Quantum Computing with Arbitrary Continuous-Variable Encoding”, Physical Review Letters 117, (2016) arXiv:1605.09278 DOI

  35. [35]

    G. Alber, Th. Beth, Ch. Charnes, A. Delgado, M. Grassl, and M. Mussinger, “Stabilizing Distinguishable Qubits against Spontaneous Decay by Detected-Jump Correcting Quantum Codes”, Physical Review Letters 86, 4402 (2001) arXiv:quant-ph/0103042 DOI

  36. [36]

    T. C. Ralph, A. J. F. Hayes, and A. Gilchrist, “Loss-Tolerant Optical Qubits”, Physical Review Letters 95, (2005) arXiv:quant-ph/0501184 DOI

  37. [37]

    N. Yoran and B. Reznik, “Deterministic Linear Optics Quantum Computation with Single Photon Qubits”, Physical Review Letters 91, (2003) arXiv:quant-ph/0303008 DOI

  38. [38]

    M. A. Nielsen, “Optical Quantum Computation Using Cluster States”, Physical Review Letters 93, (2004) arXiv:quant-ph/0402005 DOI

  39. [39]

    D. E. Browne and T. Rudolph, “Resource-Efficient Linear Optical Quantum Computation”, Physical Review Letters 95, (2005) arXiv:quant-ph/0405157 DOI

  40. [40]

    B. Srivastava, Y. Xiao, A. F. Kockum, B. Criger, and M. Granath, “Sequential decoding of the XYZ\(^2\) hexagonal stabilizer code”, (2025) arXiv:2505.03691

Page edit log

Your contribution is welcome!

on github.com (edit & pull request)

— see instructions

Zoo Code ID: dual_rail

Cite as:
“Dual-rail quantum code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/dual_rail, arXiv:2606.11484
BibTeX:
@incollection{eczoo_dual_rail,
title={Dual-rail quantum code},
booktitle={The Error Correction Zoo},
year={2026},
editor={Albert, Victor V. and Faist, Philippe},
eprint={2606.11484},
doi={10.48550/arXiv.2606.11484},
url={https://errorcorrectionzoo.org/c/dual_rail}
}
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/dual_rail

Cite as:

“Dual-rail quantum code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/dual_rail, arXiv:2606.11484

Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/quantum/oscillators/fock_state/constant_excitation/dual_rail.yml.