[Jump to code hierarchy]

Toric code[1,2]

Description

Version of the Kitaev surface code on a square lattice with periodic boundary conditions, encoding two logical qubits. Being the first manifestation of the surface code, “toric code” is often an alternative name for the general construction. Twisted toric code [3; Fig. 8] refers to the construction on a torus with twisted (a.k.a. shifted) boundary conditions.

The stabilizers of the toric code are generated by star operators \(A_v\) and plaquette operators \(B_p\). Each star operator is a product of four Pauli-\(X\) operators on the edges adjacent to a vertex \(v\) of the lattice; each plaquette operator is a product of four Pauli-\(Z\) operators applied to the edges adjacent to a face, or plaquette, \(p\) of the lattice (Fig. I).

Figure I: Stabilizer generators and logical operators of the toric code. The star operators \(A_v\) and the plaquette operators \(B_p\) generate the stabilizer group. The logical operators are strings that wrap around the torus.

We denote by \(\overline{X}_i,\overline{Z}_i\) the logical Pauli-\(X\) and Pauli-\(Z\) operator of the \(i\)-th logical qubit (with \(i\in\{1,2\}\)). They are represented by strings of Pauli-\(X\) operators or Pauli-\(Z\) operators that wrap around the torus, as shown in Fig. I.

Protection

Toric code on an \(L\times L\) torus is a \([[2L^2,2,L]]\) CSS code. The number of error patterns can be used to bound the ground-state energy of a \(\pm J\) Ising model [4].

Coherent physical errors in the toric code are expected to become incoherent logical errors under syndrome measurement; see corroborating numerical studies performed by embedding each physical qubit into two fermions via the tetron code [5] as well as deriving analytical bounds [6]. More generally, there is a tensor-network routine that calculates the effective logical channel [7]

Encoding

Lindbladian-based dissipative encoding for the toric code [8] that does not give a speedup relative to circuit-based encoders [9].

Transversal Gates

Transversal logical Pauli gates correspond to Pauli strings on non-trivial loops of the torus.

Gates

Logical \(CX\) gate for the \([[12,2,3]]\) twisted toric code [10].

Code Capacity Threshold

