[Jump to code hierarchy]

2D color code [1,2]

Description

Color code defined on a graph embedded in a two-dimensional surface. Each face hosts two stabilizer generators, a Pauli-\(X\) and a Pauli-\(Z\) string acting on all the qubits of the face.

Most translation-invariant color codes are defined on trivalent planar graphs with three-colorable faces. The three admissible uniform tilings are the 6.6.6 (honeycomb) tiling, the 4.8.8 (square octagon) tiling, and the 4.6.12 tiling [3; Fig. 1]. The smallest distance-four codes on tori tiled in these three ways are the \([[18,4,4]]\) code, the \([[16,4,4]]\) code, and a \([[36,4,4]]\) code, respectively. Non-uniform tilings include the [4.6.8, 6.8.8] and [4.6.8, 4.8.12] tilings [4]. More general admissible tilings can be obtained via a fattening procedure [2]; see also a construction based on the more general quantum pin codes [5].

Logical dimension is determined by the genus of the underlying surface (for closed surfaces) and the types of boundaries (for open surfaces). There are six basic boundary types: three color boundaries corresponding to the three face colors [6] and three Pauli boundaries corresponding to the three Pauli labels [7].

String operators are defined on paths along edges of the qubit lattice. These paths can have branching points. Each path has two string operators, one corresponding to the \(X\) basis and one corresponding to the \(Z\) basis. In correspondence with the coloring of the lattice faces, string operators also come in three colors. A string of one color must end in a boundary of that same color.

Rate

For general 2D manifolds, \(kd^2 \leq c(\log k)^2 n\) for some constant \(c\) in what can be thought of as an extension of the BPT bound to codes on hyperbolic geometries [8], meaning that color codes with finite rate can only achieve an asymptotic minimum distance that is logarithmic in \(n\).

Transversal and Permutation-Based Gates

CNOT gate because the code is CSS.Hadamard gates for any qubit geometry which yields a self-dual CSS code.Certain triangular 2D color codes on suitably chosen lattices admit transversal implementations of the full Clifford group, including \(H\), \(S^\dagger\), and \(CNOT\), without selective addressing [1].

Gates

Magic-state distillation protocols [9].Non-Clifford gates can be implemented via code switching [9].

Decoding

Projection decoder of \(O(n^4)\) complexity [10], modified to account for syndrome errors [11].Exact minimum-weight decoding is \(NP\)-hard for 2D color codes, including for solely Pauli-\(Z\) noise [12,13].Chromöbius, an open-source implementation of the Möbius decoder, works for many 2D color codes [14].Concatenated MWPM decoder [15].Syndrome extraction circuits based on superdense coding and a middle-out strategy [14].

