# Quantum repetition code[1]

## Description

Encodes \(1\) qubit into \(n\) qubits according to \(|0\rangle\to|\phi_0\rangle^{\otimes n}\) and \(|1\rangle\to|\phi_1\rangle^{\otimes n}\). The code is called a bit-flip code when \(|\phi_i\rangle = |i\rangle\), and a phase-flip code when \(|\phi_0\rangle = |+\rangle\) and \(|\phi_1\rangle = |-\rangle\).

The \(\pm\)-basis codewords for the bit-flip code are GHZ states [2,3] (a.k.a. cat states) \(|0\rangle^{\otimes n}\pm|1\rangle^{\otimes n}\). These are ground states of the one-dimensional classical Ising model Hamiltonian \(H=\sum_{i} Z_{i}Z_{i+1}\).

The \(\pm\)-basis codewords for the phase-flip code are expanded in the computational basis as \begin{align} \begin{split} |\overline{+}\rangle =\frac{1}{\sqrt{2^{n-1}}}\sum_{\sum_{i}v_{i}=0}|v_{1},\cdots,v_{n}\rangle~{\phantom{,}}\\ |\overline{-}\rangle =\frac{1}{\sqrt{2^{n-1}}}\sum_{\sum_{i}v_{i}=1}|v_{1},\cdots,v_{n}\rangle~, \end{split} \tag*{(1)}\end{align} showing that the phase-flip code stores information in the total parity of the qubits.

## Protection

Bit-flip code detects bit-flip errors \(X\) on \(\left\lfloor (n-1)/2\right\rfloor\) qubits and does not detect any phase-flip errors \(Z\). Phase-flip code detects phase-flip errors \(Z\) on \(\left\lfloor (n-1)/2\right\rfloor\) qubits and does not detect any bit-flip errors \(X\).

Because they protect against only one type of noise, both codes can be thought of as a classical \([n,1,d]\) repetition code with classical distance \(d=\left\lfloor (n-1)/2\right\rfloor\) embedded in a quantum system. Nevertheless, the phase-flip code can offer some degree of protection in particular physical systems based on superconducting circuits [4,5].

## Encoding

## Gates

## Decoding

## Fault Tolerance

## Code Capacity Threshold

## Threshold

## Realizations

## Notes

## Parents

- Quantum parity code (QPC) — A \([[m_1 m_2,1,\min(m_1,m_2)]]\) QPC reduces to a repetition code when \(m_1\) or \(m_2\) is one.
- Group-based quantum repetition code — Group-based quantum repetition codes reduce to quantum repetition codes for \(G = \mathbb{Z}_2\).
- GNU PI code — GNU codewords for \(g=1\) reduce to the phase-flip repetition code.
- Frustration-free Hamiltonian code — The codespace of the quantum repetition code is the ground-state space of a frustration-free classical Ising model with nearest-neighbor interactions.
- Commuting-projector Hamiltonian code — The codespace of the quantum repetition code is the ground-state space of a frustration-free classical Ising model with nearest-neighbor interactions.

## Cousins