Independent \(X,Z\) noise: \(p_X = 10.31\%\) under MWPM decoding [11] (see also Ref. [12]), \(9.9\%\) under BP-OSD decoding [13], and \(8.9\%\) under GBP decoding [14]. The threshold under ML decoding corresponds to the value of a critical point of a two-dimensional random-bond Ising model (RBIM) on the Nishimori line [15,16], calculated to be \(10.94 \pm 0.02\%\) in Ref. [17], \(10.93(2)\%\) in Ref. [18], \(10.9187\%\) in Ref. [19], \(10.917(3)\%\) in Ref. [20], \(10.939(6)\%\) in Ref. [21], and estimated to be between \(10.9\%\) and \(11\%\) in Ref. [12]. The Bravyi-Suchara-Vargo (BSV) tensor network decoder [12] exactly solves the ML decoding problem under independent \(X,Z\) noise for the surface code and has complexity of order \(O(n^2)\); the decoder provides an efficient tensor-network contraction for the partition function resulting from the statistical mechanical mapping, which is known to be solvable for an Ising model on a planar graph [22]. ML decoding [16] is \(\#P\)-hard in general for the surface code [23]. Above values are for one type of noise only, and the ML threshold for combined \(X\) and \(Z\) noise is \(2p_X - p_X^2 \approx 20.6\%\) [14; Table 1]. Thresholds for various lattices have been obtained in Refs. [24,25]. Depolarizing noise: between \(17\%\) and \(18.5\%\) under BSV tensor-network decoding [12], \(14\%\) under GBP decoding [14], \(16.5\%\) under recursive MWPM [26], between \(16\%\) and \(17.5\%\) under AMBP4 (depending on whether surface or toric code is considered) [27], and between \(15\%\) and \(16\%\) under RG [28], Markov-chain [29], or MWPM [30] decoding. The threshold under ML decoding corresponds to the value of a critical point of the disordered eight-vertex Ising model, calculated to be \(18.9(3)\%\) [31] (see also APS Physics viewpoint [32]).Erasure noise: \(50\%\) for square tiling [33,34]. There is an inverse relationship between coordination number of the syndrome graph, with the threshold corresponding to a percolation transition [35].AD noise: \(39\%\) [36].Correlated noise: the threshold under ML decoding corresponds to the value of a critical point of a particular random-bond Ising model (RBIM) [37,38]. A threshold of \(10.04(6)\%\) under mildly correlated bit-flip noise is obtained in Ref. [39].The toric code has a measurement threshold of one [40].Coherent noise: the threshold under ML decoding corresponds to the value of a critical point of a particular random-bond Ising model (RBIM) called the complex-coupled Ashkin-Teller model [41,42]. Another statistical mechanical mapping has been studied for \(X\)-type noise channels interpolating between coherent and incoherent noise [43].Threshold under real-time geometrically local decoder based on introducing confining interactions between anyons [44].

Threshold

The threshold under ML decoding with measurement errors corresponds to the value of a critical point of a three-dimensional random plaquette model [11,16].\(0.133\%\) for independent \(X,Z\) noise and faulty syndrome measurements using a local automaton decoder [45].Toric-code thresholds for post-selected QEC can be studied with statistical mechanical models [46].

Realizations

Neutral atom arrays: One cycle of syndrome readout on 19-qubit planar and 24-qubit toric codes [47].

Cousins

  • Lifted-product (LP) code— A lifted-product code for the ring \(R=\mathbb{F}_2[x,y]/(x^L-1,y^L-1)\) is the toric code [48; Appx. B].
  • Balanced product (BP) code— Twisted toric codes can be obtained from balanced products of cyclic graphs over a cyclic group [3; Fig. 8].
  • Repetition code— The toric code can be obtained from a hypergraph product of two repetition codes [49; Exam. 6]. Other hypergraph products of two repetition codes yield the related \([[2d^2-2d+1,1,d]]\) CSS code family [49; Exam. 5].
  • Tetron code— Coherent physical errors in the toric code are expected to become incoherent logical errors under syndrome measurement; see corroborating numerical studies performed by embedding each physical qubit into two fermions via the tetron code [5] as well as deriving analytical bounds [6].
  • Hansen toric code— The toric code is not to be confused with the CSS code constructed from a polynomial evaluation code on a toric variety [50].
  • GKP-surface code— GKP codes have been concatenated with toric codes [51].

References

[1]
A. Y. Kitaev, “Quantum computations: algorithms and error correction”, Russian Mathematical Surveys 52, 1191 (1997) DOI
[2]
A. Yu. Kitaev, “Quantum Error Correction with Imperfect Gates”, Quantum Communication, Computing, and Measurement 181 (1997) DOI
[3]
N. P. Breuckmann and J. N. Eberhardt, “Balanced Product Quantum Codes”, IEEE Transactions on Information Theory 67, 6653 (2021) arXiv:2012.09271 DOI
[4]
H. Nishimori and P. Sollich, “Error Counting in a Quantum Error-correcting Code and the Ground-State Energy of a Spin Glass”, Journal of the Physical Society of Japan 73, 2701 (2004) arXiv:cond-mat/0405313 DOI
[5]
S. Bravyi, M. Englbrecht, R. König, and N. Peard, “Correcting coherent errors with surface codes”, npj Quantum Information 4, (2018) arXiv:1710.02270 DOI
[6]
J. K. Iverson and J. Preskill, “Coherence in logical quantum channels”, New Journal of Physics 22, 073066 (2020) arXiv:1912.04319 DOI
[7]
A. S. Darmawan, “Optimal adaptation of surface-code decoders to local noise”, (2024) arXiv:2403.08706
[8]
J. Dengis, R. König, and F. Pastawski, “An optimal dissipative encoder for the toric code”, New Journal of Physics 16, 013023 (2014) arXiv:1310.1036 DOI
[9]
R. König and F. Pastawski, “Generating topological order: No speedup by dissipation”, Physical Review B 90, (2014) arXiv:1310.1037 DOI
[10]
E. J. Kuehnke, K. Levi, J. Roffe, J. Eisert, and D. Miller, “Hardware-tailored logical Clifford circuits for stabilizer codes”, (2025) arXiv:2505.20261
[11]
C. Wang, J. Harrington, and J. Preskill, “Confinement-Higgs transition in a disordered gauge theory and the accuracy threshold for quantum memory”, Annals of Physics 303, 31 (2003) arXiv:quant-ph/0207088 DOI
[12]
S. Bravyi, M. Suchara, and A. Vargo, “Efficient algorithms for maximum likelihood decoding in the surface code”, Physical Review A 90, (2014) arXiv:1405.4883 DOI
[13]
J. Roffe, D. R. White, S. Burton, and E. Campbell, “Decoding across the quantum low-density parity-check code landscape”, Physical Review Research 2, (2020) arXiv:2005.07016 DOI
[14]
J. Old and M. Rispler, “Generalized Belief Propagation Algorithms for Decoding of Surface Codes”, Quantum 7, 1037 (2023) arXiv:2212.03214 DOI
[15]
H. Nishimori, “Geometry-Induced Phase Transition in the ±JIsing Model”, Journal of the Physical Society of Japan 55, 3305 (1986) DOI
[16]
E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, “Topological quantum memory”, Journal of Mathematical Physics 43, 4452 (2002) arXiv:quant-ph/0110143 DOI
[17]
A. Honecker, M. Picco, and P. Pujol, “Universality Class of the Nishimori Point in the 2D±JRandom-Bond Ising Model”, Physical Review Letters 87, (2001) arXiv:cond-mat/0010143 DOI
[18]
F. Merz and J. T. Chalker, “Two-dimensional random-bond Ising model, free fermions, and the network model”, Physical Review B 65, (2002) arXiv:cond-mat/0106023 DOI
[19]
M. Ohzeki, “Locations of multicritical points for spin glasses on regular lattices”, Physical Review E 79, (2009) arXiv:0811.0464 DOI
[20]
F. Parisen Toldin, A. Pelissetto, and E. Vicari, “Strong-Disorder Paramagnetic-Ferromagnetic Fixed Point in the Square-Lattice ±J Ising Model”, Journal of Statistical Physics 135, 1039 (2009) arXiv:0811.2101 DOI
[21]
S. L. A. de Queiroz, “Location and properties of the multicritical point in the Gaussian and±JIsing spin glasses”, Physical Review B 79, (2009) arXiv:0902.4153 DOI
[22]
M. Kac and J. C. Ward, “A Combinatorial Solution of the Two-Dimensional Ising Model”, Physical Review 88, 1332 (1952) DOI
[23]
A. Fischer and A. Miyake, “Hardness results for decoding the surface code with Pauli noise”, Quantum 8, 1511 (2024) arXiv:2309.10331 DOI
[24]
B. Röthlisberger, J. R. Wootton, R. M. Heath, J. K. Pachos, and D. Loss, “Incoherent dynamics in the toric code subject to disorder”, Physical Review A 85, (2012) arXiv:1112.1613 DOI
[25]
K. Fujii and Y. Tokunaga, “Error and loss tolerances of surface codes with general lattice structures”, Physical Review A 86, (2012) arXiv:1202.2743 DOI
[26]
A. deMarti iOlius, J. E. Martinez, P. Fuentes, and P. M. Crespo, “Performance enhancement of surface codes via recursive minimum-weight perfect-match decoding”, Physical Review A 108, (2023) arXiv:2212.11632 DOI
[27]
K.-Y. Kuo and C.-Y. Lai, “Exploiting degeneracy in belief propagation decoding of quantum codes”, npj Quantum Information 8, (2022) arXiv:2104.13659 DOI
[28]
G. Duclos-Cianci and D. Poulin, “Fast Decoders for Topological Quantum Codes”, Physical Review Letters 104, (2010) arXiv:0911.0581 DOI
[29]
A. Hutter, J. R. Wootton, and D. Loss, “Efficient Markov chain Monte Carlo algorithm for the surface code”, Physical Review A 89, (2014) arXiv:1302.2669 DOI
[30]
D. S. Wang, A. G. Fowler, A. M. Stephens, and L. C. L. Hollenberg, “Threshold error rates for the toric and surface codes”, (2009) arXiv:0905.0531
[31]
H. Bombin, R. S. Andrist, M. Ohzeki, H. G. Katzgraber, and M. A. Martin-Delgado, “Strong Resilience of Topological Codes to Depolarization”, Physical Review X 2, (2012) arXiv:1202.1852 DOI
[32]
D. Gottesman, “Keeping One Step Ahead of Errors”, Physics 5, (2012) DOI
[33]
T. M. Stace, S. D. Barrett, and A. C. Doherty, “Thresholds for Topological Codes in the Presence of Loss”, Physical Review Letters 102, (2009) arXiv:0904.3556 DOI
[34]
T. M. Stace and S. D. Barrett, “Error correction and degeneracy in surface codes suffering loss”, Physical Review A 81, (2010) arXiv:0912.1159 DOI
[35]
N. Nickerson and H. Bombín, “Measurement based fault tolerance beyond foliation”, (2018) arXiv:1810.09621
[36]
A. S. Darmawan and D. Poulin, “Tensor-Network Simulations of the Surface Code under Realistic Noise”, Physical Review Letters 119, (2017) arXiv:1607.06460 DOI
[37]
E. Novais and E. R. Mucciolo, “Surface Code Threshold in the Presence of Correlated Errors”, Physical Review Letters 110, (2013) arXiv:1209.2157 DOI
[38]
P. Jouzdani, E. Novais, and E. R. Mucciolo, “Fidelity of the surface code in the presence of a bosonic bath”, Physical Review A 88, (2013) arXiv:1304.2975 DOI
[39]
C. T. Chubb and S. T. Flammia, “Statistical mechanical models for quantum codes with correlated noise”, Annales de l’Institut Henri Poincaré D, Combinatorics, Physics and their Interactions 8, 269 (2021) arXiv:1809.10704 DOI
[40]
D. Lee and B. Yoshida, “Randomly Monitored Quantum Codes”, (2024) arXiv:2402.00145
[41]
J. Behrends and B. Béri, “Statistical Mechanical Mapping and Maximum-Likelihood Thresholds for the Surface Code under Generic Single-Qubit Coherent Errors”, PRX Quantum 6, (2025) arXiv:2410.22436 DOI
[42]
Y. Bao and S. Anand, “Phases of decodability in the surface code with unitary errors”, (2024) arXiv:2411.05785
[43]
J. Behrends and B. Béri, “The surface code beyond Pauli channels: Logical noise coherence, information-theoretic measures, and errorfield-double phenomenology”, (2025) arXiv:2412.21055
[44]
E. Lake, “Local active error correction from simulated confinement”, (2025) arXiv:2510.08056
[45]
N. P. Breuckmann, K. Duivenvoorden, D. Michels, and B. M. Terhal, “Local Decoders for the 2D and 4D Toric Code”, (2016) arXiv:1609.00510
[46]
L. H. English, D. J. Williamson, and S. D. Bartlett, “Thresholds for Postselected Quantum Error Correction from Statistical Mechanics”, Physical Review Letters 135, (2025) arXiv:2410.07598 DOI
[47]
D. Bluvstein et al., “A quantum processor based on coherent transport of entangled atom arrays”, Nature 604, 451 (2022) arXiv:2112.03923 DOI
[48]
P. Panteleev and G. Kalachev, “Asymptotically Good Quantum and Locally Testable Classical LDPC Codes”, (2022) arXiv:2111.03654
[49]
A. A. Kovalev and L. P. Pryadko, “Improved quantum hypergraph-product LDPC codes”, 2012 IEEE International Symposium on Information Theory Proceedings 348 (2012) arXiv:1202.0928 DOI
[50]
J. P. Hansen, “Toric Codes, Multiplicative Structure and Decoding”, (2017) arXiv:1702.06569
[51]
C. Vuillot, H. Asasi, Y. Wang, L. P. Pryadko, and B. M. Terhal, “Quantum error correction with the toric Gottesman-Kitaev-Preskill code”, Physical Review A 99, (2019) arXiv:1810.00047 DOI
Page edit log

Your contribution is welcome!

on github.com (edit & pull request)— see instructions

edit on this site

Zoo Code ID: toric

Cite as:
“Toric code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2024. https://errorcorrectionzoo.org/c/toric
BibTeX:
@incollection{eczoo_toric, title={Toric code}, booktitle={The Error Correction Zoo}, year={2024}, editor={Albert, Victor V. and Faist, Philippe}, url={https://errorcorrectionzoo.org/c/toric} }
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/toric

Cite as:

“Toric code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2024. https://errorcorrectionzoo.org/c/toric

Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/quantum/qubits/stabilizer/topological/surface/2d_surface/toric/toric.yml.