Cousins

  • Kitaev surface code— On closed surfaces, the 2D color code is equivalent to two decoupled copies of the 2D toric/surface code via a local constant-depth Clifford circuit [16–18] and has the same topological entanglement entropy [19]. For triangular patches with three differently colored boundaries, it is instead equivalent to a folded surface/toric code with two smooth and two rough boundaries [17]. The conversion process can be viewed as an ungauging [20–29] of certain symmetries. Conversely, the 2D color code can condense to form the 2D surface code in nine different ways, i.e., by adding two-body hopping terms along one of its three triangular directions to the stabilizer group and then taking the center of the resulting nonabelian group [30]. Both the surface and 2D color codes can be constructed from two distinct types of lattices, namely, 4-valent and 3-valent 3-colorable lattices, respectively [31].
  • 3D color code— Gauge fixing can be used to code switch between 2D and 3D color codes, thereby yielding fault-tolerant computation with constant time overhead using only local quantum operations [32]. There is a fault-tolerant measurement-free scheme for code switching between 2D and 3D color codes [33].
  • Linear binary code— As CSS codes, variants of the 2D color code are constructed out of self-dual classical codes on cubic planar graphs [34].
  • Hamiltonian-based code— 2D color code Hamiltonians can be simulated, with the help of perturbation theory, by two-dimensional weight-two (two-body) Hamiltonians with non-commuting terms [35].
  • 2D DA color code— At certain measurement rounds, the 2D DA color code realizes the instantaneous stabilizer group (ISG) of the 2D color code [36; Sec. III.A].
  • Floquet color code— The parent topological phase of the Floquet color code is the \(\mathbb{Z}_2\times\mathbb{Z}_2\) 2D color-code phase.
  • Ruby Floquet code— Each ISG of the color-code schedule is FDLQC-equivalent to the 2D color code, and a parent stabilizer code is FDLQC-equivalent to two copies of the 2D color code [37].
  • Floquet 3D surface code— A parent stabilizer code for the Floquet 3D surface code is FDQC-equivalent to a 3-foliated stack of 2D color codes [37].
  • X-cube Floquet code— A parent stabilizer code for the rewinding X-cube Floquet code is FDQC-equivalent to a 3-foliated stack of 2D color codes [37].
  • Majorana color code— The original Majorana color code is a fermionic analogue of a 2D color code in which one Majorana face operator doubles to matching \(X\)- and \(Z\)-type face checks, but the underlying cylinder graph need only be locally \(3\)-colorable and can support odd boundary logical operators [38]. Later realizations stack Majorana surface-code layers and replace stacked building blocks with small Majorana fermion codes [4,39–41].
  • Derby-Klassen (DK) code— The DK code on several tilings resembles the 2D color code with some vertex qubits removed [42].
  • Barbell quantum code— Barbell syndrome extraction adapts the superdense syndrome-extraction circuits originally developed to implement color codes on a square grid [14].
  • Directional tile code— The boundary-dominated routing overhead of directional tile codes is analogous to the routing overhead established for color-code circuits built from CXSWAP gates [43].
  • 2D subsystem color code— Gauge fixing relates 2D subsystem color codes to 2D color codes on the same lattice [6,44]; the original Union-Jack member is reproduced by the square-octagon-lattice construction of [45].
  • Three-fermion (3F) subsystem code— The 2D color code is equivalent to two decoupled copies of the 3F code in the sense that the same anyon theory describes the low-energy excitations of both codes [46][7; Appx. B].

Primary Hierarchy

Parents
The generalized color code for \(G=\mathbb{Z}_2\) reduces to the 2D color code.
Twist-defect color codes reduce to 2D color codes when there are no defects. See Ref. [47] for an alternative non-CSS extension of 2D color codes.
When treated as ground states of the code Hamiltonian, states of the color code on a torus geometry realize \(\mathbb{Z}_2\times\mathbb{Z}_2\) topological order [35], equivalent to the phase realized by two copies of the toric code (i.e., the surface code on a torus) via a local constant-depth Clifford circuit [17]. This process can be viewed as an ungauging [20–29] of certain symmetries.
2D color code
Children
The \(C_6\) code is a color code on a ladder with three rungs and periodic boundary conditions, (a.k.a. a triangular prism with no top and bottom faces) [48]. Purely \(Z\)- or \(X\)-type stabilizers lie on the three square faces of the ladder.
The \([[8,2,2]]\) projective-plane color code comes from a tiling of the projective plane with octahedral symmetry, whose checks are one octagon and four squares [5; Sec. V.A].