- Fracton stabilizer code — The 1D quantum repetition code is an ingredient in product constructions that yield several fracton phases [46; Fig. 8].
- Abelian topological code — The 1D quantum repetition code is an ingredient in product constructions that yield several topological phases [46; Fig. 8].
- Cluster-state code — GHZ states can be used as resource states for MBQC protocols [47–49].
- Repetition code — A quantum repetition code can be thought of as a classical \([n,1,d]\) repetition code with classical distance \(d=\left\lfloor (n-1)/2\right\rfloor\) embedded in a quantum system.
- Concatenated cat code — Two-component cat codes have been concatenated with quantum repetition codes [12,50–53].
- Two-component cat code — Two-legged cat and quantum repetition codes can be thought of as classical codes because they protect against only one type of noise. Two-legged cat codes (quantum repetition) codes suppress cavity dephasing (bit-flip) noise exponentially with \(|\alpha|^2\) (\(n\)). The stability offered by cat codes has been linked to several favorable properties of phases of matter associated with the repetition-code Hamiltonian [54,55].
- Very small logical qubit (VSLQ) code — Parts of the VSLQ codewords resemble the two-qubit phase-flip repetition code, though the code cannot correct phase errors. Unlike the phase-flip code, the VSLQ code can correct for single photon loss because it uses the second excited state in the construction, which remains distinct from the vacuum even after photon loss.
- \(D_4\) hyper-diamond GKP code — The \(D_4\) hyper-diamond GKP code can be seen as a concatenation of a rotated square-lattice GKP code with a repetition code [56]. This is related to the fact that the four-bit repetition code yields the \(D_4\) hyper-diamond lattice code via Construction A.
- Concatenated GKP code — Concatenating a three-qubit quantum repetition code with GKP codes can correct some two-bit-flip errors [57] (see also [58]).
- Self-correcting quantum code — The bit-flip repetition code associated with the 2D classical Ising model is a self-correcting classical memory [59; Sec. V.A].
- XYZ ruby Floquet code — One third of the time during its measurement schedule, the ISG of the XYZ ruby Floquet code is that of the 6.6.6 color code concatenated with a three-qubit repetition code.
- \([[2^D,D,2]]\) hypercube quantum code — The hypercube quantum code can be concatenated with a two-qubit quantum repetition code to yield a \([[2^{D+1},D,4]]\) error-detecting code family [60].
- \([[9,1,3]]\) Shor code — The Shor code is a concatenation of a three-qubit bit-flip with a three-qubit phase-flip repetition code.
- Transverse-field Ising model (TFIM) code — When written in the computational basis, the phase-flip and TFIM codewords are superpositions of qubit states of fixed total parity. The superposition is equal for the phase-flip code, whereas some states appear with a \(-1\) coefficient for TFIM code. However, the TFIM code can be encoded in constant depth.
- X-cube model code — Generalized X-cube models [46] are constructed from a balanced product of the quantum repetion (1D Ising) code and the Newman-Moore code.

## References

