Skip to content

Menu

WorksPhysics and Astronomy

High-rate low-distance color codes

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_y7rr2rqy. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Experimental implementations of two-dimensional color codes encoding a single logical qubit have surpassed the fidelity of physical qubits. A natural next step is to investigate higher-rate codes that encode multiple logical qubits. Here we propose small, high-rate 2D color codes for this purpose. We design distance-33 codes with encoding rates up to 1/31/3 and distance-44 codes with encoding rates up to 1/41/4. We prove that these rates are optimal for color codes with only color boundaries on surfaces with non-negative Euler characteristic. We benchmark the codes by simulating Steane-style error correction with real-time feedback and no post-selection in a linear trapped-ion chain model with all-to-all connectivity. The two best-performing codes have parameters [[20,4,4]][[20,4,4]] and [[16,4,4]][[16,4,4]] and achieve break-even at two-qubit gate infidelities of 0.22%0.22\% and 0.26%0.26\%, respectively. These results match the performance of Shor-style error correction with bivariate bicycle codes that use weight-55 measurements.

Code availability:

https://github.com/peter-janderks/small_color_codes

Peter-Jan H. S. Derks: [email protected]

Introduction

In efforts to demonstrate quantum advantage, a major milestone has been achieved when state-of-the-art quantum processors executed random-circuit-sampling experiments at sizes beyond efficient classical simulation [1, 2]. Due to decoherence and the fact that typical two-qubit gate error rates remain around 10−310^{-3} per gate [3, 4], claims of practical utility remain limited and are actively debated [5, 6]. To reduce the error rates and achieve fault-tolerant computation, we implement quantum error correction (QEC). QEC has been realized on several platforms, including superconducting circuits [3, 7, 9] [8], neutral-atom arrays [10, 11, 12], and trapped ions [13, 14, 15, 16]. Two-dimensional color codes have been implemented on all three [10, 17, 18], and the triangular 6.6.6 color code has been used to achieve lower-than-physical logical error rates with trapped ions [18, 19, 20]. A next step towards a useful quantum computer is to demonstrate similar “break-even” results for larger systems that are more efficient in terms of qubit overhead, i.e., encode as many logical qubits as possible.

Current devices on these platforms operate tens to hundreds of physical qubits, enough to implement codes that encode more than one logical qubit. This motivates the search for small codes with a high encoding rate. The planar codes that we construct have geometrically local stabilizers in two dimensions and are therefore compatible with planar architectures such as superconducting circuits, whereas the codes with periodic boundaries require reconfigurable connectivity, as available in neutral-atom arrays and trapped ions.

To benchmark the codes, we need a concrete circuit-level noise model, and we choose linear chains of trapped ions as a case study. Linear ion traps can now execute quantum circuits on tens of qubits [21], and other trapped-ion architectures, such as segmented ion-shuttling traps, have demonstrated systems with substantially more physical qubits [22]. The constraints of linear ion traps are captured by the so-called ion chain model [23], in which bivariate bicycle codes have already been benchmarked, so that our results can be compared with theirs directly.

In this work, we construct small, high-rate 2D color codes and, as a case study, design and benchmark a QEC memory protocol for the linear ion chain model. Our work consists of two parts: (1) constructing codes, which is independent of the platform, and (2) designing circuits to perform error correction, which we tailor to the ion chain model. We summarize the main results in Figure 1.

Figure 1. The break-even two-qubit gate infidelity of distance-3 and distance-4 two-dimensional color codes. Break-even is defined as the point where the logical error rate equals the physical error rate. Here, the logical error rate is the probability per logical qubit that a logical error occurs during a single quantum error correction cycle. The physical error rate refers to the probability pp with which errors are inserted in the ion chain noise model (see Table 1). The x-axis shows the total number of qubits used in the quantum error correction cycle. Plots showing the full logical error-rate curves are given in Figure 11.

Our proposal centers on using small, high-rate 2D color codes. The Bravyi-Poulin-Terhal bound implies that the encoding rate of 2D color codes vanishes as the code distance increases, i.e., k/n→0k/n \to0 for large dd [24]. However, although 2D color codes have been studied extensively over the past 20 years, the optimal encoding for a given distance is not known. As an initial step toward characterizing the optimal encoding rate of two-dimensional color codes, we focus on codes with distances 3 and 4. We show that, for color codes with only color boundaries on surfaces with non-negative Euler characteristic χ\chi, the optimal encoding rate is 1/3 for distance 3 and 1/4 for distance 4; on surfaces with χ<0\chi< 0 these rates can be exceeded (see Appendix F). We also give rate bounds for codes with only Pauli boundaries; codes with mixed color and Pauli boundaries are not covered by these results. Motivated by these results, we construct small codes that achieve 1/3 and 1/4 rates. For distance 3, the smallest code we give with 1/3 rate is an [18, 6, 3] code. For distance 4, the smallest code we give with 1/4 rate is a [16, 4, 4] code.

We propose error correction circuits based on Steane-style error correction [25] for syndrome measurement. Steane-style error correction suits the ion chain model because it requires high connectivity and uses few gates. Additionally, state preparation can take advantage of real-time feedback. Previous ion-trap experiments have shown that Steane-style error correction outperforms other protocols for error correction [26, 27]. For each code with nn qubits that we simulate, the proposed circuits require 2n+c2n+c qubits, where c≤6c \le6.

The rest of this work is structured as follows. In § 2 we review 2D color codes. In § 3 we derive a formula for the number of logical qubits in a 2D color code. In § 4 we derive the optimal encoding rate for distance-3 and distance-4 codes and construct codes that achieve these rates. In § 5 we describe how to implement Steane-style error correction circuits for the codes. In § 6 we describe our simulation setup. In Section 7 we present the results of our simulations. In Section 8 we conclude and discuss future directions.

Constructing 2D color codes

We start with a short review of 2D color codes. We refer the reader to Refs. [28, 29, 30] for a more detailed introduction. Constructing an instance of a 2D color code proceeds in the following steps:

  1. Define stabilizers on an infinite patch of a chosen color code lattice.

  2. Cut the patch and modify the stabilizers to introduce boundaries and corner defects.

  3. Optional: glue together boundaries.

We carry out the first step in Subsection 2.1 and postpone the second and third to Subsection 2.2 and Subsection 2.3.

Choosing a color code lattice

When constructing a 2D color code, we start with a color code lattice that tiles the Euclidean plane.

Definition 2.1 (Color code lattice). A color code lattice has vertices VV, edges EE, and faces FF that obey the following rules:

  • Every vertex v∈Vv \in V has degree three.

  • The faces f∈Ff \in F can be colored with {red (R),green (G),blue (B)}\{\textit{red }(R), \textit{green }(G), \textit{blue }(B)\} so that adjacent faces have different colors.

We assume that no two edges join the same pair of vertices, as is the case for the three uniform lattices below; this property must also be preserved by the cuts and gluings described later, except for the two edges of a two-qubit face at a Pauli boundary, as in Equation (4). There exist three different uniform color code lattices in two spatial dimensions [31]:

Figure 12.

To define stabilizers on a color code lattice, qubits are placed on each vertex. With each face of the lattice, we associate three Pauli stabilizers

SX(f)=⨂v∈∂0fXv,S_X(f) = \bigotimes_{v\in\partial_0 f} X_v,
SZ(f)=⨂v∈∂0fZv,S_Z(f) = \bigotimes_{v\in\partial_0 f} Z_v,
SY(f)=⨂v∈∂0fYv.(1)S_Y(f) = \bigotimes_{v\in\partial_0 f} Y_v. \tag*{(1)}

Here ∂0f\partial_0 f denotes the set of vertices incident to ff. For a Pauli P∈{X,Y,Z}P \in\{X,Y,Z\}, we write PvP_v for PP acting on the qubit at vertex vv. Since XvZv=−iYvX_v Z_v = -iY_v, we have SX(f)SZ(f)=(−1)∣∂0f∣/2SY(f)S_X(f)S_Z(f)=(-1)^{|\partial_0 f|/2}S_Y(f) for a face with an even number of qubits, so for faces with ∣∂0f∣≡2(mod4)|\partial_0 f| \equiv2 \pmod{4}, such as hexagons, the stabilizer is −SY(f)-S_Y(f). We therefore define SY(f)S_Y(f) only up to sign; the sign affects neither the number of logical qubits nor the distance. Note that the colors of the faces do not have any operational meaning and one can define codes without coloring the faces. However, as we will see later, the coloring is convenient when deriving properties of color codes.

Introducing boundaries and corner defects

Having fixed the stabilizers in the bulk, we now specify how to introduce boundaries and corner defects that give rise to logical qubits. The color code has six possible types of boundaries [28, 32]. Three of the six boundaries are so-called color boundaries.

Definition 2.2 (Color boundaries). A C1C_1 boundary is an edge incident to faces with colors C2C_2 and C3C_3, where {C1,C2,C3}={R,G,B}\{C_1,C_2,C_3\}=\{R,G,B\} and C1C_1, C2C_2, C3C_3 are all distinct.

Below is an example of a red boundary. The boundary is constructed by taking a patch of the color code lattice with weight-6 faces and slicing blue and green faces across the boundary. Faces outside the boundary are removed. Faces that have lost vertices now support lower weight stabilizers.

Figure 2.

When constructing a color boundary, the faces at the boundary must have an even number of vertices to ensure that the stabilizers commute. At a C1C_1 boundary, each boundary vertex is incident to two faces, of colors C2C_2 and C3C_3.

The remaining three boundaries are called Pauli boundaries.

Definition 2.3 (Pauli boundaries). A P1P_1 boundary is a boundary incident to faces supporting P1P_1 stabilizers, where P1∈{X,Y,Z}P_1 \in\{X,Y,Z\}.

Before giving an example of a Pauli boundary, we introduce Pauli labels for faces. The function lF:F→{{X},{Y},{Z},{X,Y,Z}}l_F:F\to\{\{X\},\{Y\},\{Z\},\{X,Y,Z\}\} assigns a set of Pauli labels to each face, and the Pauli labels determine which stabilizers are supported by the face. We depict faces with a single label by writing the label in the center of the face. For example, we depict a blue face supporting a weight-6 XX stabilizer:

Blue hexagonal face labelled X

Figure 3.

If a face has label {X,Y,Z}\{X,Y,Z\} we do not write any label in the center of the face. A Pauli boundary is constructed by slicing faces, relabeling stabilizers at the boundary, and removing faces outside the boundary. Below is an example of a ZZ boundary.

Figure 4.

At a Pauli boundary, each boundary vertex is incident to three faces of different colors. Faces with a single Pauli label occur only at Pauli boundaries, and each such face has exactly one boundary edge, as in Equation (4).

We have shown how to introduce a single boundary. To construct a color code with logical qubits, one needs to introduce boundaries of different types. In particular, introducing multiple boundary types creates corner defects.

Definition 2.4 (Corner defects). A corner defect is a vertex at which the boundary type changes. We label a corner defect φ\varphi by the labels of the two neighboring boundaries. There are three types of corner defects:

  1. Corner defects between P1P_1 and P2P_2 Pauli boundaries, which are labeled φ(P3)\varphi(P_3), P3∈{X,Y,Z}∖{P1,P2}P_3 \in\{X,Y,Z\}\setminus\{P_1,P_2\}.

  1. Corner defects between C1C_1 and C2C_2 colored boundaries, which are labeled φ(C3)\varphi(C_3), C3∈{R,G,B}∖{C1,C2}C_3 \in\{R,G,B\}\setminus\{C_1,C_2\}.

  1. Corner defects between PP-Pauli boundary and CC colored boundaries are labeled φ(PC)\varphi(PC).

Below is a code containing all three types of corner defects. The locations of corner defects are highlighted in purple.

Code containing three types of corner defects

Figure 5.

A φ(C)\varphi(C) corner defect lies on a single face, of color CC. A φ(PC)\varphi(PC) corner defect lies on two faces, of the two colors other than CC, one of which supports only PP. A φ(P3)\varphi(P_3) corner defect, between P1P_1 and P2P_2 boundaries, lies on exactly two faces, one supporting only P1P_1 and the other only P2P_2. Conversely, a vertex vv at a Pauli boundary that lies on only two faces is always a φ(P)\varphi(P) or a φ(PC)\varphi(PC) corner defect: its two faces cannot both support only the same Pauli PP, since PvP_v would then commute with every stabilizer and be a logical operator of weight one.

We denote the total numbers of corner defects of types φ(C)\varphi(C), φ(P)\varphi(P), and φ(PC)\varphi(PC) by nφ(C)n_{\varphi(C)}, nφ(P)n_{\varphi(P)}, and nφ(PC)n_{\varphi(PC)}, respectively, summed over all color and Pauli labels. We use these counts in § 3 to express the number of logical qubits in terms of the boundary structure and Euler characteristic.

Creating periodic boundaries

After introducing boundaries and corner defects, one can choose to identify qubits on different boundaries to create periodic boundaries. Identifying qubits on different boundaries means that the qubits are “merged” into a single qubit. We refer to this operation as gluing boundaries together. When gluing two boundaries together, one must ensure that the colors of the faces adjacent to the boundaries match and that the stabilizers commute. The glued code must again satisfy the rules of a color code lattice: every vertex has degree at most three, except for vertices at Pauli boundaries, which can have degree four, and the two faces on either side of an edge have different colors. In the color code shown in Equation (5) the two boundaries highlighted with a purple line can be glued together:

Figure 6.

The arrows indicate the orientation in which the boundaries are glued together. The two red weight-4 faces at the boundary become one weight-6 face after gluing. If every boundary is glued to another, no boundary remains, and the resulting manifold is called closed. Gluing boundaries also changes the topology of the underlying manifold. One quantity that captures this change is the Euler characteristic, χ\chi [33] of a manifold, which enters the expression for the number of logical qubits in § 3. For example, the planar region in Equation (5) has χ=1\chi= 1: topologically it is a disk with a single boundary circle, which the corner defects divide into several boundaries. Gluing two boundaries that share no corner defect produces either an annulus or a Möbius strip, depending on the relative orientation of the identified boundaries; both have χ=0\chi= 0. More generally, for an orientable manifold, the Euler characteristic is given by

χ=2k−2g−b,(2)\chi= 2k - 2g - b, \tag*{(2)}