References

  1. [1]

    H. Bombin and M. A. Martin-Delgado, “Topological Quantum Distillation”, Physical Review Letters 97, (2006) arXiv:quant-ph/0605138 DOI

  2. [2]

    H. Bombin and M. A. Martin-Delgado, “Exact topological quantum order inD=3and beyond: Branyons and brane-net condensates”, Physical Review B 75, (2007) arXiv:cond-mat/0607736 DOI

  3. [3]

    A. J. Landahl, J. T. Anderson, and P. R. Rice, “Fault-tolerant quantum computing with color codes”, (2011) arXiv:1108.5738

  4. [4]

    D. Litinski and F. von Oppen, “Quantum computing with Majorana fermion codes”, Physical Review B 97, (2018) arXiv:1801.08143 DOI

  5. [5]

    C. Vuillot and N. P. Breuckmann, “Quantum Pin Codes”, IEEE Transactions on Information Theory 68, 5955 (2022) arXiv:1906.11394 DOI

  6. [6]

    H. Bombin, “Gauge Color Codes: Optimal Transversal Gates and Gauge Fixing in Topological Stabilizer Codes”, (2015) arXiv:1311.0879

  7. [7]

    M. S. Kesselring, F. Pastawski, J. Eisert, and B. J. Brown, “The boundaries and twist defects of the color code and their applications to topological quantum computation”, Quantum 2, 101 (2018) arXiv:1806.02820 DOI

  8. [8]

    N. Delfosse, “Tradeoffs for reliable quantum information storage in surface codes and color codes”, 2013 IEEE International Symposium on Information Theory 917 (2013) arXiv:1301.6588 DOI

  9. [9]

    A. M. Kubica, The ABCs of the Color Code: A Study of Topological Quantum Codes as Toy Models for Fault-Tolerant Quantum Computation and Quantum Phases Of Matter, California Institute of Technology, 2018 DOI

  10. [10]

    N. Delfosse, “Decoding color codes by projection onto surface codes”, Physical Review A 89, (2014) arXiv:1308.6207 DOI

  11. [11]

    A. M. Stephens, “Efficient fault-tolerant decoding of topological color codes”, (2014) arXiv:1402.3037

  12. [12]

    M. Walters and M. L. Turner, “Minimum Weight Decoding in the Colour Code is NP-hard”, (2026) arXiv:2603.04234

  13. [13]

    S. Gu, L. Wang, and A. Kubica, “The color code, the surface code, and the transversal CNOT: NP-hardness of minimum-weight decoding”, (2026) arXiv:2603.22064

  14. [14]

    C. Gidney and C. Jones, “New circuits and an open source decoder for the color code”, (2023) arXiv:2312.08813

  15. [15]

    S.-H. Lee, A. Li, and S. D. Bartlett, “Color code decoder with improved scaling for correcting circuit-level noise”, Quantum 9, 1609 (2025) arXiv:2404.07482 DOI

  16. [16]

    B. Yoshida, “Classification of quantum phases and topology of logical operators in an exactly solved model of quantum codes”, Annals of Physics 326, 15 (2011) arXiv:1007.4601 DOI

  17. [17]

    A. Kubica, B. Yoshida, and F. Pastawski, “Unfolding the color code”, New Journal of Physics 17, 083026 (2015) arXiv:1503.02065 DOI

  18. [18]

    A. B. Aloshious, A. N. Bhagoji, and P. K. Sarvepalli, “On the Local Equivalence of 2D Color Codes and Surface Codes with Applications”, (2018) arXiv:1804.00866

  19. [19]

    M. Kargarian, “Entanglement properties of topological color codes”, Physical Review A 78, (2008) arXiv:0809.4276 DOI

  20. [20]

    M. Levin and Z.-C. Gu, “Braiding statistics approach to symmetry-protected topological phases”, Physical Review B 86, (2012) arXiv:1202.3120 DOI

  21. [21]

    J. Haegeman, K. Van Acoleyen, N. Schuch, J. I. Cirac, and F. Verstraete, “Gauging Quantum States: From Global to Local Symmetries in Many-Body Systems”, Physical Review X 5, (2015) arXiv:1407.1025 DOI

  22. [22]

    S. Vijay, J. Haah, and L. Fu, “Fracton topological order, generalized lattice gauge theory, and duality”, Physical Review B 94, (2016) arXiv:1603.04442 DOI

  23. [23]

    D. J. Williamson, “Fractal symmetries: Ungauging the cubic code”, Physical Review B 94, (2016) arXiv:1603.05182 DOI

  24. [24]

    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

  25. [25]

    A. Kubica and B. Yoshida, “Ungauging quantum error-correcting codes”, (2018) arXiv:1805.01836

  26. [26]

    W. Shirley, K. Slagle, and X. Chen, “Foliated fracton order from gauging subsystem symmetries”, SciPost Physics 6, (2019) arXiv:1806.08679 DOI

  27. [27]

    K. Dolev, V. Calvera, S. S. Cree, and D. J. Williamson, “Gauging the bulk: generalized gauging maps and holographic codes”, Journal of High Energy Physics 2022, (2022) arXiv:2108.11402 DOI

  28. [28]

    T. Rakovszky and V. Khemani, “The Physics of (good) LDPC Codes I. Gauging and dualities”, (2023) arXiv:2310.16032

  29. [29]

    D. J. Williamson and T. J. Yoder, “Low-overhead fault-tolerant quantum computation by gauging logical operators”, Nature Physics 22, 598 (2026) arXiv:2410.02213 DOI

  30. [30]

    M. S. Kesselring, J. C. Magdalena de la Fuente, F. Thomsen, J. Eisert, S. D. Bartlett, and B. J. Brown, “Anyon Condensation and the Color Code”, PRX Quantum 5, (2024) arXiv:2212.00042 DOI

  31. [31]

    J. T. Anderson, “Homological Stabilizer Codes”, (2011) arXiv:1107.3502

  32. [32]

    H. Bombin, “Dimensional Jump in Quantum Error Correction”, (2016) arXiv:1412.5079

  33. [33]

    F. Butt, D. F. Locher, K. Brechtelsbauer, H. P. Büchler, and M. Müller, “Measurement-free, scalable and fault-tolerant universal quantum computing”, (2024) arXiv:2410.13568

  34. [34]

    H. Oral, “Constructing self-dual codes using graphs”, Journal of Combinatorial Theory, Series B 52, 250 (1991) DOI

  35. [35]

    M. Kargarian, H. Bombin, and M. A. Martin-Delgado, “Topological color codes and two-body quantum lattice Hamiltonians”, New Journal of Physics 12, 025018 (2010) arXiv:0906.4127 DOI

  36. [36]

    M. Davydova, N. Tantivasadakarn, S. Balasubramanian, and D. Aasen, “Quantum computation from dynamic automorphism codes”, Quantum 8, 1448 (2024) arXiv:2307.10353 DOI

  37. [37]

    A. Dua, N. Tantivasadakarn, J. Sullivan, and T. D. Ellison, “Engineering 3D Floquet Codes by Rewinding”, PRX Quantum 5, (2024) arXiv:2307.13668 DOI

  38. [38]

    S. Bravyi, B. M. Terhal, and B. Leemhuis, “Majorana fermion codes”, New Journal of Physics 12, 083039 (2010) arXiv:1004.3791 DOI

  39. [39]

    M. B. Hastings, “Small Majorana Fermion Codes”, (2017) arXiv:1703.00612

  40. [40]

    D. Litinski, M. S. Kesselring, J. Eisert, and F. von Oppen, “Combining Topological Hardware and Topological Software: Color-Code Quantum Computing with Topological Superconductor Networks”, Physical Review X 7, (2017) arXiv:1704.01589 DOI

  41. [41]

    D. Litinski and F. von Oppen, “Braiding by Majorana tracking and long-range CNOT gates with color codes”, Physical Review B 96, (2017) arXiv:1708.05012 DOI

  42. [42]

    C. Derby, “Compact fermion to qubit mappings for quantum simulation”, PhD thesis, UCL (University College London), 2023.

  43. [43]

    S. Yoshida, C. Gidney, M. McEwen, and A. Zalcman, “Low Depth Color Code Circuits with CXSWAP gate”, (2025) arXiv:2510.00370

  44. [44]

    H. Bombin, “Topological subsystem codes”, Physical Review A 81, (2010) arXiv:0908.4246 DOI

  45. [45]

    M. Suchara, S. Bravyi, and B. Terhal, “Constructions and noise threshold of topological subsystem codes”, Journal of Physics A: Mathematical and Theoretical 44, 155301 (2011) arXiv:1012.0425 DOI

  46. [46]

    Z. Wang, private communication, 2017

  47. [47]

    P. Padmanabhan, A. Chowdhury, F. Sugino, M. G. Majumdar, and K. K. Sabapathy, “Non-CSS color codes on 2D lattices : Models and Topological Properties”, (2022) arXiv:2112.13617

  48. [48]

    V. V. Albert, private communication, 2025

Page edit log

Your contribution is welcome!

on github.com (edit & pull request)

— see instructions

Zoo Code ID: 2d_color

Cite as:
“2D color code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/2d_color, arXiv:2606.11484
BibTeX:
@incollection{eczoo_2d_color,
title={2D color 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/2d_color}
}
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/2d_color

Cite as:

“2D color code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/2d_color, arXiv:2606.11484

Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/quantum/qubits/stabilizer/topological/color/2d_color/2d_color.yml.