- [1]
- A. Peres, “Reversible logic and quantum computers”, Physical Review A 32, 3266 (1985) DOI
- [2]
- N. D. Mermin, “Quantum mysteries revisited”, American Journal of Physics 58, 731 (1990) DOI
- [3]
- D. M. Greenberger, M. A. Horne, and A. Zeilinger, “Going Beyond Bell’s Theorem”, (2007) arXiv:0712.0921
- [4]
- K. Keane and A. N. Korotkov, “Simplified quantum error detection and correction for superconducting qubits”, Physical Review A 86, (2012) arXiv:1205.1836 DOI
- [5]
- Á. Rozgonyi and G. Széchenyi, “Break-even point of the phase-flip error correcting code”, New Journal of Physics 25, 103004 (2023) arXiv:2303.17810 DOI
- [6]
- D. Cruz et al., “Efficient Quantum Algorithms for GHZ and W States, and Implementation on the IBM Quantum Computer”, Advanced Quantum Technologies 2, (2019) arXiv:1807.05572 DOI
- [7]
- S. Bravyi et al., “Obstacles to Variational Quantum Optimization from Symmetry Protection”, Physical Review Letters 125, (2020) arXiv:1910.08980 DOI
- [8]
- A. B. Watts et al., “Exponential separation between shallow quantum circuits and unbounded fan-in shallow classical circuits”, Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (2019) arXiv:1906.08890 DOI
- [9]
- R. Verresen, N. Tantivasadakarn, and A. Vishwanath, “Efficiently preparing Schrödinger’s cat, fractons and non-Abelian topological order in quantum devices”, (2022) arXiv:2112.03061
- [10]
- C. Ahn, A. C. Doherty, and A. J. Landahl, “Continuous quantum error correction via quantum feedback control”, Physical Review A 65, (2002) arXiv:quant-ph/0110111 DOI
- [11]
- F. Reiter et al., “Dissipative quantum error correction and application to quantum sensing with trapped ions”, Nature Communications 8, (2017) arXiv:1702.08673 DOI
- [12]
- C. Chamberland et al., “Building a Fault-Tolerant Quantum Computer Using Concatenated Cat Codes”, PRX Quantum 3, (2022) arXiv:2012.04108 DOI
- [13]
- A. L. Toom, “Nonergodic Multidimensional System of Automata”, Probl. Peredachi Inf., 10:3 (1974), 70–79; Problems Inform. Transmission, 10:3 (1974), 239–246
- [14]
- L. F. Gray, “Toom’s Stability Theorem in Continuous Time”, Perplexing Problems in Probability 331 (1999) DOI
- [15]
- P. Gács, Journal of Statistical Physics 103, 45 (2001) DOI
- [16]
- I. Convy et al., “Machine learning for continuous quantum error correction on superconducting qubits”, New Journal of Physics 24, 063019 (2022) arXiv:2110.10378 DOI
- [17]
- K. Duivenvoorden, N. P. Breuckmann, and B. M. Terhal, “Renormalization Group Decoder for a Four-Dimensional Toric Code”, IEEE Transactions on Information Theory 65, 2545 (2019) arXiv:1708.09286 DOI
- [18]
- D. G. Cory et al., “Experimental Quantum Error Correction”, Physical Review Letters 81, 2152 (1998) arXiv:quant-ph/9802018 DOI
- [19]
- O. Moussa et al., “Demonstration of Sufficient Control for Two Rounds of Quantum Error Correction in a Solid State Ensemble Quantum Information Processor”, Physical Review Letters 107, (2011) arXiv:1108.4842 DOI
- [20]
- J. Zhang et al., “Experimental quantum error correction with high fidelity”, Physical Review A 84, (2011) arXiv:1109.4821 DOI
- [21]
- J. Chiaverini et al., “Realization of quantum error correction”, Nature 432, 602 (2004) DOI
- [22]
- P. Schindler et al., “Experimental Repetitive Quantum Error Correction”, Science 332, 1059 (2011) DOI
- [23]
- S. A. Moses et al., “A Race-Track Trapped-Ion Quantum Processor”, Physical Review X 13, (2023) arXiv:2305.03828 DOI
- [24]
- L. Postler et al., “Demonstration of fault-tolerant Steane quantum error correction”, (2023) arXiv:2312.09745
- [25]
- L. DiCarlo et al., “Preparation and measurement of three-qubit entanglement in a superconducting circuit”, Nature 467, 574 (2010) arXiv:1004.4324 DOI
- [26]
- M. D. Reed et al., “Realization of three-qubit quantum error correction with superconducting circuits”, Nature 482, 382 (2012) arXiv:1109.4948 DOI
- [27]
- D. Ristè et al., “Detecting bit-flip errors in a logical qubit using stabilizer measurements”, Nature Communications 6, (2015) arXiv:1411.5542 DOI
- [28]
- J. Cramer et al., “Repeated quantum error correction on a continuously encoded qubit by real-time feedback”, Nature Communications 7, (2016) arXiv:1508.01388 DOI
- [29]
- J. R. Wootton and D. Loss, “Repetition code of 15 qubits”, Physical Review A 97, (2018) arXiv:1709.00990 DOI
- [30]
- J. R. Wootton, “Benchmarking near-term devices with quantum error correction”, Quantum Science and Technology 5, 044004 (2020) arXiv:2004.11037 DOI
- [31]
- J. Kelly et al., “State preservation by repetitive error detection in a superconducting quantum circuit”, Nature 519, 66 (2015) arXiv:1411.7403 DOI
- [32]
- “Exponential suppression of bit or phase errors with cyclic error correction”, Nature 595, 383 (2021) arXiv:2102.06132 DOI
- [33]
- R. Acharya et al., “Suppressing quantum errors by scaling a surface code logical qubit”, (2022) arXiv:2207.06431
- [34]
- K. C. Miao et al., “Overcoming leakage in quantum error correction”, Nature Physics 19, 1780 (2023) arXiv:2211.04728 DOI
- [35]
- R. Acharya et al., “Quantum error correction below the surface code threshold”, (2024) arXiv:2408.13687
- [36]
- W. P. Livingston et al., “Experimental demonstration of continuous quantum error correction”, Nature Communications 13, (2022) arXiv:2107.11398 DOI
- [37]
- K. Takeda et al., “Quantum error correction with silicon spin qubits”, Nature 608, 682 (2022) arXiv:2201.08581 DOI
- [38]
- F. van Riggelen et al., “Phase flip code with semiconductor spin qubits”, (2022) arXiv:2202.11530
- [39]
- G. Waldherr et al., “Quantum error correction in a solid-state hybrid spin register”, Nature 506, 204 (2014) arXiv:1309.6424 DOI
- [40]
- T. Nakazato et al., “Quantum error correction of spin quantum memories in diamond under a zero magnetic field”, Communications Physics 5, (2022) DOI
- [41]
- T. H. Taminiau et al., “Universal control and error correction in multi-qubit spin registers in diamond”, Nature Nanotechnology 9, 171 (2014) arXiv:1309.5452 DOI
- [42]
- S. P. Jordan, E. Farhi, and P. W. Shor, “Error-correcting codes for adiabatic quantum computation”, Physical Review A 74, (2006) arXiv:quant-ph/0512170 DOI
- [43]
- K. L. Pudenz, T. Albash, and D. A. Lidar, “Error-corrected quantum annealing with hundreds of qubits”, Nature Communications 5, (2014) arXiv:1307.8190 DOI
- [44]
- K. L. Pudenz, T. Albash, and D. A. Lidar, “Quantum annealing correction for random Ising problems”, Physical Review A 91, (2015) arXiv:1408.4382 DOI
- [45]
- T. Tomesh et al., “SupermarQ: A Scalable Quantum Benchmark Suite”, (2022) arXiv:2202.11045
- [46]
- T. Rakovszky and V. Khemani, “The Physics of (good) LDPC Codes II. Product constructions”, (2024) arXiv:2402.16831
- [47]
- M. Gimeno-Segovia et al., “From Three-Photon Greenberger-Horne-Zeilinger States to Ballistic Universal Quantum Computation”, Physical Review Letters 115, (2015) arXiv:1410.3720 DOI
- [48]
- S.-W. Lee et al., “Nearly Deterministic Bell Measurement for Multiphoton Qubits and its Application to Quantum Information Processing”, Physical Review Letters 114, (2015) arXiv:1502.07437 DOI
- [49]
- S. Omkar et al., “All-Photonic Architecture for Scalable Quantum Computing with Greenberger-Horne-Zeilinger States”, PRX Quantum 3, (2022) arXiv:2109.12280 DOI
- [50]
- J. Guillaud and M. Mirrahimi, “Repetition Cat Qubits for Fault-Tolerant Quantum Computation”, Physical Review X 9, (2019) arXiv:1904.09474 DOI
- [51]
- S. Puri et al., “Bias-preserving gates with stabilized cat qubits”, Science Advances 6, (2020) arXiv:1905.00450 DOI
- [52]
- J. Guillaud and M. Mirrahimi, “Error rates and resource overheads of repetition cat qubits”, Physical Review A 103, (2021) arXiv:2009.10756 DOI
- [53]
- F.-M. L. Régent et al., “High-performance repetition cat code using fast noisy operations”, Quantum 7, 1198 (2023) arXiv:2212.11927 DOI
- [54]
- F. Minganti et al., “Spectral theory of Liouvillians for dissipative phase transitions”, Physical Review A 98, (2018) arXiv:1804.11293 DOI
- [55]
- S. Lieu et al., “Symmetry Breaking and Error Correction in Open Quantum Systems”, Physical Review Letters 125, (2020) arXiv:2008.02816 DOI
- [56]
- B. Royer, S. Singh, and S. M. Girvin, “Encoding Qubits in Multimode Grid States”, PRX Quantum 3, (2022) arXiv:2201.12337 DOI
- [57]
- K. Fukui, A. Tomita, and A. Okamoto, “Analog Quantum Error Correction with Encoding a Qubit into an Oscillator”, Physical Review Letters 119, (2017) arXiv:1706.03011 DOI
- [58]
- M. P. Stafford and N. C. Menicucci, “Biased Gottesman-Kitaev-Preskill repetition code”, Physical Review A 108, (2023) arXiv:2212.11397 DOI
- [59]
- B. J. Brown et al., “Quantum memories at finite temperature”, Reviews of Modern Physics 88, (2016) arXiv:1411.6643 DOI
- [60]
- D. Hangleiter et al., “Fault-tolerant compiling of classically hard IQP circuits on hypercubes”, (2024) arXiv:2404.19005

## Page edit log

- Victor V. Albert (2022-09-28) — most recent
- Mazin Karjikar (2022-06-28)
- Victor V. Albert (2022-06-07)
- Victor V. Albert (2022-02-23)
- Victor V. Albert (2021-10-29)

## Cite as:

“Quantum repetition code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2022. https://errorcorrectionzoo.org/c/quantum_repetition