where kk is the number of connected components, gg is the sum of the genera of all components, and bb is the total number of boundary components across all components. A note on terminology: the boundary of the manifold consists of closed curves, called boundary components, and corner defects can divide each of them into several color or Pauli boundaries.

Notation

If one follows the three steps described in the previous three sections, one obtains a color code for which we use the following notation:

Notation 2.5 (Instances of color codes). C=(V,E,F,lF)C = (V, E, F, l_F) denotes an instance of the 2D color code defined by:

  • the set of vertices VV, the set of edges EE, and the set of faces FF which define the graph associated to the code CC.

  • the labeling function lFl_F, which assigns to each face one of the Pauli label sets {X}\{X\}, {Y}\{Y\}, {Z}\{Z\} or {X,Y,Z}\{X,Y,Z\}.

The Euler characteristic χ\chi of the underlying manifold is determined by the graph structure via χ=∣V∣−∣E∣+∣F∣\chi= |V| - |E| + |F|. To each color code CC, we associate a pair of graphs (G1,G2)(G_1,G_2) via the map ϕ\phi

ϕ:C=(V,E,F,lF)↦(G1,G2),(3)\phi: C = (V,E,F,l_F) \mapsto(G_1,G_2), \tag*{(3)}

where the new faces, edges and vertices are given by

F(G1)=F,F(G_1) = F,
F(G2)={f∈F∣lF(f)={X,Y,Z}},F(G_2) = \{f \in F \mid l_F(f) = \{X,Y,Z\}\},
E(G1)=⋃f∈F(G1)∂f,E(G_1) = \bigcup_{f \in F(G_1)} \partial f,
E(G2)=⋃f∈F(G2)∂f,(4)E(G_2) = \bigcup_{f \in F(G_2)} \partial f, \tag*{(4)}
V(G1)=V(G2)=V.V(G_1) = V(G_2) = V.

We use ∣V(Gj)∣|V(G_j)|, ∣E(Gj)∣|E(G_j)|, and ∣F(Gj)∣|F(G_j)| to denote the numbers of vertices, edges, and faces in graph GjG_j, respectively, and ∣Vi(Gj)∣|V_i(G_j)| to denote the number of vertices with degree ii. G2G_2 includes only the faces of CC with XX, YY, and ZZ stabilizers. Below is a visualization of the map ϕ\phi.

Figure 10.

Number of logical qubits

In this section, we give an explicit equation for the number of encoded logical qubits in a code CC. In Ref. [34], it is shown that for color codes with nφ(C)n_{\varphi(C)} corner defects of type φ(C)\varphi(C) and no periodic boundaries, k=nφ(C)−2k = n_{\varphi(C)} - 2; the number of logical qubits encoded in color codes was also discussed in Ref. [35]. Here, we generalize these results to manifolds with different Euler characteristics χ\chi and with corner defects of all three types.

Theorem 3.1 (Number of logical qubits for a 2D color code). For a connected 2D color code defined on a manifold with Euler characteristic χ\chi, the number of logical qubits is given by

k=nφ(C)+nφ(P)+nφ(PC)2−2χ+δ,(5)k = n_{\varphi(C)} + n_{\varphi(P)} + \frac{n_{\varphi(PC)}}{2} - 2\chi+ \delta, \tag*{(5)}

where δ\delta counts the linear dependencies among the stabilizers. It depends only on the boundary types that occur:

