Description
A variant of the rotated surface code whose generators are \(XZZX\) Pauli strings associated, clockwise, to the vertices of each face of a two-dimensional lattice (with a qubit located at each vertex of the tessellation).
XZZX toric code often either refers to the construction on the two-dimensional torus or is an alternative name for the general construction. Twisted XZZX toric code refers to the construction on a torus with twisted (a.k.a. shifted) boundary conditions; these need not be equivalent to twisted toric codes because they can be non-CSS. The construction on surfaces with boundaries is often called the XZZX planar code. On a closed lattice, the Wen plaquette realization of the XZZX toric code has the same \(\mathbb{Z}_2\) topological order as the toric code, and translation by one lattice unit exchanges the \(e\) and \(m\) anyons [5; Appx. C].
Stabilizer generators for this code are shown in Fig. I.
Figure I: Stabilizer generators of an XZZX planar code with open boundaries. The generators are \(XZZX\) operators on the corners of squares in the bulk and \(XZ\) operators on the boundaries.
Protection
As a stabilizer code, \([[n=O(d^2), k=O(1), d]]\).Decoding
MWPM decoder, which can be used for \(X\) and \(Z\) noise. For \(Y\) noise, a variant of the matching decoder could be used like it is used for the XY code in Ref. [6]. Decoding complexity scales as order \(O(n^3)\) because the code is non-CSS [7][6; Supplement].Code Capacity Threshold
Above the zero-rate hashing bound for \(Z\)-biased noise (or, by code symmetry, \(X\)-biased noise) with bias \(\eta=30\) and \(\eta=100\) under a tensor-network decoder [4,8].\(50\%\) threshold for noise infinitely biased towards \(X\) or \(Y\) or \(Z\) errors using a maximum-likelihood decoder.Under \(Z\)-biased noise \(p_x=p_y=p_z/(2\eta)\) at the point \(p_z=1-p\), the statistical mechanical model of the \(d\times d\) code with odd \(d\) reduces to decoupled one-dimensional Ising models [8]. At this point, which lies above threshold for finite \(\eta\), the maximum-likelihood logical failure rate is exactly \(\frac{3}{4}-\frac{1}{4}e^{-2d\,Threshold
\(\approx 4.5\%\) using minimum-weight perfect matching decoder for depolarizing noise (bias \(\eta=0.5\)); \(\approx 10\%\) for infinite \(Z\) bias.\(4.15\%\) when \(98\%\) of depolarizing errors are converted into erasure errors with union-find decoder on a planar code, vs. \(0.937\%\) for pure depolarizing noise. The dominant source of noise in neutral atom arrays is spontaneous decay into detectable energy levels outside of the computational subspace. Since that decay occurs in a Rydberg level that is accessible from only one of the hyperfine states used for storage, the resulting channel is biased erasure [11].\(0.817\%\) and \(0.940\%\) with minimum-weight perfect matching and belief-matching decoder, respectively, for biased circuit-level noise [12].Realizations
Superconducting circuits: Distance-five 25-qubit code implemented on a superconducting quantum processor by Google Quantum AI [13]. This code outperformed the average of several instances of the smaller distance-three nine-qubit \(XZZX\) variant of the surface-17 code realized on the same device. The improvement holds both for the logical error probability over 25 cycles and for the logical error per cycle. This increase in error-correcting capabilities while using more physical qubits supports the notion of an error threshold. Braiding of defects has been demonstrated for the distance-five code [14]. Leakage errors have been handled in a separate work in a distance-three code [15]. A Google Quantum AI follow-up experiment realized distance-3, distance-5, and distance-7 codes on a 105-qubit processor [16]. With the transformer-based decoder, each increase of the distance by two suppresses the logical error rate by a factor of \(\Lambda=2.14(2)\) [16]. The distance-7 memory is beyond break-even, outliving its best physical qubit by a factor of \(2.4(3)\) [16]. Under real-time decoding, a distance-5 code on a 72-qubit processor stayed below threshold for up to a million cycles of 1.1 microseconds each [16]. Magic-state cultivation was demonstrated on a device by Google Quantum AI by code switching between a distance-three 6.6.6 color code and distance-five \(XZZX\) surface code and decoding with the Tesseract decoder [17].Notes
A single \(X\) or \(Z\) error gives rise to two nearby defects, which can be viewed as endpoints of a string. That way, multiple \(Z\) errors can be decomposed into a combination of diagonal strings.Originally formulated as an example of \(\mathbb{Z}_2\) topological order in the Wen plaquette model [1].Popular summary of the Google Quantum AI above-threshold result in Quanta Magazine.Cousins
- Abelian quantum-double stabilizer code— The XZZX surface code is an example of \(\mathbb{Z}_2\) topological order as manifest in the Wen plaquette model [1].
- Rotated surface code— The XZZX code is obtained from the rotated surface code by applying Hadamard gates on a subset of qubits such that \(XXXX\) and \(ZZZZ\) generators are both mapped to \(XZZX\). This map needs a checkerboard sublattice of qubits. Such a sublattice exists for planar patches and for some tori, but not for every torus. For example, the five-qubit perfect code is a twisted XZZX toric code [2; Exam. 11 and Fig. 3]. It is not equivalent to any CSS code, since the smallest qubit CSS code correcting a single-qubit error has seven qubits [18]. Both rotated and XZZX codes offer improved performance over the original surface code for biased noise [19].
- Chamon model code— The Chamon model code can be obtained from an XYZ product of three repetition codes [20]; see [21; Sec. 3.4]. Using only two repetition codes in the analogous 2D construction yields the XZZX code, making it a 2D analogue of the Chamon code [21; Sec. 2].
- Repetition code— The Chamon model code can be obtained from an XYZ product of three repetition codes [20]; see [21; Sec. 3.4]. Using only two repetition codes in the analogous 2D construction yields the XZZX code, making it a 2D analogue of the Chamon code [21; Sec. 2]. Under pure \(Z\) noise, the \(d\times d\) XZZX code is equivalent to a distance-\(d\) repetition code [4][8; Sec. IV.C]. For \(Z\) bias \(\eta\gg d\) and error rates near threshold, the XZZX code is effectively equivalent to the phase-flip repetition code on \(d\) qubits [8; Sec. VI].
- Fracton stabilizer code— Subsystem symmetries play a role in finite-bias decoders for both XZZX and fracton codes [22]. The XZZX surface code resembles a Type-I fracton code with lineons in the limit of infinite noise bias [23].
- Heavy-hexagon code— XZZX surface code can be adapted for a heavy-hexagonal point set [24].
- Cluster-state code— XZZX surface code can be foliated for a noise-bias preserving MBQC [25] or FBQC [26,27] protocol; see also [28].
- Kitaev surface code— The XZZX surface code on a square lattice with even linear dimensions and non-twisted periodic boundary conditions is obtained from a surface code by applying Hadamard gates on a subset of qubits. The Hadamard gates map both \(XXXX\) and \(ZZZZ\) generators to \(XZZX\). While this code is equivalent to a CSS surface code with the same distance, other properties like noise-bias performance can differ significantly. Twisted XZZX toric codes need not be equivalent to any CSS code via a single-qubit Clifford circuit and permutation. For example, the five-qubit perfect code is a twisted XZZX toric code [2; Exam. 11 and Fig. 3] with no CSS counterpart, since the smallest qubit CSS code correcting a single-qubit error has seven qubits [18].
- Concatenated cat code— The four-component cat code can be concatenated with the XZZX code to yield a fusion-based computation scheme on a 2D lattice [29].
- GKP-surface code— GKP codes have been concatenated with XZZX surface codes [30].
- Asymmetric quantum code (AQC)— The XZZX surface code can be foliated for a noise-bias preserving MBQC [25] or FBQC [26,27] protocol; see also [28].
- Derby-Klassen (DK) code— The DK code encodes fermions into excitations of the Wen plaquette model [31].
- XYZ color code— The XZZX surface (XYZ color) code is a non-CSS analogue of the rotated surface (6.6.6 color) code. On lattices with a checkerboard sublattice of qubits, each is related to its CSS counterpart by single-qubit Clifford rotations.
- 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 [32].
Member of code lists
- 2D stabilizer codes
- Asymmetric quantum codes and friends
- Fracton codes and friends
- Lattice qubit stabilizer codes
- Quantum codes
- Quantum codes with code capacity thresholds
- Quantum codes with notable decoders
- Quantum codes with other thresholds
- Qubit stabilizer codes (non-CSS)
- Realized quantum codes
- Surface code and friends
- Topological codes
Primary Hierarchy
References
- [1]
X.-G. Wen, “Quantum Orders in an Exact Soluble Model”, Physical Review Letters 90, (2003) arXiv:quant-ph/0205004 DOI
- [2]
A. A. Kovalev, I. Dumer, and L. P. Pryadko, “Design of additive quantum codes via the code-word-stabilized framework”, Physical Review A 84, (2011) arXiv:1108.5490 DOI
- [3]
B. M. Terhal, F. Hassler, and D. P. DiVincenzo, “From Majorana fermions to topological order”, Physical Review Letters 108, (2012) arXiv:1201.3757 DOI
- [4]
J. P. Bonilla Ataides, D. K. Tuckett, S. D. Bartlett, S. T. Flammia, and B. J. Brown, “The XZZX surface code”, Nature Communications 12, (2021) arXiv:2009.07851 DOI
- [5]
L. Bhardwaj, D. Gaiotto, and A. Kapustin, “State sum constructions of spin-TFTs and string net constructions of fermionic phases of matter”, Journal of High Energy Physics 2017, (2017) arXiv:1605.01640 DOI
- [6]
D. K. Tuckett, S. D. Bartlett, S. T. Flammia, and B. J. Brown, “Fault-Tolerant Thresholds for the Surface Code in Excess of 5% Under Biased Noise”, Physical Review Letters 124, (2020) arXiv:1907.02554 DOI
- [7]
K.-Y. Kuo and C.-Y. Lai, “Comparison of 2D topological codes and their decoding performances”, 2022 IEEE International Symposium on Information Theory (ISIT) 186 (2022) arXiv:2202.06612 DOI
- [8]
Y. Xiao, B. Srivastava, and M. Granath, “Exact results on finite size corrections for surface codes tailored to biased noise”, Quantum 8, 1468 (2024) arXiv:2401.04008 DOI
- [9]
D. K. Tuckett, S. D. Bartlett, and S. T. Flammia, “Ultrahigh Error Threshold for Surface Codes with Biased Noise”, Physical Review Letters 120, (2018) arXiv:1708.08474 DOI
- [10]
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
- [11]
Y. Wu, S. Kolkowitz, S. Puri, and J. D. Thompson, “Erasure conversion for fault-tolerant quantum computing in alkaline earth Rydberg atom arrays”, Nature Communications 13, (2022) arXiv:2201.03540 DOI
- [12]
O. Higgott, T. C. Bohdanowicz, A. Kubica, S. T. Flammia, and E. T. Campbell, “Improved Decoding of Circuit Noise and Fragile Boundaries of Tailored Surface Codes”, Physical Review X 13, (2023) arXiv:2203.04948 DOI
- [13]
“Suppressing quantum errors by scaling a surface code logical qubit”, Nature 614, 676 (2023) arXiv:2207.06431 DOI
- [14]
T. I. Andersen et al., “Non-Abelian braiding of graph vertices in a superconducting processor”, (2023) arXiv:2210.10255
- [15]
K. C. Miao et al., “Overcoming leakage in quantum error correction”, Nature Physics 19, 1780 (2023) arXiv:2211.04728 DOI
- [16]
“Quantum error correction below the surface code threshold”, Nature 638, 920 (2024) arXiv:2408.13687 DOI
- [17]
E. Rosenfeld et al., “Magic state cultivation on a superconducting quantum processor”, (2025) arXiv:2512.13908
- [18]
B. Shaw, M. M. Wilde, O. Oreshkov, I. Kremsky, and D. A. Lidar, “Encoding one logical qubit into six physical qubits”, Physical Review A 78, (2008) arXiv:0803.1495 DOI
- [19]
D. Forlivesi, L. Valentini, and M. Chiani, “Logical Error Rates of XZZX and Rotated Quantum Surface Codes”, (2023) arXiv:2312.17057
- [20]
D. Maurice, “Codes correcteurs quantiques pouvant se décoder itérativement”, PhD thesis, Université Pierre et Marie Curie-Paris VI, 2014.
- [21]
A. Leverrier, S. Apers, and C. Vuillot, “Quantum XYZ Product Codes”, Quantum 6, 766 (2022) arXiv:2011.09746 DOI
- [22]
B. J. Brown and D. J. Williamson, “Parallelized quantum error correction with fracton topological codes”, Physical Review Research 2, (2020) arXiv:1901.08061 DOI
- [23]
J. F. S. Miguel, D. J. Williamson, and B. J. Brown, “A cellular automaton decoder for a noise-bias tailored color code”, Quantum 7, 940 (2023) arXiv:2203.16534 DOI
- [24]
Y. Kim, J. Kang, and Y. Kwon, “Design of Quantum error correcting code for biased error on heavy-hexagon structure”, (2022) arXiv:2211.14038
- [25]
J. Claes, J. E. Bourassa, and S. Puri, “Tailored cluster states with high threshold under biased noise”, npj Quantum Information 9, (2023) arXiv:2201.10566 DOI
- [26]
K. Sahay, J. Claes, and S. Puri, “Tailoring Fusion-Based Error Correction for High Thresholds to Biased Fusion Failures”, Physical Review Letters 131, (2023) arXiv:2301.00019 DOI
- [27]
H. Bombín, C. Dawson, N. Nickerson, M. Pant, and J. Sullivan, “Increasing error tolerance in quantum computers with dynamic bias arrangement”, (2023) arXiv:2303.16122
- [28]
A. M. Stephens, W. J. Munro, and K. Nemoto, “High-threshold topological quantum error correction against biased noise”, Physical Review A 88, (2013) arXiv:1308.4776 DOI
- [29]
H. K. Babla, J. D. Teoh, J. Claes, D. K. Weiss, S. Singh, R. J. Schoelkopf, and S. Puri, “Fault-tolerant Fusion-based Quantum Computing with the Four-legged Cat Code”, (2025) arXiv:2508.03796
- [30]
J. Zhang, Y.-C. Wu, and G.-P. Guo, “Concatenation of the Gottesman-Kitaev-Preskill code with the XZZX surface code”, Physical Review A 107, (2023) arXiv:2207.04383 DOI
- [31]
R. W. Chien and J. D. Whitfield, “Custom fermionic codes for quantum simulation”, (2020) arXiv:2009.11860
- [32]
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
- [33]
R. Sarkar and T. J. Yoder, “A graph-based formalism for surface codes and twists”, Quantum 8, 1416 (2024) arXiv:2101.09349 DOI
Page edit log
- Victor V. Albert (2026-11-16) — most recent
- Victor V. Albert (2026-11-14)
- Victor V. Albert (2026-11-03)
- Victor V. Albert (2026-10-26)
- Victor V. Albert (2026-10-13)
- Victor V. Albert (2026-06-08)
- Eric Huang (2024-03-18)
- Victor V. Albert (2022-07-15)
- Victor V. Albert (2022-03-24)
- Arpit Dua (2022-01-19)
- Marianna Podzorova (2021-12-13)
Cite as:
“XZZX surface code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/xzzx, arXiv:2606.11484