δ={4if the manifold is closed,2if all boundaries are color boundaries of one color,2if all boundaries are Pauli boundaries of one type,1if exactly one color and one Pauli type occur,0otherwise.(6)\delta= \begin{cases} 4 & \text{if the manifold is closed},\\ 2 & \text{if all boundaries are color boundaries of one color},\\ 2 & \text{if all boundaries are Pauli boundaries of one type},\\ 1 & \text{if exactly one color and one Pauli type occur},\\ 0 & \text{otherwise}. \end{cases} \tag*{(6)}

In particular, δ=0\delta= 0 whenever there is a φ(C)\varphi(C) or φ(P)\varphi(P) corner defect, whereas φ(PC)\varphi(PC) corner defects are compatible with δ=1\delta= 1.

To prove this theorem, we first establish a lemma expressing the number of logical qubits kk in terms of the vertex degrees of G1G_1 and the number of faces that support a single Pauli stabilizer. We then use two observations and a second lemma to relate these quantities to the number of corner defects of each type.

Lemma 3.1 (Number of logical qubits). For a 2D color code CC defined on a manifold with Euler characteristic χ\chi, the number of logical qubits is given by

k=∣V2(G1)∣−∣V4(G1)∣+∣FP∣−2χ+δ,(7)k = |V_2(G_1)| - |V_4(G_1)| + |F_P| - 2\chi+ \delta, \tag*{(7)}

where FP=F(G1)\F(G2)F_P = F(G_1)\backslash F(G_2) is the set of faces that support a single Pauli stabilizer.

Proof. Our proof strategy is to relate the number of qubits to the number of vertices of G1G_1 and the number of stabilizers to the number of faces of G1G_1. Each face in F(G2)F(G_2) supports two independent stabilizers, SX(f)S_X(f) and SZ(f)S_Z(f), since SY(f)S_Y(f) is their product up to sign. Each face in FPF_P supports a single stabilizer. Not all of these stabilizers are necessarily independent; instead, the number of independent stabilizers is given by

r=∣F(G1)∣+∣F(G2)∣−δ=2∣F(G1)∣−∣FP∣−δ,(8)r = |F(G_1)| + |F(G_2)| - \delta= 2|F(G_1)| - |F_P| - \delta, \tag*{(8)}

where δ\delta counts the number of linear dependencies among the stabilizers. Therefore, we have

k=n−r=∣V(G1)∣−2∣F(G1)∣+∣FP∣+δ.(9)k = n - r = |V(G_1)| - 2|F(G_1)| + |F_P| + \delta. \tag*{(9)}

Now we will find an expression for the number of faces of G1G_1 in terms of the number of vertices of a certain degree. Since the faces of G1G_1 tile the manifold, Euler’s formula for graphs on surfaces

∣F∣=χ+∣E∣−∣V∣(10)|F| = \chi+ |E| - |V| \tag*{(10)}

relates the number of faces ∣F∣|F| to the Euler characteristic χ\chi, the number of edges ∣E∣|E|, and the number of vertices ∣V∣|V|. The handshake lemma relates the number of edges to the vertex degrees: for any finite undirected graph, we find

∣E∣=12∑v∈Vdeg⁡(v)(11)|E| = \frac{1}{2}\sum_{v\in V}\deg(v) \tag*{(11)}
=12∣V1∣+∣V2∣+32∣V3∣+2∣V4∣+⋯ .(12)= \frac{1}{2}|V_1| + |V_2| + \frac{3}{2}|V_3| + 2|V_4| + \cdots. \tag*{(12)}

We have written the sum out up to vertex degree 4 because in a color code the maximum vertex degree is 41. Every vertex of G1G_1 lies on a face and therefore has at least two incident edges, so ∣V0(G1)∣=∣V1(G1)∣=0|V_0(G_1)| = |V_1(G_1)| = 0. Inserting Equation (12) into Equation (10) gives

∣F(G1)∣=χ+12∣V3(G1)∣+∣V4(G1)∣.(13)|F(G_1)| = \chi+ \frac{1}{2}|V_3(G_1)| + |V_4(G_1)|. \tag*{(13)}

Plugging Equation (13) into Equation (9) completes the proof:

k=∣V(G1)∣−2∣F(G1)∣+∣FP∣+δ=∣V2(G1)∣+∣V3(G1)∣+∣V4(G1)∣−2χ−∣V3(G1)∣−2∣V4(G1)∣+∣FP∣+δ=∣V2(G1)∣−∣V4(G1)∣+∣FP∣−2χ+δ.(14)\begin{aligned} k &= |V(G_1)| - 2|F(G_1)| + |F_P| + \delta\\ &= |V_2(G_1)| + |V_3(G_1)| + |V_4(G_1)|\\ &\quad- 2\chi- |V_3(G_1)| - 2|V_4(G_1)| + |F_P| + \delta\\ &= |V_2(G_1)| - |V_4(G_1)| + |F_P| - 2\chi+ \delta. \tag*{(14)} \end{aligned}

□

Comparing Lemma 3.1 with Theorem 3.1, it remains to show two equalities: ∣V2(G1)∣=nφ(C)|V_2(G_1)| = n_{\varphi(C)}, which is Observation 3.2, and ∣FP∣−∣V4(G1)∣=nφ(P)+12nφ(PC)|F_P| - |V_4(G_1)| = n_{\varphi(P)} + \frac{1}{2}n_{\varphi(PC)}, which is Lemma 3.2, via Observation 3.3. Both equalities rest on the fact that the degree of a vertex follows from the number of faces it lies on. Around a vertex in the bulk, faces and edges alternate, so the vertex has as many incident edges as faces. Around a vertex at a boundary, faces and edges alternate between the two boundary edges, so the vertex has one more incident edge than faces.

Observation 3.2 (Degree-2 vertices and φ(C)\varphi(C) corner defects). The number of degree-2 vertices in G1G_1 equals the number of φ(C)\varphi(C) corner defects:

∣V2(G1)∣=nφ(C).(15)|V_2(G_1)| = n_{\varphi(C)}. \tag*{(15)}

Explanation. A vertex has degree two only if it lies at a boundary and on a single face. The only such vertices are the φ(C)\varphi(C) corner defects; every other boundary vertex lies on two or three faces.

Observation 3.3 (Degree-4 vertices and Pauli boundaries). The degree-4 vertices of G1G_1 are exactly the vertices at Pauli boundaries that are not corner defects.

Explanation. A vertex at a Pauli boundary that is not a corner defect lies on three faces and therefore has degree four. Every other vertex lies on three faces in the bulk or on at most two faces at a boundary, and therefore has degree at most three. For example, every boundary vertex of the ZZ boundary in Equation (4) has degree four.

Lemma 3.2 (Faces with a single Pauli label). The number of faces with a single Pauli label and the number of degree-4 vertices in G1G_1 satisfy

∣FP∣−∣V4(G1)∣=nφ(P)+12nφ(PC).(16)|F_P| - |V_4(G_1)| = n_{\varphi(P)} + \frac{1}{2}n_{\varphi(PC)}. \tag*{(16)}

Proof. First, we split the Pauli boundaries into segments. The boundary of the manifold consists of closed curves, one for each boundary component, and the corner defects cut these curves into pieces with a single boundary type. We call a piece of Pauli type a Pauli segment. There are two types of Pauli segments. A loop is a whole boundary component without corner defects, as in Equation (4). An arc runs between two corner defects; at each end, it meets either a Pauli boundary of a different type, at a φ(P)\varphi(P) corner defect, or a color boundary, at a φ(PC)\varphi(PC) corner defect. For example, the code in Equation (5) has three Pauli arcs: an XX arc from φ(XB)\varphi(XB) to φ(Y)\varphi(Y), a ZZ arc from φ(Y)\varphi(Y) to φ(ZR)\varphi(ZR), and a YY arc from φ(YR)\varphi(YR) to φ(YG)\varphi(YG).

Next, we count the faces and degree-4 vertices along a single Pauli segment. Each boundary edge of a Pauli segment of type PP belongs to a face that supports only PP, and each such face has exactly one boundary edge (Subsection 2.2). Hence, every face in FPF_P belongs to exactly one Pauli segment, and a segment with mm edges contains mm faces in FPF_P. An arc with mm edges has m−1m - 1 vertices that are not corner defects, and a loop with mm edges has mm vertices. By Observation 3.3, these vertices are exactly the degree-4 vertices of G1G_1 on the segment. Therefore, a segment with mm faces in FPF_P contains m−1m - 1 degree-4 vertices if it is an arc and mm if it is a loop.

Finally, we sum over all Pauli segments. On an arc, the number of faces in FPF_P exceeds the number of degree-4 vertices by one; on a loop, the two numbers are equal. Every face in FPF_P and every degree-4 vertex lies on exactly one Pauli segment, so summing over all segments gives that ∣FP∣−∣V4(G1)∣|F_P| - |V_4(G_1)| equals the number of arcs. Each arc has two ends, a φ(P)\varphi(P) corner defect is the end of two arcs, and a φ(PC)\varphi(PC) corner defect is the end of one arc. Therefore, the number of arcs is nφ(P)+12nφ(PC)n_{\varphi(P)} + \frac{1}{2}n_{\varphi(PC)}.

Proof of Theorem 3.1. By Lemma 3.1, Observation 3.2, and Lemma 3.2,

k=∣V2(G1)∣+(∣FP∣−∣V4(G1)∣)−2χ+δ=nφ(C)+nφ(P)+12nφ(PC)−2χ+δ.\begin{aligned} k &= |V_2(G_1)| + \left(|F_P| - |V_4(G_1)|\right) - 2\chi+ \delta\\ &= n_{\varphi(C)} + n_{\varphi(P)} + \frac{1}{2}n_{\varphi(PC)} - 2\chi+ \delta. \end{aligned}

The values of δ\delta in Equation (12) are derived in Appendix A.

Code constructions

In this section, we present several novel color code constructions and use Theorem 3.1 to give bounds on the optimal encoding rates of 2D color codes with exclusively color boundaries and of 2D color codes with exclusively Pauli boundaries.

The rate bounds all have the form k/n≤1/dk/n \le1/d. For k≤2k \le2, this follows from the quantum Singleton bound n≥k+2(d−1)n \ge k + 2(d - 1) [36] according to

kn≤kk+2(d−1)≤22+2(d−1)=1d.(17)\frac{k}{n} \le\frac{k}{k + 2(d - 1)} \le\frac{2}{2 + 2(d - 1)} = \frac{1}{d}. \tag*{(17)}

For k≥3k \ge3, the proofs use the following lemma about faces that contain two corner defects.

Lemma 4.1 (Spacing of corner defects). Consider a connected 2D color code with distance d≥3d \ge3 and exclusively color boundaries or exclusively Pauli boundaries. If some face contains two corner defects, then these are the only corner defects of the code, and k=2−2χk = 2 - 2\chi. In particular, if χ≥0\chi\ge0 and k≥3k \ge3, then each face contains at most one corner defect.

Proof. By Lemma B.1, the two corner defects support a weight-two operator that commutes with every stabilizer. Since d≥3d \ge3, this operator is a stabilizer up to sign, so by the same lemma the two corner defects are the only ones. They are of type φ(C)\varphi(C) or φ(P)\varphi(P), so Theorem 3.1 gives δ=0\delta= 0 and k=2−2χk = 2 - 2\chi.

The increment of kk in each code family below is set by the smallest lattice extension that preserves the family’s boundary structure; this is why some families step in kk by 1 or 2, while others step by 3, 4, or 6.

Distance 3 codes

An overview of the code parameters for distance 3 color codes is shown in Figure 2.

We first note that distance-3 color codes on closed manifolds do not exist.

Lemma 4.2 (Color codes on closed manifolds have even distance). A color code on a closed manifold has even code distance.

Proof. On a closed manifold every vertex has degree three, and any two of its three incident faces share an edge, so the three faces have pairwise different colors. Hence every qubit lies on exactly one red face, and with FRF_R the set of red faces,

∏f∈FRSX(f)=X⊗n,∏f∈FRSZ(f)=Z⊗n\prod_{f \in F_R} S_X(f) = X^{\otimes n}, \qquad\prod_{f \in F_R} S_Z(f) = Z^{\otimes n}

are stabilizers. A ZZ-type logical operator commutes with X⊗nX^{\otimes n} and therefore has even weight; likewise, an XX-type logical operator commutes with Z⊗nZ^{\otimes n} and has even weight. Since the code is CSS, every nontrivial logical operator X(a)Z(b)X(a)Z(b) has a nontrivial XX-type part X(a)X(a) or ZZ-type part Z(b)Z(b) of no larger weight, so the minimum weight is attained by a pure XX- or ZZ-type logical operator and is even.

Previously known codes

Here we present known distance-3 code constructions. For each code we cite the publication that, to the best of our knowledge, first introduced the code. The following codes are the smallest codes for k∈{1,2,4}k \in\{1,2,4\}.

Figure 24.

The leftmost code is the [7,1,3][7,1,3] Steane code [25]. The middle and rightmost codes are the [12,2,3][12,2,3] and [16,4,3][16,4,3] codes, respectively [37]. The smallest distance-3 color code with Pauli boundaries is the [9,1,3][9,1,3] code below [28].

Figure 25.

Figure 2 (PDF p. 8). Overview of distance-3 codes. Click the code parameters below to jump to their definitions: [7, 1, 3], [12, 2, 3], [16, 4, 3], [9, 1, 3], [27, 7, 3], [3k + 8, k, 3], [3k, k, 3], [5k, k, 3], [5k + 2, k, 3].

Codes with color boundaries

Theorem 4.1 (Optimal rate for distance-3 codes with color boundaries). The optimal encoding rate of a connected 2D error-correcting color code with exclusively color boundaries on a surface with Euler characteristic χ≥0\chi\ge0 is 1/31/3.

Proof. By Lemma 4.2, distance-3 color codes on closed manifolds do not exist, so δ≤2\delta\le2. As explained before Lemma 4.1, we may assume k≥3k \ge3. Since nφ(P)=nφ(PC)=0n_{\varphi}(P) = n_{\varphi}(P^{C}) = 0, Theorem 3.1 gives k=nφ(C)−2χ+δk = n_{\varphi}(C) - 2\chi+ \delta, so nφ(C)>0n_{\varphi}(C) > 0, as otherwise k≤2k \le2. Since there is a φ(C)\varphi(C) corner defect, δ=0\delta= 0 by Theorem 3.1, and k=nφ(C)−2χk = n_{\varphi}(C) - 2\chi. By Lemma 4.1, each face contains at most one corner defect, so at least nφ(C)n_{\varphi}(C) faces contain one. Each face supports the two stabilizer generators SX(f)S_{X}(f) and SZ(f)S_{Z}(f), and all generators are independent since δ=0\delta= 0, so r=2∣F∣≥2nφ(C)r = 2|F| \ge2n_{\varphi}(C). Therefore, the encoding rate satisfies

kn=kr+k≤nφ(C)−2χ3nφ(C)−2χ(18)\frac{k}{n} = \frac{k}{r+k} \le\frac{n_{\varphi}(C)-2\chi}{3n_{\varphi}(C)-2\chi} \tag*{(18)}

which is at most 1/31/3 for χ≥0\chi\ge0.

Appendix F gives codes with χ<0\chi< 0 whose rate exceeds 1/31/3, so the assumption χ≥0\chi\ge0 cannot be dropped. We prove that this upper bound is tight by explicitly constructing a family of codes that achieves the optimal encoding rate of 1/31/3. Specifically, the hexagonal lattice supports a family of codes with parameters [ ⁣[3k,k,3] ⁣][\![3k,k,3]\!] for k∈{6,9,…}k \in\{6,9,\ldots\}. The first two instances of this optimal family are:

First two instances of the optimal family

Figure 27.

The purple lines with arrows indicate boundary edges that are to be identified (glued together) following the orientation shown by the arrows.

Codes with Pauli boundaries

For planar implementations, we construct a family of codes that asymptotically achieves the 1/31/3 bound. This family has parameters [ ⁣[3k+8,k,3] ⁣][\![3k+8,k,3]\!] for k∈{2,3,4,…}k \in\{2,3,4,\ldots\}. The first four instances are:

Figure 28.

While the [ ⁣[3k+8,k,3] ⁣][\![3k+8,k,3]\!] family asymptotically achieves the optimal rate, for small values of kk, there exist planar codes with higher finite-size rates. Examples include the [ ⁣[16,4,3] ⁣][\![16,4,3]\!] code from Ref. [37] and our newly discovered [ ⁣[27,7,3] ⁣][\![27,7,3]\!] code below,

Figure 29.

Codes with Pauli boundaries

To bound the encoding rate of distance-3 color codes with exclusively Pauli boundaries, we need the following lemma.

Lemma 4.3 (Lower bound on number of stabilizers). For a connected 2D color code with exclusively Pauli boundaries in which each face contains at most one corner defect, the number of independent stabilizers rr satisfies

r≥2nφ(P).(19)r \ge2n_{\varphi}(P). \tag*{(19)}

Proof. If nφ(P)=0n_{\varphi}(P) = 0, there is nothing to show; otherwise, δ=0\delta= 0 by Theorem 3.1, so the face stabilizers are independent. Each φ(P)\varphi(P) corner defect lies on two faces that each support a single Pauli stabilizer, and different corner defects lie on different faces. Therefore, r≥2nφ(P)r \ge2n_{\varphi}(P). □

Theorem 4.2 (Rate bound for distance-3 codes with exclusively Pauli boundaries). For a connected 2D error-correcting color code with exclusively Pauli boundaries on a surface with Euler characteristic χ≥0\chi\ge0, k/n≤1/3k/n \le1/3.

Proof. The proof follows the same structure as Theorem 4.1. By Lemma 4.2, distance-3 color codes on closed manifolds do not exist, so δ≤2\delta\le2. As explained before Lemma 4.1, we may assume k≥3k \ge3. Since nφ(C)=nφ(PC)=0n_{\varphi}(C) = n_{\varphi}(PC) = 0, Theorem 3.1 gives k=nφ(P)−2χ+δk = n_{\varphi}(P) - 2\chi+ \delta, so nφ(P)>0n_{\varphi}(P) > 0, as otherwise k≤2k \le2. Since there is a φ(P)\varphi(P) corner defect, δ=0\delta= 0 by Theorem 3.1, and k≤nφ(P)k \le n_{\varphi}(P). By Lemma 4.1, each face contains at most one corner defect, so Lemma 4.3 gives r≥2nφ(P)r \ge2n_{\varphi}(P), and k/n=k/(r+k)≤nφ(P)/(3nφ(P))=1/3k/n = k/(r + k) \le n_{\varphi}(P)/(3n_{\varphi}(P)) = 1/3.

We do not know whether this bound is attained. For k≥3k \ge3, equality in the proof requires χ=0\chi= 0 and r=2nφ(P)r = 2n_{\varphi}(P), so every face would have to support a single Pauli and contain a corner defect; none of our constructions has this form.

The highest encoding rate for a periodic code with Pauli boundaries we have found is 1/51/5. The smallest code achieving this rate is the ⟦30,6,3⟧\llbracket30, 6, 3\rrbracket code shown below.

Figure 31.

The ⟦30,6,3⟧\llbracket30, 6, 3\rrbracket code is the smallest code of a family of periodic codes with parameters ⟦30j,6j,3⟧\llbracket30j, 6j, 3\rrbracket, j∈{1,2,3,…}j \in\{1, 2, 3, \ldots\}.

For planar codes with mixed boundaries, we construct a family with parameters ⟦5k+2,k,3⟧\llbracket5k + 2, k, 3\rrbracket, k∈{2,4,6,…}k \in\{2, 4, 6, \ldots\}, that asymptotically achieves an encoding rate of 1/51/5. The first two instances of this family are:

Figure 32.

Distance-4 codes

Figure 3 shows an overview of the code parameters for distance-4 color codes.

Codes from previous work

Here we present known distance-4 code constructions. Ref. [38] introduced the ⟦16,2,4⟧\llbracket16, 2, 4\rrbracket code:

Figure 3 (PDF p. 10). Overview of distance-4 codes. Click the code parameters below to jump to their definitions: ⟦4k,k,4⟧\llbracket4k, k, 4\rrbracket, ⟦5k,k,4⟧\llbracket5k, k, 4\rrbracket, ⟦5k,k,4⟧\llbracket5k, k, 4\rrbracket, ⟦4k+8,k,4⟧\llbracket4k + 8, k, 4\rrbracket, ⟦14,1,4⟧\llbracket14, 1, 4\rrbracket, ⟦18,4,4⟧\llbracket18, 4, 4\rrbracket, ⟦5k+12,k,4⟧\llbracket5k + 12, k, 4\rrbracket.

Figure 33.

A ⟦16,4,4⟧\llbracket16, 4, 4\rrbracket color code is shown in Fig. 17 of Ref. [37], and the parity check matrix of a ⟦16,4,4⟧\llbracket16, 4, 4\rrbracket code appeared in Ref. [39]. The stabilizers were drawn as the “k=4k = 4 color code with a twist” in Ref. [38]. In Equation (42), we show that the ⟦16,4,4⟧\llbracket16, 4, 4\rrbracket code is planar on an annulus with periodic boundary conditions in one direction.

Ref. [40] introduced the ⟦18,4,4⟧\llbracket18, 4, 4\rrbracket toric color code.

Figure 34.

Ref. [28] introduced the ⟦16,1,4⟧\llbracket16, 1, 4\rrbracket code with Pauli boundaries:

Color-boundary code construction

Figure 35.

Codes with color boundaries

For the distance-4 bound below, we consider codes with exclusively color boundaries. To rule out distance 4, we use the following observation.

Observation 4.3 (Weight-three logical operators). If a set TT of three qubits meets every face in an even number of vertices, then d≤3d \le3.

Explanation. Let XT=∏v∈TXvX_T = \prod_{v\in T} X_v and ZT=∏v∈TZvZ_T = \prod_{v\in T} Z_v. Even overlap with every face means both commute with every stabilizer. Since ∣T∣|T| is odd, they anticommute with each other, so neither is a stabilizer. They are therefore nontrivial logical operators of weight three.

We first establish a lower bound on the number of physical qubits.

Lemma 4.4 (Lower bound on the number of qubits). For a distance-4 color code with exclusively color boundaries in which each face contains at most one corner defect, the number of physical qubits satisfies

n≥4nφ(C).(20)n \ge4n_{\varphi}(C). \tag*{(20)}

Proof. Let DD be the set of faces hosting color-corner defects. By assumption, each face hosts at most one such defect, so ∣D∣=nφ(C)|D| = n_{\varphi}(C), and we must show n≥4∣D∣n \ge4|D|. If the faces in DD were pairwise disjoint, this would follow immediately, since each has at least four vertices. However, faces may share vertices. Let m(v)m(v) be the number of faces in DD that contain vertex vv, and define

W(f)=∑v∈∂0f1m(v).(21)W(f) = \sum_{v\in\partial_0 f} \frac{1}{m(v)}. \tag*{(21)}

Each vertex then contributes exactly one in total, so

∑f∈DW(f)=∣⋃f∈D∂0f∣≤n.(22)\sum_{f\in D} W(f) = \left|\bigcup_{f\in D}\partial_0 f\right| \le n. \tag*{(22)}

It therefore suffices to show that W(f)≥4W(f) \ge4 for every f∈Df \in D.

First, two faces in DD cannot share a boundary vertex. Suppose f,g∈Df,g\in D host corners uu and vv and share a boundary vertex ww. Then uu is incident only to ff, vv only to gg, and ww to exactly ff and gg. Thus T={u,v,w}T=\{u,v,w\} meets ff and gg twice and every other face zero times, contradicting d=4d=4 by Observation 4.3.

Now let f∈Df\in D host the corner uu, and let u−u_- and u+u_+ be the neighbors of uu on ff. Both edges at uu are boundary edges, so u±u_\pm lie on the boundary. Since ff hosts only one corner defect, neither is a corner, so each is incident to ff and exactly one other face g±g_\pm. Since g±g_\pm shares the boundary vertex u±u_\pm with ff, we have g±∉Dg_\pm\notin D, and hence m(u)=m(u−)=m(u+)=1m(u)=m(u_-)=m(u_+)=1. It remains to bound the contribution of the other vertices of ff. Since ff contains uu, u−u_-, and u+u_+, and every face has an even number of vertices, either ∣∂0f∣=4|\partial_0 f|=4 or ∣∂0f∣≥6|\partial_0 f|\ge6; we treat these two cases separately.

Case ∣∂0f∣=4|\partial_0 f|=4. Let xx be the remaining vertex. The edges u−xu_-x and xu+xu_+ lie on g−g_- and g+g_+, so every face incident to xx is among ff, g−g_-, and g+g_+. Hence m(x)=1m(x)=1 and W(f)=4W(f)=4.

Case ∣∂0f∣≥6|\partial_0 f|\ge6. Every vertex of ff other than uu and u±u_\pm is incident to at most three faces, so m(v)≤3m(v)\le3 and

W(f)≥3+∣∂0f∣−33=2+∣∂0f∣3≥4.(23)W(f)\ge3+\frac{|\partial_0 f|-3}{3}=2+\frac{|\partial_0 f|}{3}\ge4. \tag*{(23)}

Combining these bounds gives

n≥∑f∈DW(f)≥4∣D∣=4nφ(C).(24)n\ge\sum_{f\in D}W(f)\ge4|D|=4n_{\varphi}(C). \tag*{(24)}

Theorem 4.4 (Optimal rate for distance-4 codes with color boundaries). Among connected distance-4 color codes with nonempty, exclusively color boundaries and Euler characteristic χ≥0\chi\ge0, the optimal encoding rate is 1/41/4.

Proof. As explained before Lemma 4.1, we may assume k≥3k\ge3. With only color boundaries, Theorem 3.1 gives k=nφ(C)−2χ+δk=n_{\varphi}(C)-2\chi+\delta. If nφ(C)=0n_{\varphi}(C)=0, then k≤δ≤2k\le\delta\le2, since χ≥0\chi\ge0 and the manifold has a boundary. So there is a φ(C)\varphi(C) corner defect, δ=0\delta=0 by Theorem 3.1, and k≤nφ(C)k\le n_{\varphi}(C). By Lemma 4.1, each face contains at most one corner defect, so Lemma 4.4 gives n≥4nφ(C)n\ge4n_{\varphi}(C). Hence

kn≤nφ(C)4nφ(C)=14.(25)\frac{k}{n}\le\frac{n_{\varphi}(C)}{4n_{\varphi}(C)}=\frac{1}{4}. \tag*{(25)}

We prove that this upper bound is tight by explicitly constructing a family of codes that achieves the optimal encoding rate of 1/41/4. This family has χ=0\chi= 0. The first two instances, with parameters ⟦4k,k,4⟧\llbracket4k,k,4\rrbracket for k∈{4,8,…}k \in\{4,8,\ldots\}, are:

Figure 42.

For codes as in Theorem 4.4 but with arbitrary Euler characteristic, Lemma 4.4 gives2

kn≤14+−2χ+δn.(26)\frac{k}{n} \le\frac{1}{4}+\frac{-2\chi+\delta}{n}. \tag*{(26)}

The 1/41/4 bound does not extend to χ<0\chi< 0: Appendix F gives a ⟦32,14,4⟧\llbracket32,14,4\rrbracket code with exclusively color boundaries and χ=−6\chi=-6.

On the 6.6.66.6.6 lattice, the highest encoding rate we found is 1/51/5. The smallest two instances of ⟦5k,k,4⟧\llbracket5k,k,4\rrbracket, k∈{4,6,8,…}k \in\{4,6,8,\ldots\}, are:

Figure 44.

The ⟦16,2,4⟧\llbracket16,2,4\rrbracket code in Equation (33) is the smallest code of the planar version of the family of codes shown in Equation (42). This family has parameters ⟦4k+8,k,4⟧\llbracket4k+8,k,4\rrbracket, k∈{2,4,6,…}k \in\{2,4,6,\ldots\} and the second smallest code is:

Figure 45.

Codes with Pauli boundaries

The analysis of distance-4 codes with exclusively Pauli boundaries proceeds analogously to the distance-3 case, again starting with a lemma.

Lemma 4.5 (Lower bound on the number of stabilizers for distance 4). For a connected 2D color code with exclusively Pauli boundaries, distance d≥4d \ge4, and at least three corner defects, the number of independent stabilizers rr satisfies

r≥3nφ(P).(27)r \ge3n_{\varphi(P)}. \tag*{(27)}

The proof counts the faces along the boundary arcs from the proof of Lemma 3.2; arcs with only two edges are compensated by faces in F(G2)F(G_2), using a lemma that we prove in Appendix § 14.

Proof. All corner defects are of type φ(P)\varphi(P), so δ=0\delta=0 by Theorem 3.1, and r=∣FP∣+2∣F(G2)∣r=|F_P|+2|F(G_2)| by the proof of Lemma 3.1. By the proof of Lemma 3.2, the corner defects cut the boundary of the manifold into nφ(P)n_{\varphi(P)} arcs and possibly some loops, and an arc with mm edges contains mm faces in FPF_P, which lie on no other arc. No arc has only one edge: both endpoints of that edge would be corner defects on its face, and Lemma 4.1 excludes a face with two corner defects, since there are at least three. So every arc contains at least three faces in FPF_P, unless it has exactly two edges. If ss arcs have exactly two edges, then ∣FP∣≥3nφ(P)−s|F_P| \ge3n_{\varphi(P)}-s, and it suffices to show that s≤2∣F(G2)∣s \le2|F(G_2)|. We call the vertex of an arc with two edges that is not a corner defect its middle vertex; different arcs have different middle vertices. By Lemma C.1 in Appendix § 14, every middle vertex lies on a face in F(G2)F(G_2), and no face in F(G2)F(G_2) contains more than two middle vertices, so s≤2∣F(G2)∣s \le2|F(G_2)|.

Theorem 4.5 (Rate bound for distance-4 codes with exclusively Pauli boundaries). For a connected 2D distance-4 color code with nonempty, exclusively Pauli boundaries and Euler characteristic χ≥0\chi\ge0, the encoding rate satisfies k/n≤1/4k/n \le1/4.

Proof. As explained before Lemma 4.1, we may assume k≥3k \ge3. With only Pauli boundaries, Theorem 3.1 gives k=nφ(P)−2χ+δk=n_{\varphi(P)}-2\chi+\delta. If nφ(P)=0n_{\varphi(P)}=0, then k≤δ≤2k \le\delta\le2, since χ≥0\chi\ge0 and the manifold has a boundary. So there is a φ(P)\varphi(P) corner defect, δ=0\delta=0 by Theorem 3.1, and 3≤k≤nφ(P)3 \le k \le n_{\varphi(P)}.

:::`

Hence there are at least three corner defects, all of type φ(P)\varphi(P), and Lemma 4.5 gives r≥3nφ(P)r \ge3n_{\varphi(P)}. Therefore,

kn=kr+k≤nφ(P)4nφ(P)=14.(28)\frac{k}{n}=\frac{k}{r+k}\le\frac{n_{\varphi(P)}}{4n_{\varphi(P)}}=\frac{1}{4}. \tag*{(28)}

For codes as in Theorem 4.5 but with χ<0\chi< 0, the topology-dependent bound in Equation (26) also holds. Since k=nφ(P)−2χ+δk=n_{\varphi(P)}-2\chi+\delta by Theorem 3.1, it suffices to show that n≥4nφ(P)n\ge4n_{\varphi(P)}. If nφ(P)≥3n_{\varphi(P)}\ge3, Lemma 4.5 gives r≥3nφ(P)r\ge3n_{\varphi(P)}, so n=k+r≥4nφ(P)n=k+r\ge4n_{\varphi(P)}, since k≥nφ(P)k\ge n_{\varphi(P)}. Otherwise, k≥−2χ≥2k\ge-2\chi\ge2, and the quantum Singleton bound gives n≥k+6≥8≥4nφ(P)n\ge k+6\ge8\ge4n_{\varphi(P)}. We do not know whether the 1/41/4 bound for Pauli boundaries extends to χ<0\chi<0.

The only distance-4 code with exclusively Pauli boundaries that we give is the [ ⁣[16,1,4] ⁣][\![16,1,4]\!] code in Equation (35), with rate 1/161/16. We have not determined whether the 1/41/4 bound is tight. The highest encoding rate we have found for a periodic code with mixed boundaries is 1/51/5. Theorem 4.5 does not apply to these codes. Their parameters are [ ⁣[5k,k,4] ⁣][\![5k,k,4]\!], k∈{4,6,8,…}k\in\{4,6,8,\ldots\}. The first two instances are

Figure 48.

Planar codes with mixed boundaries that asymptotically achieve an encoding rate of 1/51/5 have parameters [ ⁣[5k+12,k,4] ⁣][\![5k+12,k,4]\!], k∈{2,4,6,…}k\in\{2,4,6,\ldots\}. The first two instances are

Figure 49.

Figure 50.

Circuit construction

Ion chain model

We now turn to designing circuits to implement QEC for the codes introduced above. We tailor our circuits to the ion chain model, introduced in Ref. [23]. The available gates and the noise model are summarized in Table 1. There are two main differences between the ion chain model and other architectures. First, in the ion chain model, neither single-qubit nor two-qubit unitaries can be applied in parallel: at most one unitary executes per time step. Second, in the ion chain model, two-qubit gates can be applied between any two pairs of qubits.

OperationErrorsProb.Parallel
2Q unitary2Q Pauli*ppNo
1Q unitary{X,Y,Z}\{X,Y,Z\}p10\frac{p}{10}No
MZbit-flipp10\frac{p}{10}Yes
prep. ∣0⟩\lvert0\rangle{X,Y,Z}\{X,Y,Z\}p10\frac{p}{10}Yes
idling{X,Y,Z}\{X,Y,Z\}p100\frac{p}{100}N/A
m. idling**{X,Y,Z}\{X,Y,Z\}3p10\frac{3p}{10}N/A

Table 1. Exact details of the noise model used for numerical simulations. The leftmost column contains all types of operations that are applied in the circuits. The second column lists which errors can occur after a gate. If multiple errors are given, one is chosen uniformly at random. *2Q Pauli errors exclude I⊗II \otimes I. **In a circuit timestep at which qubits are being measured, m. idling gates occur on the qubits that are not being measured.

Steane-style error correction

To perform error correction, one needs to measure the eigenvalue of each stabilizer generator. On the highest level, there are three basic strategies for doing this: Shor-style [41], Knill style [42], and Steane style [43]. In Shor-style error correction, each stabilizer generator is measured. using a dedicated circuit. This is typically done by preparing a cat state that interacts with the data qubits via CNOT gates, but for some codes such as the surface code it is possible to use a single ancilla qubit per stabilizer [44]. In Steane-style error correction, all stabilizers of one Pauli type are measured simultaneously using an encoded ancilla state. In Knill-style error correction, the data qubits are teleported into a fresh code block using a logical Bell measurement.

We choose to use Steane style. If we were to use Knill style extraction on the [18,6,3][18,6,3] code or [16,4,4][16,4,4] code the number of required qubits would exceed the qubit limit of the currently operating linear ion trap computers. Experiments have shown that Steane-style error correction can outperform Shor-style error correction in terms of logical error rate [26, 27]. The advantage of Steane-style error correction over Shor-style is that it is more efficient in terms of circuit depth and two-qubit gate count. Lower circuit depth leads to a higher logical clock speed. The disadvantage is that it requires more qubits.

The quantum circuit used in the Steane-style error correction is

∣ψˉ⟩∣+ˉ⟩→CNOT∣0ˉ⟩→H(29)\lvert\bar{\psi}\rangle\quad\lvert\bar{+}\rangle\quad\xrightarrow{\mathrm{CNOT}} \quad\lvert\bar{0}\rangle\quad\xrightarrow{H} \tag*{(29)}

Here, ∣ψˉ⟩\lvert\bar{\psi}\rangle, ∣0ˉ⟩\lvert\bar{0}\rangle, ∣+ˉ⟩\lvert\bar{+}\rangle denote logical state vectors. For details on why this circuit performs syndrome extraction, we refer the reader to Ref. [45 Section 12.4.2]. Note that Steane-style error correction is restricted to CSS codes, as it relies on transversal CNOT gates between code blocks. All codes that we simulate are CSS, since none of them has a YY boundary.

We expect further circuit optimizations in our work to improve performance. One strategy could be to use ideas from Ref. [27], where the authors show that it is possible to trade-off the number of qubits with the number of two qubit gates by interpolating between Steane and Shor-style error correction. Additionally, ZX rewrite techniques can be used to create dynamic syndrome extraction schemes [46]. Ref. [47] presents such a scheme that reduces the number of ancilla qubits required for Steane-style error correction of the [7,1,3][7,1,3] code.

State preparation circuits

To implement Steane style error correction, the circuits are required to prepare the logical ∣0ˉ⟩⊗k\lvert\bar{0}\rangle^{\otimes k} and ∣+ˉ⟩⊗k\lvert\bar{+}\rangle^{\otimes k}. These can be constructed by combining non-fault tolerant state preparation circuits with a verification circuit that checks for spreading errors [26, 48].

The verification circuit consists of one or more ancilla qubits that are entangled with the data qubits via CNOT gates and then measured in the computational basis; a non-trivial measurement outcome indicates that a fault has propagated to multiple data qubits. Conditioned on these measurement outcomes, the classical control system either lets the rest of the error-correction circuit proceed or resets the data qubits and restarts the state preparation. This conditional branching on measurement outcomes obtained during the execution of the larger error-correction circuit is what we refer to as real-time feedback. If this happens the data qubits are idling for longer, thus increasing the chance of a logical error. We use the tool from Ref. [49] to automate the construction of the state preparation and verification circuits. An example of a state preparation circuit is shown in Figure 9.

Figure 9. Crumble screenshot of the state preparation circuit for the logical [0,0,0,0][0,0,0,0] state vector of the [16,4,4][16,4,4] code. Click here for an interactive Crumble version of this circuit.

Simulation setup

Here we briefly describe the setup of the numerical simulations. Exact details can be found in the source code used to produce all plots and data used in our work is available on GitHub https://github.com/ peter-janderks/small_color_codes.

We simulate XX and ZZ memory experiments. The ZZ memory experiments consist of preparing

the logical ∣0ˉ⟩⊗k|\bar{0}\rangle^{\otimes k} state, performing rounds of error correction, and measuring all data qubits in the computational basis:

∣0ˉ⟩⊗n|\bar{0}\rangle^{\otimes n} Encode; repeat until success; ∣+ˉ⟩⊗n|\bar{+}\rangle^{\otimes n} Encode; repeat until success; ∣0ˉ⟩⊗n|\bar{0}\rangle^{\otimes n} Encode; repeat until success; HH.

Equation not extracted
(30)

A logical error occurs if, after decoding and applying the inferred correction, the measurement outcome does not correspond to ∣0ˉ⟩⊗k|\bar{0}\rangle^{\otimes k}. An example of a ZZ memory experiment circuit is shown in Figure 10. Analogously, the XX memory experiments consist of preparing the logical ∣+ˉ⟩⊗k|\bar{+}\rangle^{\otimes k} state, performing rounds of error correction, and measuring all data qubits in the XX basis. Each circuit contains at least three logical preparation circuits. If the measurements of the verification circuit trigger, the state preparation circuit is restarted. If this state preparation circuit is preparing an auxiliary code block, idling gates are applied to the data qubits that are “waiting” in the meantime to take idling errors into account.

We simulate the circuits using the tableau simulator from Stim [51]. We collect at least 500000 shots or 100 logical errors, whatever comes first, for each physical error rate. We sample 20 physical error rates, logarithmically spaced between 10−410^{-4} and 10−210^{-2}. The logical error per logical qubit is defined as

qX+qZk.(31)\frac{q_X+q_Z}{k}. \tag*{(31)}

where qZq_Z, qXq_X denote the logical ZZ and XX error rate, respectively. Following Ref. [23], the value qZq_Z (qXq_X) is defined as the probability that a logical ZZ (XX) measurement returns a non-trivial outcome in the circuit that initializes all data qubits in the ∣0ˉ⟩|\bar{0}\rangle (∣+ˉ⟩|\bar{+}\rangle) state, performs error correction, measures all the data qubits and extracts the logical outcomes using a decoder.

Error bars correspond to one standard error of the logical error rate, calculated by propagating the statistical uncertainties from independent XX and ZZ memory experiments, assuming binomial statistics with standard deviation

σ=qX(1−qX)nX+qZ(1−qZ)nZ,(32)\sigma=\sqrt{\frac{q_X(1-q_X)}{n_X}+\frac{q_Z(1-q_Z)}{n_Z}}, \tag*{(32)}

where qXq_X and qZq_Z are the measured logical error rates and nXn_X and nZn_Z are the number of shots taken in each basis.

Justification for simulating a single round of error correction

The main results of our work are based on simulating a single round of error correction. To verify that simulating a single round is a valid approach, we perform simulations of multiple rounds of error correction for the [7,1,3][7,1,3], [16,4,4][16,4,4], and [18,6,3][18,6,3] codes. We simulate error rates 5×10−45\times10^{-4}, 1×10−31\times10^{-3}, 3×10−33\times10^{-3}, we decode using Tesseract [50]. The parameters of the Tesseract decoder are left at their library defaults and could potentially be tailored for better performance. Figure 4 shows the results of these simulations, where we see that the logical error rate per round is approximately constant, justifying our approach of simulating a single round of error correction for all codes.

Look up table decoding

To speed up the simulations we use look up table decoders instead of Tesseract for the main results. In Figure 5 we compare the performance of look up table decoders with different max error weights to the Tesseract decoder for the [18,6,3][18,6,3] code. Max error weight here refers to the maximum weight of error patterns enumerated when generating the look up table; an error pattern of weight ww consists of ww simultaneous faults in the circuit. For each syndrome that occurs, we record which logical operation has the highest probability of occurring. In the remainder of this work, we add errors up to weight 3, as Figure 5 shows that adding more errors does not improve performance.

For each simulated physical error rate, we generate one look up table for XX memory experiments and one for ZZ memory experiments. For the decoding lookup table generation we do not consider errors in the state preparation part of the circuit, hence we do not generate different look up tables for different amounts of times the state preparation circuits are restarted. It is possible that a slight improvement in logical error rate can be achieved by including these errors in the look up table generation.

Logical error rates per code block and per round for three codes at three physical error rates

Figure 4 (PDF p. 16). Top row: logical error rate per code block, i.e., the probability that the block suffers a logical error (not divided by kk), as a function of the number of error correction rounds for various physical error rates for the ⟦7,1,3⟧\llbracket7,1,3\rrbracket, ⟦16,4,4⟧\llbracket16,4,4\rrbracket, and ⟦18,6,3⟧\llbracket18,6,3\rrbracket codes. Bottom row: logical error rate per code block divided by the number of rounds. The logical error rate per round is approximately constant, independent of the number of rounds. Decoded using Tesseract [50] with default parameters. Error bars represent one standard error.

Results

We summarize the resource overhead of all codes in terms of number of qubits, circuit depth, two-qubit gate count, single-qubit gate count, measurement count, reset count, and pseudothreshold in Table 2. Below we discuss the results in more detail, focusing on three aspects: pseudothresholds, subthreshold scaling, and circuit depth.

CodeQubitsDepth2Q Gates1Q GatesMeas.ResetPseudoth.
Steane-style EC with distance-3 color codes
⟦7,1,3⟧\llbracket7,1,3\rrbracket1558361616164.84e-04
⟦12,2,3⟧\llbracket12,2,3\rrbracket28120823232329.60e-04
⟦16,4,3⟧\llbracket16,4,3\rrbracket351461023838381.10e-03
⟦18,6,3⟧\llbracket18,6,3\rrbracket401581084444441.48e-03
⟦27,9,3⟧\llbracket27,9,3\rrbracket582321646262621.31e-03
Steane-style EC with distance-4 color codes
⟦16,4,4⟧\llbracket16,4,4\rrbracket381701204444442.56e-03
⟦20,4,4⟧\llbracket20,4,4\rrbracket462081505252521.98e-03
⟦20,4,4⟧\llbracket20,4,4\rrbracket pauli462101525252522.17e-03
Shor-style EC with bivariate bicycle codes
⟦30,4,5⟧\llbracket30,4,5\rrbracket3511107503001501508.21e-04
⟦48,4,7⟧\llbracket48,4,7\rrbracket56246416806723363361.34e-03
One round of Shor-style syndrome extraction with bivariate bicycle codes
⟦30,4,5⟧\llbracket30,4,5\rrbracket352221506030302.27e-03
⟦48,4,7⟧\llbracket48,4,7\rrbracket563522409648482.93e-03

Table 2. Comparison of various codes under the ion chain noise model. The columns list the code parameters, number of qubits used, circuit depth, number of two-qubit gates, number of single-qubit gates, number of measurements, number of resets, and pseudothreshold. Plots showing the pseudothresholds can be found in Figure 11. The ⟦20,4,4⟧\llbracket20,4,4\rrbracket code labeled “pauli” here and in the plots is the code with mixed boundaries in Equation (48). The data from the bivariate bicycle codes is reconstructed from Ref. [23].

First, we compare the pseudothresholds of the various codes. The pseudothreshold is defined as the physical error rate at which the achieved

logical error rate equals the physical error rate. The main numerical result of our work is shown in Figure 1. The distance-4 color codes outperform the distance-3 codes in terms of pseudothreshold. The best performing code in terms of pseudothreshold is the ⟦16,4,4⟧\llbracket16,4,4\rrbracket code with a pseudothreshold of ≈2.56×10−3\approx2.56 \times10^{-3}. This corresponds to a break-even two-qubit gate fidelity of 99.74%. The two next best performing codes are the two ⟦20,4,4⟧\llbracket20,4,4\rrbracket codes, with pseudothresholds of ≈2.17×10−3\approx2.17 \times10^{-3} and ≈1.98×10−3\approx1.98 \times10^{-3}. The first has mixed boundaries (Equation (48)), and the second has only color boundaries (Equation (44)). The best performing distance-3 code is the ⟦18,6,3⟧\llbracket18,6,3\rrbracket code with a pseudothreshold of ≈1.48×10−3\approx1.48 \times10^{-3}. Pseudothreshold plots for all codes are shown in Figure 11.

Figure 11. Pseudothreshold plots. Error bars represent one standard error. Data from bivariate bicycle codes is reconstructed from Ref. [23].

Second, we compare the logical error rate per logical qubit at different physical error rates. These plots are shown in Figure 6. The subthreshold scaling of the distance-4 codes is better than that of the distance-3 codes. However, our simulations are not precise enough to make conclusive statements about which individual codes have the best subthreshold scaling.

Lastly, we compare the circuit depth of the various codes. Figure 7 shows the pseudothreshold versus circuit depth for the various codes. In general there is a trade-off between circuit depth and pseudothreshold. There are two outliers to this trend: the ⟦16,4,4⟧\llbracket16,4,4\rrbracket code and the ⟦27,9,3⟧\llbracket27,9,3\rrbracket code. The ⟦16,4,4⟧\llbracket16,4,4\rrbracket code has a high pseudothreshold and a low circuit depth, while the ⟦27,9,3⟧\llbracket27,9,3\rrbracket code has a low pseudothreshold and a high circuit depth.

Figure 7. Comparison of pseudothreshold versus circuit depth. Note that in the ion chain model two qubit gates and single qubit gates cannot be performed in parallel.

Comparison with previous work

We compare our results to the performance of bivariate bicycle codes with weight 5 stabilizers from [23]. These codes have parameters ⟦30,4,5⟧\llbracket30,4,5\rrbracket and ⟦48,4,7⟧\llbracket48,4,7\rrbracket. The circuits in Ref. [23] use Shor-style error correction. Knill or Steane-style error correction with these codes would have used more qubits than available in a linear ion trap. Shor-style error correction consists of performing rounds of syndrome extraction. In a round of syndrome extraction, each stabilizer generator is measured once.

We compare our results to the bivariate bicycle codes under two different assumptions about how many rounds of syndrome extraction are needed per logical operation. The standard assumption is that dd rounds of syndrome extraction are needed to perform a logical operation fault-tolerantly. However, more recent proposals use only one round of syndrome extraction per logical operation [52, 53, 54].

Table 2 shows that the color codes generally have lower circuit depth, two-qubit gate count, and single-qubit gate count than the bivariate bicycle codes. This reduced resource usage is irrespective of the number of rounds of syndrome extraction used per logical operation in the bivariate bicycle codes.

The rightmost column of Table 2 shows that the distance-4 color codes outperform the bivariate bicycle codes in terms of pseudothreshold if dd rounds of syndrome extraction are used per logical operation. If only one round of syndrome extraction is used per logical operation, the ⟦48,4,7⟧\llbracket48,4,7\rrbracket outperforms the distance-4 color codes in terms of pseudothreshold, however, at the expense of using slightly more qubits.

Comparison of look up table decoders and Tesseract decoders for the $⟦18,6,3⟧$ code

Figure 5 (PDF p. 18). Comparison of look up table decoders and Tesseract decoders for the ⟦18,6,3⟧\llbracket18,6,3\rrbracket code. We vary the max error weight considered in the look up table decoder from 1 to 5. We find that the look up table decoder with max error weight 3 performs similarly to the Tesseract decoder. The vertical axis shows the logical error rate per code block, i.e., the probability that the block suffers a logical error (not divided by kk).

Finally, Figure 8 compares the ⟦16,4,4⟧\llbracket16,4,4\rrbracket color code and the two bivariate bicycle codes in terms of logical error rate per logical qubit across different physical error rates. The results indicate that the scaling of the bivariate bicycle codes is better than that of the color code because of the higher distance. However, close to the pseudothreshold, the color code outperforms both bivariate bicycle codes in case of dd rounds of syndrome extraction per logical operation. In the case of one round of syndrome extraction per logical operation, the performance of the codes close to the pseudothreshold is similar.

Figure 8. Comparison between the ⟦30,4,5⟧\llbracket30,4,5\rrbracket and ⟦48,4,7⟧\llbracket48,4,7\rrbracket bivariate bicycle codes with weight 5 measurements and the ⟦16,4,4⟧\llbracket16,4,4\rrbracket color code. Plots show the logical error rate per logical qubit, defined as qX+qZk\frac{q_X+q_Z}{k}. Error bars represent one standard error.

Plots showing the logical error rate per logical qubit for various codes

Figure 6 (PDF p. 18). Plots showing the logical error rate per logical qubit, defined as qX+qZk\frac{q_X+q_Z}{k} for various codes. Error bars represent one standard error.

Conclusion

We have constructed small 2D color codes of distances 3 and 4 that achieve encoding rates of 1/3 and 1/4, and we have shown that these rates are optimal for codes with only color boundaries on surfaces with non-negative Euler characteristic. As a case study, our simulation results establish these codes as a viable option for increasing the number of logical qubits in a linear chain of trapped ions. It would be interesting to experimentally test the proposed codes and circuits from this work in the near future. More generally, it will be informative to compare QLDPC codes to topological codes that encode multiple logical qubits – as proposed in this work – in more detail.

We have used the ion-chain noise model described in Ref. [23], which captures some of the design constraints of linear ion-trap quantum computers in a simplified form suitable for numerical simulation. A natural next step is to benchmark the codes on other platforms: the planar codes under the nearest-neighbor connectivity of superconducting circuits [17], and Steane-style error correction with the transversal gates

of neutral-atom arrays [10]. For this, it would be valuable to develop models for other quantum computing architectures, such as neutral atom arrays or linear optical architectures, to a similar level of detail.

Since it is generally believed that linear ion traps do not scale to large numbers of qubits, a next step is to design QEC codes and logical circuits for scalable ion trap architectures. It would be interesting to consider the model of the 2×L2 \times L module architecture from Ref. [55]. Similarly, one can consider tailoring codes and logical circuits to the model of the 2×L2 \times L spin qubit array architecture in Ref. [56].

Acknowledgements

P.J. Derks thanks Ben Criger and Gilad Kishony for discussions. P.J. Derks and J. Eisert acknowledge funding from BMFTR (RealistiQ, QSolid, MuniQC-Atoms, QuSol, Hybrid++, PasQuops), the Munich Quantum Valley (K-8), the Quantum Flagship (Millenion, PasQuans2), Berlin Quantum, the Einstein Foundation (Einstein Research Unit on quantum devices), the European Research Council (DebuQC), the Clusters of Excellence MATH+ and ML4Q, and the DFG (CRC 183, BoLaCo and SPP 2514). For the Munich Quantum Valley, SPP 2514 and Millenion, this is a joint-node result involving Munich and Berlin. L. Berent and R. Wille acknowledge funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (grant agreement No. 101001318), the Munich Quantum Valley (MQV-K5), which is supported by the Bavarian state government with funds from the Hightech Agenda Bayern Plus, and the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 563402549. M. Webster is supported by the Engineering and Physical Sciences Research Council [grant number EP/W032635/1 and EP/S005021/1] and Innovate UK [grant number 10179725]. A. Kubica acknowledges support from the NSF (QLCI, Award No. OMA2120757), IARPA and the Army Research Office (ELQ Program, Cooperative Agreement No. W911NF-23-2-0219).

AI usage statement

During the revision of this manuscript, the authors used Claude (Anthropic), an AI assistant, to edit the text, to find the codes in Section F, to draft and check parts of the final proofs, including the proofs of Lemma 4.5 and Lemma C.1, to validate code parameters for numerical checks, and to draw figures. All final edits were reviewed and made by humans.

References

Number of relations

In this appendix, we derive the values of δ\delta in Equation (12), the number of linear dependencies among the stabilizer generators of a connected 2D color code. We call such a dependency a relation: a product of stabilizer generators that equals the identity up to a phase. The product of two relations is again a relation, so δ\delta independent relations generate 2δ2^\delta relations in total, including the empty product. To find δ\delta, we count all relations.

A product of generators contains, for each face ff, either no stabilizer of ff or one of SX(f)S_X(f), SY(f)S_Y(f), or SZ(f)S_Z(f); we say that ff carries II, XX, YY, or ZZ, respectively. The product is a relation exactly when, at every qubit, the Paulis carried by the faces containing it multiply to II up to phase. We call a face that supports only SPS_P a PP face; it can carry only II or PP.

Proposition A.1 (Number of relations). For a connected 2D color code, the number of independent relations δ\delta depends only on the boundary types that occur:

δ={4if the manifold is closed,2if all boundaries are color boundaries of one color,2if all boundaries are Pauli boundaries of one type,1if exactly one color and one Pauli type occur,0otherwise.(33)\delta= \begin{cases} 4 & \text{if the manifold is closed},\\ 2 & \text{if all boundaries are color boundaries of one color},\\ 2 & \text{if all boundaries are Pauli boundaries of one type},\\ 1 & \text{if exactly one color and one Pauli type occur},\\ 0 & \text{otherwise}. \end{cases} \tag*{(33)}

The proof has three steps. First, we show that in a relation all faces of one color carry the same Pauli (Corollary A.2), using a lemma about carried Paulis along edges (Lemma A.1) that Appendices § 13 and § 14 also use. A relation is therefore described by three Paulis, one per color. Second, we determine which triples of Paulis describe a relation (Lemma A.2) and translate these conditions into statements about boundaries (Lemma A.3). Third, we count the triples in each case of Equation (12).

Lemma A.1 (Carried Paulis along edges). Consider a product of stabilizer generators of a connected 2D color code. For a qubit xx and a color cc, let Qc(x)Q_c(x) be the Pauli carried by the face of color cc that contains xx, or II if xx lies on no face of color cc.

(i) If the product acts trivially on both endpoints of an edge xyxy that does not lie on a Pauli boundary, then Qc(x)=Qc(y)Q_c(x) = Q_c(y) for every color cc.

(ii) The edges that do not lie on a Pauli boundary connect all qubits.

(iii) Suppose that all boundaries are Pauli boundaries and that the product acts trivially on a corner defect zz. Then both faces at zz carry II. If, moreover, the product does not act trivially on every qubit, then some edge that does not lie on a Pauli boundary joins a qubit on which the product acts trivially to one on which it does not, and both faces of this edge carry II.

Proof. The Pauli Qc(x)Q_c(x) is well defined, since the faces containing xx have different colors (Subsection 2.2). For (i), consider an edge between a green and a blue face. Its two endpoints xx and yy lie on these two faces, and each lies on at most one further face, which is then red. So QGQ_G and QBQ_B take the same values at xx and yy, and since the carried Paulis at each endpoint multiply to II, so does QRQ_R:

Figure 13.

u: Q1Q2Q3∝Iv: Q1Q2Q4∝I⇒Q3=Q4(34)\begin{aligned} u:\ &Q_1Q_2Q_3 \propto I\\ v:\ &Q_1Q_2Q_4 \propto I\\ &\Rightarrow Q_3 = Q_4 \tag*{(34)} \end{aligned}

The same argument, with the colors permuted, applies to any edge between two faces of different colors. It also applies along a color boundary, say a blue one: both endpoints of a boundary edge of a green face lie on this green face, on at most one red face, and on no blue face. For (ii), remove the edges on Pauli boundaries. Only faces with a single Pauli label have such edges, and each has exactly one (Subsection 2.2), so the remaining edges of a face still connect all of its vertices. The two endpoints of every edge lie on a common face, so the remaining graph is connected, since the code is connected.

For (iii), the two faces at zz support only P1P_1 and only P2≠P1P_2 \ne P_1 (Subsection 2.2), and none of P1P_1, P2P_2, and P1P2P_1P_2 is proportional to II, so both carry II, and Qc(z)=IQ_c(z) = I for every color cc. By (ii), a path of edges that do not lie on a Pauli boundary leads from zz to a qubit on which the product acts nontrivially; let xyxy be the first edge of this path that ends at such a qubit yy. The product acts trivially on all qubits of the path up to xx, so (i) gives Qc(x)=Qc(z)=IQ_c(x) = Q_c(z) = I for every color cc. Hence every face that contains xx, and in particular every face of the edge xyxy, carries II.

Corollary A.2 (Faces of one color carry the same Pauli). In a relation of a connected 2D color code, all faces of the same color carry the same Pauli.

Proof. A relation acts trivially on every qubit, so by Lemma A.1, QcQ_c takes the same value at every qubit, for every color cc. Hence, all faces of color cc carry this Pauli.

By Corollary A.2, a relation is described by three Paulis: QRQ_R, carried by every red face, and likewise QGQ_G and QBQ_B. The next lemma determines which triples (QR,QG,QB)(Q_R,Q_G,Q_B) describe a relation.

Lemma A.2 (Relations as triples). For a connected 2D color code, a triple (QR,QG,QB)(Q_R,Q_G,Q_B) describes a relation exactly when QRQGQB∝IQ_RQ_GQ_B \propto I and

(i) Qc=IQ_c = I whenever some qubit lies on only two faces, neither of color cc;

(ii) Qc=IQ_c = I whenever some qubit lies on a single face, of color cc;

(iii) Qc∈{I,P}Q_c \in\{I, P\} whenever some face of color cc is a PP face.

Exactly 2δ2^\delta triples satisfy QRQGQB∝IQ_RQ_GQ_B \propto I and (i)–(iii).

Proof. We first show that the triple of every relation satisfies the conditions. A qubit in the bulk lies on one red, one green, and one blue face, so the Paulis at this qubit are QRQ_R, QGQ_G, and QBQ_B, and their product must be II: QRQGQB∝IQ_RQ_GQ_B \propto I. For example, QR=XQ_R = X and QG=ZQ_G = Z give QB=YQ_B = Y. Qubits at the boundary can give further conditions. Consider a qubit on a blue color boundary. It lies on one red and one green face, but on no blue face. The Paulis at this qubit are therefore only QRQ_R and QGQ_G, so QRQG∝IQ_RQ_G \propto I. Together with QRQGQB∝IQ_RQ_GQ_B \propto I, this gives QB=IQ_B = I: no relation contains a stabilizer of a blue face. A single such qubit is enough, since all blue faces carry the same Pauli QBQ_B. Similarly, a qubit that lies on a single face, say a red one (a φ(R)\varphi(R) corner defect), gives QR=IQ_R = I. Finally, a red PP face can carry only II or PP, so QR∈{I,P}Q_R \in\{I,P\}. For example, if blue XX faces and blue ZZ faces both occur, then QB∈{I,X}∩{I,Z}Q_B \in\{I,X\} \cap\{I,Z\}, so QB=IQ_B = I. The same arguments apply to every qubit on two faces, every qubit on one face, and every PP face, which gives (i)–(iii).

Conversely, if QRQGQB∝IQ_RQ_GQ_B \propto I and (i)–(iii) hold, the Paulis at every qubit multiply to II: a qubit on three faces sees QRQGQB∝IQ_RQ_GQ_B \propto I, a qubit on two faces sees two Paulis whose product is II by (i), and a qubit on one face sees II by (ii); by (iii), every face supports the stabilizer it carries. By Corollary A.2, each relation gives one of these triples, and each triple gives one relation. There are 2δ2^\delta relations, by the start of this appendix, so exactly 2δ2^\delta triples satisfy QRQGQB∝IQ_RQ_GQ_B \propto I and (i)–(iii).

The proposition is stated in terms of boundary types, so we translate (i)–(iii) into two statements about boundaries.

Lemma A.3 (Boundary constraints). Let (QR,QG,QB)(Q_R,Q_G,Q_B) satisfy QRQGQB∝IQ_RQ_GQ_B \propto I and conditions (i)–(iii) of Lemma A.2.

(a) A color boundary of color cc forces Qc=IQ_c = I.

(b) A Pauli boundary of type PP forces QR,QG,QB∈{I,P}Q_R,Q_G,Q_B \in\{I,P\}.

Proof. For (a), a qubit on a color boundary of color cc lies on two faces, neither of color cc (Subsection 2.2), so Qc=IQ_c=I by (i). This is the argument given for blue in the proof of Lemma A.2.

For (b), we distinguish two cases. Suppose first that the code contains a corner defect between two Pauli boundaries, of types P1≠P2P_1 \ne P_2. It lies on exactly two faces (Subsection 2.2): a P1P_1 face and a P2P_2 face. These are adjacent, so they have different colors, say red and green. By (i), QB=IQ_B=I, so QR=QGQ_R=Q_G; by (iii), QR∈{I,P1}Q_R \in\{I,P_1\} and QG∈{I,P2}Q_G \in\{I,P_2\}. Hence QR=QG=QB=IQ_R=Q_G=Q_B=I, and the claim holds.

Suppose now that the code contains no such corner defect, and walk along the PP boundary. If it closes up into a cycle, none of its qubits is a corner defect, so each lies on three faces of different colors (Subsection 2.2). Where one PP face along the cycle ends and the next begins, the two faces share a qubit, so they have different colors. By (iii), Qc∈{I,P}Q_c \in\{I,P\} for these two colors cc, and then also for the third color, since QRQGQB∝IQ_RQ_GQ_B \propto I.

If instead the PP boundary ends at a corner defect, the other boundary at this corner is a color boundary, say blue, because we have excluded corners between two Pauli boundaries. By (a), QB=IQ_B=I, so QR=QGQ_R=Q_G. The corner lies on a red and a green face, one of which is a PP face (Subsection 2.2), so by (iii) QR=QG∈{I,P}Q_R=Q_G \in\{I,P\}.

Proof of Proposition A.1. By Lemma A.2, exactly 2δ2^\delta triples satisfy QRQGQB∝IQ_RQ_GQ_B \propto I and (i)–(iii), so we find δ\delta by counting these triples in each case of Equation (12). In this proof, (i)–(iii) refer to Lemma A.2 and (a)–(b) to Lemma A.3. We write FRF_R, FGF_G, and FBF_B for the sets of red, green, and blue faces.

The manifold is closed. There is no boundary, so every qubit lies on three faces and there is no PP face (Subsection 2.2); none of (i)–(iii) applies. All 16 triples with QRQGQB∝IQ_RQ_GQ_B \propto I remain (QRQ_R and QGQ_G are free and determine QBQ_B), so δ=4\delta=4. They are generated by (X,X,I)(X,X,I), (Z,Z,I)(Z,Z,I), (I,X,X)(I,X,X), and (I,Z,Z)(I,Z,Z), which are the relations

∏f∈FR∪FGSX(f)=I,∏f∈FR∪FGSZ(f)=I,\prod_{f\in F_R\cup F_G} S_X(f)=I,\qquad\prod_{f\in F_R\cup F_G} S_Z(f)=I,
∏f∈FB∪FGSX(f)=I,∏f∈FB∪FGSZ(f)=I.(35)\prod_{f\in F_B\cup F_G} S_X(f)=I,\qquad\prod_{f\in F_B\cup F_G} S_Z(f)=I. \tag*{(35)}

All boundaries are color boundaries of one color, say blue. By (a), QB=IQ_B=I and hence QR=QGQ_R=Q_G; no other condition applies, since there are no corner defects and no PP faces. This leaves the four triples (I,I,I)(I,I,I), (X,X,I)(X,X,I), (Y,Y,I)(Y,Y,I), and (Z,Z,I)(Z,Z,I), so δ=2\delta=2. The triples (X,X,I)(X,X,I) and (Z,Z,I)(Z,Z,I) are the relations

∏f∈FR∪FGSX(f)=I,∏f∈FR∪FGSZ(f)=I.(36)\prod_{f\in F_R\cup F_G} S_X(f)=I,\qquad\prod_{f\in F_R\cup F_G} S_Z(f)=I. \tag*{(36)}

All boundaries are Pauli boundaries of one type, say ZZ. By (b), QR,QG,QB∈{I,Z}Q_R,Q_G,Q_B \in\{I,Z\}; no other condition applies, since every qubit lies on three faces. This leaves the four triples (I,I,I)(I,I,I), (Z,Z,I)(Z,Z,I), (I,Z,Z)(I,Z,Z), and (Z,I,Z)(Z,I,Z), so δ=2\delta=2. The triples (Z,Z,I)(Z,Z,I) and (I,Z,Z)(I,Z,Z) are the relations

∏f∈FR∪FGSZ(f)=I,∏f∈FB∪FGSZ(f)=I.(37)\prod_{f\in F_R\cup F_G} S_Z(f)=I,\qquad\prod_{f\in F_B\cup F_G} S_Z(f)=I. \tag*{(37)}

Exactly one color and one Pauli type occur, say blue and ZZ. By (a) and (b), QB=IQ_B=I and QR=QG∈{I,Z}Q_R=Q_G \in\{I,Z\}; the corner defects are φ(ZB)\varphi(ZB) corner defects, which lie on two faces and add no condition beyond (a). This leaves the two triples (I,I,I)(I,I,I) and (Z,Z,I)(Z,Z,I), so δ=1\delta=1. The triple (Z,Z,I)(Z,Z,I) is the relation

∏f∈FR∪FGSZ(f)=I.(38)\prod_{f\in F_R\cup F_G} S_Z(f)=I. \tag*{(38)}

All other cases. In the remaining cases, color boundaries of two different colors occur, or Pauli boundaries of two different types occur. By (a), two colors force two of the three Paulis to be II, and hence the third as well. By (b), two Pauli types P1≠P2P_1 \ne P_2 force all three Paulis into {I,P1}∩{I,P2}={I}\{I,P_1\}\cap\{I,P_2\}=\{I\}. In both cases only (I,I,I)(I,I,I) remains, so δ=0\delta=0. In particular, a φ(C)\varphi(C) or φ(P)\varphi(P) corner defect, where two colors or two Pauli types meet, gives δ=0\delta=0.

Two corner defects on one face

In this appendix, we prove the following lemma, on which the proof of Lemma 4.1 rests.

Lemma B.1 (Two corner defects on one face). Consider a connected 2D color code with exclusively color boundaries or exclusively Pauli boundaries, and let c1≠c2c_1 \ne c_2 be corner defects on a common face ff. Then some weight-two operator OO supported on {c1,c2}\{c_1,c_2\} commutes with every stabilizer, so OO is either a nontrivial logical operator or, up to sign, a stabilizer. In the second case, c1c_1 and c2c_2 are the only corner defects of the code.

For example, a blue face with two φ(B)\varphi(B) corner defects and a blue face with two φ(Z)\varphi(Z) corner defects support the following weight-two operators:

Diagram of weight-two operators supported on two corner defects

Figure 60.

The proof uses the language of Appendix § 12, where a face carries II, XX, YY, or ZZ in a product of stabilizer generators, and Lemma A.1.

Proof. The proof has two parts, and each treats color and Pauli boundaries separately. First, we construct OO. Second, we show that if OO is a stabilizer up to sign, then c1c_1 and c2c_2 are the only corner defects.

We first construct OO. With color boundaries, c1c_1 and c2c_2 are φ(C)\varphi(C) corner defects, where CC is the color of ff, and they lie on no other face (Subsection 2.2). So ff is the only face that meets the support of O=Xc1Xc2O = X_{c_1}X_{c_2}, and it does so in two qubits; hence OO commutes with every stabilizer.

With Pauli boundaries, ff supports a single Pauli PP, and each cic_i lies on ff and on one further face gig_i, which supports a single Pauli Pi≠PP_i \ne P (Subsection 2.2). Let O=(P1)c1(P2)c2O = (P_1)_{c_1}(P_2)_{c_2}. The face ff meets the support of OO in c1c_1 and c2c_2, where OO acts as P1P_1 and P2P_2, which both anticommute with PP. The face gig_i meets the support of OO only in qubits where OO acts as PiP_i, the Pauli that gig_i supports; if g1=g2g_1 = g_2, then P1=P2P_1 = P_2. No other face meets the support of OO, so OO commutes with every stabilizer.

It remains to prove the second part. Now suppose that OO is, up to sign, a product of face stabilizers. We show that this product acts nontrivially on every corner defect; since OO acts only on c1c_1 and c2c_2, these are then the only corner defects. As in Appendix § 12, each face then carries II or a Pauli of its stabilizer. At each qubit, the carried Paulis multiply, up to phase, to the action of OO: this is nontrivial at c1c_1 and c2c_2 and II at every other qubit.

Color boundaries. Let QC(x)Q_C(x) be the Pauli carried by the face of color CC that contains xx, or II if there is none, as in Lemma A.1; we show that QC=XQ_C = X at every qubit. The qubit c1c_1 lies only on ff, and the product acts on it as XX, so ff carries XX. By Lemma A.1(i), QC(u)=QC(v)Q_C(u) = Q_C(v) for every edge uvuv with u,v∉{c1,c2}u,v \notin\{c_1,c_2\}. The remaining edges are those at c1c_1 and c2c_2; they are edges of ff, so both of their endpoints lie on ff, and QC=XQ_C = X at both. Hence QCQ_C takes the same value at the two endpoints of every edge, and since the code is connected, QC=XQ_C = X at every qubit. Now let zz be a corner defect; it lies on a single face (Subsection 2.2), which must then be the face of color CC at zz and so carries XX. So the product acts on zz as XX, and zz is c1c_1 or c2c_2.

Pauli boundaries. At cic_i, the Paulis carried by ff and gig_i multiply to PiP_i. Since ff carries II or PP and gig_i carries II or PiP_i, with P≠PiP \ne P_i, the face gig_i carries PiP_i. Suppose, for contradiction, that the product acts trivially on some corner defect. Then by Lemma A.1(iii), some edge that does not lie on a Pauli boundary joins c1c_1 or c2c_2, say cic_i, to a qubit on which the product acts trivially, and both faces of this edge carry II. But the only edge at cic_i that does not lie on a Pauli boundary lies on ff and gig_i, and gig_i carries Pi≠IP_i \ne I. Hence, c1c_1 and c2c_2 are the only corner defects. □\square

Middle vertices of short arcs

In this appendix, we prove the following lemma, which completes the proof of Lemma 4.5. Recall that the corner defects cut the boundary into arcs (Lemma 3.2), that the middle vertex of an arc with two edges is its vertex that is not a corner defect, and that F(G2)F(G_2) is the set of faces with Pauli labels {X,Y,Z}\{X,Y,Z\}.

Lemma C.1 (Middle vertices of short arcs). Consider a connected 2D color code with exclusively Pauli boundaries, distance d≥4d \ge4, and at least three corner defects. Then (a) the middle vertex of every arc with two edges lies on a face in F(G2)F(G_2), and (b) no face in F(G2)F(G_2) contains the middle vertices of three arcs with two edges.

We prove both parts by contradiction. For each part, we construct an operator OO of weight at most three that commutes with every stabilizer. Since d≥4d \ge4, OO is not a nontrivial logical operator, so it is, up to sign, a product of stabilizer generators. As in Appendix § 12, each face then carries II or a Pauli of its stabilizer, and a face that supports only PP carries II or PP. At each qubit, the carried Paulis multiply, up to a phase, to the action of OO.

Proof. Part (a). Consider an arc with two edges uwuw and wvwv on a PP boundary, so that uu and vv are corner defects and ww is the middle vertex, as in the following figure:

Figure 61.

Let fuf_u and fvf_v be the faces of the boundary edges uwuw and wvwv, which support only PP, and let hh be the third face at ww. The corner defect uu lies on one further face gug_u, which supports only a Pauli A≠PA \ne P; likewise, vv lies on a face gvg_v that supports only a Pauli B≠PB \ne P (Subsection 2.2). Since there are at least three corner defects, no face contains both uu and vv by Lemma 4.1. In particular, gug_u contains ww only if gu=hg_u=h, and likewise for gvg_v. Suppose, for contradiction, that h∉F(G2)h \notin F(G_2), so that hh supports only a single Pauli RR, and let

O={Rwif R=P,AuRwBvif R≠P.O = \begin{cases} R_w & \text{if } R=P,\\ A_uR_wB_v & \text{if } R\ne P. \end{cases}

This operator commutes with every stabilizer. The faces that meet its support are among fuf_u, fvf_v, gug_u, gvg_v, and hh. If R=PR=P, all three faces at ww support only PP. If R≠PR\ne P, the face fuf_u meets the support of OO in uu and ww, where OO acts as AA and RR, which both anticommute with PP, and likewise for fvf_v. In both cases, gug_u, gvg_v, and hh meet the support of OO only in qubits where OO acts as the Pauli that the face supports; for example, if gu=hg_u=h, then A=RA=R.

So OO is, up to sign, a product of stabilizer generators. At uu, the face fuf_u carries II or PP and the face gug_u carries II or AA, and their product is the action of OO on uu, which is AA if R≠PR\ne P and II if R=PR=P. Hence fuf_u carries II, and gug_u carries the action of OO on uu. Likewise, fvf_v carries II, and gvg_v carries the action of OO on vv. At ww, the faces fuf_u and fvf_v carry II, so hh carries RR. Now consider the edges that do not lie on the boundary. At uu, the only such edge lies on fuf_u and gug_u, likewise at vv, and the two such edges at ww lie on hh. Hence every such edge that joins the support of OO to a qubit outside it lies on a face that carries a Pauli other than II.

By Lemma A.1(iii), OO therefore acts nontrivially on every corner defect. This is a contradiction, since OO is supported on {u,w,v}\{u,w,v\} and there are at least three corner defects.

Part (b). Suppose, for contradiction, that a face h∈F(G2)h \in F(G_2) contains the middle vertices w1w_1, w2w_2, and w3w_3 of three arcs with two edges, of types P1P_1, P2P_2, and P3P_3. The other two faces at wiw_i are the faces of its boundary edges. They support only PiP_i, and each contains a corner defect. Neither contains wjw_j for j≠ij \ne i: it would then also be the face of a boundary edge at wjw_j, but its only boundary edge joins wiw_i to a corner defect. For a1,a2,a3∈{0,1}a_1, a_2, a_3 \in\{0,1\}, consider

O=(P1)w1a1(P2)w2a2(P3)w3a3.O = (P_1)_{w_1}^{a_1}(P_2)_{w_2}^{a_2}(P_3)_{w_3}^{a_3}.

Commuting with SX(h)S_X(h) and SZ(h)S_Z(h) imposes two linear conditions on (a1,a2,a3)(a_1,a_2,a_3) over F2\mathbb{F}_2, so we can choose the aia_i, not all zero, such that OO commutes with both, and hence also with SY(h)S_Y(h). The only other faces that meet the support of OO are the faces of the boundary edges at wiw_i, on which OO acts as II or PiP_i, so OO commutes with every stabilizer. So OO is, up to sign, a product of stabilizer generators. The faces of the boundary edges at wiw_i contain a corner defect, on which OO acts trivially, so they carry II by Lemma A.1(iii). Hence OO acts on each wiw_i as the Pauli RR carried by hh. Since not all aia_i are zero, R≠IR \ne I, so OO acts as RR on all three of w1w_1, w2w_2, and w3w_3. But RR anticommutes with XX or with ZZ, and OO acts as RR on three qubits of hh, so OO anticommutes with SX(h)S_X(h) or SZ(h)S_Z(h), a contradiction.

Circuit examples

Figure 10 (PDF p. 30). Crumble screenshot of the Steane-style error correction circuit for the [7,1,3][7,1,3] code. The Pauli web [57] (aka stabilizer flow [58]) of a weight 4 detector [59] is highlighted. The circuit is split in two parts to fit on the page. Note that if the measurement of a verification circuit triggers, the relevant state preparation circuit is restarted, and thus the circuit depth increases. Click here for an interactive Crumble version of this circuit with the Pauli web. Click here for an interactive Crumble version of this circuit with all detectors and the observable included.

Pseudothreshold plots

Color codes with χ<0\chi<0 exceeding the rate bounds

Theorem 4.1 and Theorem 4.4 assume χ≥0\chi\ge0. In this appendix, we present three color codes with exclusively color boundaries and χ<0\chi< 0 whose encoding rates exceed these bounds. The proof of Theorem 4.1 bounds the encoding rate by (nφ(C)−2χ)/(3nφ(C)−2χ)(n_{\varphi(C)}-2\chi)/(3n_{\varphi(C)}-2\chi), which is larger than 1/31/3 for χ<0\chi< 0.

A planar ⟦23,9,3⟧\llbracket23,9,3\rrbracket code

The following planar code has two holes:

Figure 62.

Every face hosts exactly one corner defect, so nφ(C)=7n_{\varphi(C)}=7. The surface is a disk with two holes, so χ=−1\chi=-1 and Theorem 3.1 gives k=9k=9. The code has distance 3, because no two qubits lie on the same set of faces and there are logical operators of weight three. Its encoding rate is 9/23>1/39/23>1/3.

A ⟦32,14,3⟧\llbracket32,14,3\rrbracket code on a genus-2 surface

We start from Dyck’s map [60], the regular tiling of a genus-3 surface by 12 octagons, four of each color, with 32 vertices. The color code on this closed surface is a ⟦32,12,4⟧\llbracket32,12,4\rrbracket code. We remove the stabilizers of one red, one green, and one blue face, which turns these three faces into boundaries:

Figure 63.

The code is drawn cut open in the plane. Purple edges with the same letter are glued together in the direction of the arrows, and the black outer edges are the boundaries. The three removed faces are not drawn. Each pair of removed faces shares an edge, but no qubit lies on all three. Their union is therefore an annulus, and the remaining surface has genus 2 and two boundary components, so χ=−4\chi=-4. The six qubits that lie on two removed faces are corner defects, and Theorem 3.1 gives k=14k=14. The code has distance 3, because no two qubits lie on the same set of faces and there are logical operators of weight three. Its encoding rate is 7/16>1/37/16 > 1/3.

A ⟦32,14,4⟧\llbracket32,14,4\rrbracket code on a genus-3 surface

We again start from Dyck’s map, but now remove the stabilizers of two of its four red faces:

Figure 64.

Two faces of the same color share no qubit, so each removed face becomes a red boundary with eight qubits and no corner defects. The remaining surface has genus 3 and two boundary components, so χ=−6\chi=-6. All boundaries are red, so δ=2\delta=2 and Theorem 3.1 gives k=14k=14. The code has distance 4 and an encoding rate of 7/16>1/47/16 > 1/4. Hence the assumption χ≥0\chi\ge0 in Theorem 4.4 cannot be dropped either.

References

  1. [1]Alexis Morvan, Benjamin Villalonga, Xiao Mi, Salvatore Mandrà, Andreas Bengtsson, Paul V. Klimov, et al. “Phase transitions in random sampling”. Nature 634, 328–333 (2024). arXiv:2304.11119.
  2. [2]Dominik Hangleiter and Jens Eisert. “Computational advantage of quantum random sampling”. Reviews of Modern Physics 95, 035001 (2023). arXiv:2206.04079.DOI
  3. [3]Google Quantum AI. “Suppressing quantum errors by scaling a surface code logical qubit”. Nature 614, 676–681 (2023). arXiv:2207.06431.
  4. [4]Eunmi Chae, Joonhee Choi, and Junki Kim. “An elementary review on basic principles and developments of qubits for quantum computing”. Nano Convergence 11, 11 (2024).DOI
  5. [5]Youngseok Kim, Andrew Eddins, Sajant Anand, Ken Xuan Wei, Ewout van den Berg, Sami Rosenblatt, Hasan Nayfeh, Yantao Wu, Michael Zaletel, Kristan Temme, and Abhinav Kandala. “Evidence for the utility of quantum computing before fault tolerance”. Nature 618, 500–505 (2023).DOI
  6. [6]Tomislav Begušić, Johnnie Gray, and Garnet Kin-Lic Chan. “Fast and converged classical simulations of evidence for the utility of quantum computing before fault tolerance”. Science Advances 10, eadk4321 (2024). arXiv:2308.05077.DOI
  7. [7]Sebastian Krinner, Nathan Lacroix, Ants Remm, Agustin Di Paolo, Elie G enois, Catherine Leroux, Christoph Hellings, Stefania Lazar, Francois Swiadek, Johannes Herrmann, Graham J. Norris, Christian Kraglund Andersen, Markus Müller, Alexandre Blais, Christopher Eichler, and Youwei Zhao, Yangsen Ye, He-Jiang Huang, Yiming Zhang, Dachao Wu, Huijie Guan, Qingling Zhu, Zuolin Wei, Tan He, Sirui Cao, et al. “Realization of an error-correcting surface code with superconducting qubits”. Physical Review Letters 129, 030501 (2022). arXiv:2112.13505.
  8. [9]Google Quantum AI and Collaborators. “Quantum error correction below the surface code threshold”. Nature 638, 920–926 (2025). arXiv:2408.13687.
  9. [10]Dolev Bluvstein, Simon J. Evered, Alexandra A. Geim, Sophie H. Li, Hengyun Zhou, Tom Manovitz, Sepehr Ebadi, Madelyn Cain, Marcin Kalinowski, Dominik Hangleiter, J. Pablo Bonilla Ataides, Nishad Maskara, Iris Cong, Xun Gao, Pedro Sales Rodriguez, Thomas Karolyshyn, Giulia Semeghini, Michael J. Gullans, Markus Greiner, Vladan Vuletić, and Mikhail D. Lukin. “Logical quantum processor based on reconfigurable atom arrays”. Nature 626, 58–65 (2024). arXiv:2312.03982.DOI
  10. [11]Ben W. Reichardt, Adam Paetznick, David Aasen, Ivan Basov, Juan M. Bello-Rivas, Parsa Bonderson, Rui Chao, Wim van Dam, Matthew B. Hastings, Ryan V. Mishmash, et al. “Fault-tolerant quantum computation with a neutral atom processor” (2024). arXiv:2411.11822.arxiv.org/abs/2411.11822
  11. [12]J. A. Muniz, D. Crow, H. Kim, J. M. Kindem, W. B. Cairncross, A. Roy, T. C. Bohdanowicz, C.-A. Chen, Y. Ji, A. M. W. Jones, et al. “Repeated ancilla reuse for logical computation on a neutral atom quantum computer”. Physical Review X 15, 041040 (2025). arXiv:2506.09936.arxiv.org/abs/2506.09936
  12. [13]Kentaro Yamamoto, Yuta Kikuchi, David Amaro, Ben Criger, Silas Dilkes, Ciarán Ryan-Anderson, Andrew Tranter, Joan M. Dreiling, Dan Gresh, Cameron Foltz, et al. “Quantum error-corrected computation of molecular energies”. PRX Quantum 7, 020319 (2026). arXiv:2505.09133.DOI
  13. [14]Shival Dasu, Ben Criger, Cameron Foltz, Justin A. Gerber, Christopher N. Gilbreth, Kevin Gilmore, Craig A. Holliman, Nathan K. Lysne, Alistair Milne, Daichi Okuno, et al. “Order-of-magnitude extension of qubit lifetimes with a decoherence-free subspace quantum error correction code” (2025). arXiv:2503.22107.arxiv.org/abs/2503.22107
  14. [15]Yang Wang, Selwyn Simsek, Thomas M Gatterman, Justin A. Gerber, Kevin Gilmore, Dan Gresh, Nathan Hewitt, Chandler V. Horst, Mitchell Matheny, Tanner Mengle, et al. “Fault-tolerant one-bit addition with the smallest interesting color code”. Science Advances 10, eado9024 (2024). arXiv:2309.09893.DOI
  15. [16]Ben W. Reichardt, David Aasen, Rui Chao, Alex Chernyoguzov, Wim van Dam, John P. Gaebler, Dan Gresh, Dominic Lucchetti, Michael Mills, Steven A. Moses, et al. “Demonstration of quantum computation and error correction with a tesseract code” (2024). arXiv:2409.04628.arxiv.org/abs/2409.04628
  16. [17]Nathan Lacroix, Alexandre Bourassa, Francisco J. H. Heras, Lei M. Zhang, Johannes Bausch, Andrew W. Senior, et al. “Scaling and logic in the colour code on a superconducting quantum processor”. Nature 645, 614–619 (2025). arXiv:2412.14256.arxiv.org/abs/2412.14256
  17. [18]Ciaran Ryan-Anderson, Justin G. Bohnet, Kenny Lee, Daniel Gresh, Aaron Hankin, John P. Gaebler, David Francois, Alexander Chernyoguzov, Dominic Lucchetti, Natalie C. Brown, et al. “Realization of real-time fault-tolerant quantum error correction”. Physical Review X 11, 041058 (2021). arXiv:2107.07505.
  18. [19]Ciarán Ryan-Anderson, Natalie C. Brown, Michael S. Allman, Benjamin Arkin, Godfried Asa-Attuah, Charles H. Baldwin, Jordan Berg, Justin G. Bohnet, Sean Braxton, Nathaniel Q. Burdick, et al. “Implementing fault-tolerant entangling gates on the five-qubit code and the color code” (2022). arXiv:2208.01863.
  19. [20]Ali Lavasani, Adam P Reed, Joan M Dreiling, Annie J Park, Michael Mills, Matteo Puviani, Gabriel Matos, MS Allman, Noah Berthusen, Natalie C Brown, et al. “Quantum error correction well below the color code threshold” (2026). arXiv:2610.24077.arxiv.org/abs/2610.24077
  20. [21]Jwo-Sy Chen, Erik Nielsen, Matthew Ebert, Volkan Inlek, Kenneth Wright, Vandiver Chaplin, Andrii Maksymov, Eduardo Páez, Amrit Poudel, Peter Maunz, and John Gamble. “Benchmarking a trapped-ion quantum computer with 30 qubits”. Quantum 8, 1516 (2024). arXiv:2308.05071.
  21. [22]Anthony Ransford, MS Allman, Jake Arkinstall, JP Campora III, Samuel F Cooper, Robert D Delaney, Joan M Dreiling, Brian Estey, Caroline Figgatt, Alex Hall, et al. “Helios: A 98-qubit trapped-ion quantum computer” (2025). arXiv:2511.05465.arxiv.org/abs/2511.05465
  22. [23]Min Ye and Nicolas Delfosse. “Quantum error correction for long chains of trapped ions”. Quantum 9, 1920 (2025). arXiv:2503.22071.DOI
  23. [24]Sergey Bravyi, David Poulin, and Barbara Terhal. “Tradeoffs for reliable quantum information storage in 2D systems”. Physical Review Letters 104, 050503 (2010). arXiv:0909.5200.DOI
  24. [25]Andrew M. Steane. “Error correcting codes in quantum theory”. Physical Review Letters 77, 793–797 (1996).pubmed.ncbi.nlm.nih.gov/10062908
  25. [26]Lukas Postler, Friederike Butt, Ivan Pogorelov, Christian D. Marciniak, Sascha Heußen, Rainer Blatt, Philipp Schindler, Manuel Rispler, Markus Müller, and Thomas Monz. “Demonstration of fault-tolerant Steane quantum error correction”. PRX Quantum 5, 030326 (2024). arXiv:2312.09745.DOI
  26. [27]Shilin Huang, Kenneth R. Brown, and Marko Cetina. “Comparing Shor and Steane error correction using the Bacon-Shor code”. Science Advances 10, eadp2008 (2024). arXiv:2312.10851.arxiv.org/abs/2312.10851
  27. [28]Markus S. Kesslering, Fernando Pastawski, Jens Eisert, and Benjamin 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.
  28. [29]Aleksander Marek 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”. PhD thesis. California Institute of Technology. (2018).DOI
  29. [30]Hector Bombin and Miguel Angel Martin-Delgado. “Topological quantum distillation”. Physical Review Letters 97, 180501 (2006). arXiv:quant-ph/0605138.DOI
  30. [31]Andrew J. Landahl, Jonas T. Anderson, and Patrick R. Rice. “Fault-tolerant quantum computing with color codes” (2011). arXiv:1108.5738.arxiv.org/abs/1108.5738
  31. [32]Markus S. Kesslering, Julio C. Magdalena de la Fuente, Felix Thomsen, Jens Eisert, Stephen D. Bartlett, and Benjamin J. Brown. “Anyon condensation and the color code”. PRX Quantum 5, 010342 (2024). arXiv:2212.00042.
  32. [33]Allen Hatcher. “Algebraic Topology”. Cambridge University Press. (2002).
  33. [34]Jonas T. Anderson. “Homological stabilizer codes”. Annals of Physics 330, 1–22 (2013). arXiv:1107.3502.arxiv.org/abs/1107.3502
  34. [35]Aleksander Kubica, Beni Yoshida, and Fernando Pastawski. “Unfolding the color code”. New Journal of Physics 17, 083026 (2015). arXiv:1503.02065.DOI
  35. [36]Markus Grassl, Felix Huber, and Andreas Winter. “Entropic proofs of Singleton bounds for quantum error-correcting codes”. IEEE Transactions on Information Theory 68, 3942–3950 (2022). arXiv:2010.07902.DOI
  36. [37]Ben W. Reichardt. “Fault-tolerant quantum error correction for Steane’s seven-qubit color code with few or no extra qubits”. Quantum Science and Technology 6, 015007 (2021). arXiv:1804.06995.DOI
  37. [38]Prithviraj Prabhu and Ben W. Reichardt. “Distance-four quantum codes with combined postselection and error correction”. Physical Review A 110, 012419 (2024). arXiv:2212.03785.
  38. [39]Nicolas Delfosse and Ben W. Reichardt. “Short Shor-style syndrome sequences” (2020). arXiv:2008.05051.arxiv.org/abs/2008.05051
  39. [40]Pradeep Sarvepalli and Robert Raussendorf. “Efficient decoding of topological color codes”. Physical Review A 85, 022317 (2012). arXiv:1111.0831.DOI
  40. [41]Peter W. Shor. “Fault-tolerant quantum computation”. In Proceedings of 37th Conference on Foundations of Computer Science. Pages 56–65. IEEE (1996). arXiv:quant-ph/9605011.arxiv.org/abs/quant-ph/9605011
  41. [42]Emanuel Knill, Raymond Laflamme, and Wojciech H. Zurek. “Resilient quantum computation”. Science 279, 342–345 (1998).
  42. [43]Andrew M. Steane. “Active stabilization, quantum computation, and quantum state synthesis”. Physical Review Letters 78, 2252–2255 (1997). arXiv:quant-ph/9611027.DOI
  43. [44]Yu Tomita and Krysta M. Svore. “Low-distance surface codes under realistic quantum noise”. Physical Review A 90, 062320 (2014). arXiv:1404.3747.
  44. [45]Aleks Kissinger and John van de Wetering. “Picturing quantum software: An introduction to the ZX-calculus and quantum compilation”. Preprint. (2024). url: https://github.com/zxcalc/book.
  45. [46]Benjamin Rodatz, Boldizsár Poór, and Aleks Kissinger. “Fault tolerance by construction” (2025). arXiv:2506.17181.arxiv.org/abs/2506.17181
  46. [47]Boldizsár Poór, Benjamin Rodatz, and Aleks Kissinger. “Ultra low overhead syndrome extraction for the Steane code”. Quantum Science and Technology 11, 045009 (2026). arXiv:2511.13700.DOI
  47. [48]Hayato Goto. “Minimizing resource overheads for fault-tolerant preparation of encoded states of the Steane code”. Scientific Reports 6, 19578 (2016).DOI
  48. [49]Tom Peham, Ludwig Schmid, Lucas Berent, Markus Müller, and Robert Wille. “Automated synthesis of fault-tolerant state preparation circuits for quantum error-correction codes”. PRX Quantum 6, 020330 (2025). arXiv:2408.11894.DOI
  49. [50]Laleh Aghababaie Beni, Oscar Higgott, and Noah Shutty. “Tesseract: A search-based decoder for quantum error correction” (2025). arXiv:2503.10988.arxiv.org/abs/2503.10988
  50. [51]Craig Gidney. “Stim: a fast stabilizer circuit simulator”. Quantum 5, 497 (2021). arXiv:2103.02202.DOI
  51. [52]Hengyun Zhou, Chen Zhao, Madelyn Cain, Dolev Bluvstein, Nishad Maskara, Casey Duckering, Hong-Ye Hu, Sheng-Tao Wang, Aleksander Kubica, and Mikhail D. Lukin. “Low-overhead transversal fault tolerance for universal quantum computation”. Nature 646, 303–308 (2025). arXiv:2406.17653.DOI
  52. [53]Madelyn Cain, Dolev Bluvstein, Chen Zhao, Shouzhen Gu, Nishad Maskara, Marcin Kalinowski, Alexandra A. Geim, Aleksander Kubica, Mikhail D. Lukin, and Hengyun Zhou. “Fast correlated decoding of transversal logical algorithms” (2025). arXiv:2505.13587.arxiv.org/abs/2505.13587
  53. [54]Marc Serra-Peralta, Mackenzie H Shaw, and Barbara M Terhal. “Decoding across transversal Clifford gates in the surface code”. PRX Quantum 7, 010335 (2026). arXiv:2505.13599.
  54. [55]Edwin Tham, Min Ye, Ilia Khait, John Gamble, and Nicolas Delfosse. “Distributed fault-tolerant quantum memories over a 2 × L array of qubit modules” (2025). arXiv:2508.01879.arxiv.org/abs/2508.01879
  55. [56]Adam Siegel, Armands Strikis, and Michael Fogarty. “Towards early fault tolerance on a 2 × N array of qubits equipped with shuttling”. PRX Quantum 5, 040328 (2024). arXiv:2402.12599.DOI
  56. [57]Hector Bombin, Daniel Litinski, Naomi Nickerson, Fernando Pastawski, and Sam Roberts. “Unifying flavors of fault tolerance with the ZX calculus”. Quantum 8, 1379 (2024). arXiv:2303.08829.DOI
  57. [58]Matt McEwen, Dave Bacon, and Craig Gidney. “Relaxing hardware requirements for surface code circuits using time-dynamics”. Quantum 7, 1172 (2023). arXiv:2302.02192.DOI
  58. [59]Peter-Jan H. S. Derks, Alex Townsend-Teague, Ansgar G. Burchards, and Jens Eisert. “Designing fault-tolerant circuits using detector error models”. Quantum 9, 1905 (2025). arXiv:2407.13826.DOI
  59. [60]Walther Dyck. “Notiz über eine reguläre Riemann’sche Fläche vom Geschlechte drei und die zugehörige “Normalcurve” vierter Ordnung”. Mathematische Annalen 17, 510–516 (1880).

Machine contribution statement

This work lists 1 machine contributor.

  • Claude · AI contributor

    Roles
    Formal AnalysisValidationVisualizationWriting — original draftWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Contents

Pick where to look, or just type