Color Codes
Color Codes
the corresponding accuracy thresholds for fault-tolerant quantum error correction. We also used a
self-avoiding walk analysis to lower-bound the accuracy threshold for two of these noise models. We
present two methods for fault-tolerantly computing with these codes. In the first, many of the op-
erations are transversal and therefore spatially local if two-dimensional arrays of qubits are stacked
atop each other. In the second, code deformation techniques are used so that all quantum process-
ing is spatially local in just two dimensions. In both cases, the accuracy threshold for computation
is comparable to that for error correction. Our analysis demonstrates that color codes perform
slightly better than Kitaev’s surface codes when circuit details are ignored. When these details are
considered, we estimate that color codes achieve a threshold of 0.082(3)%, which is higher than
the threshold of 1.3 × 10−5 achieved by concatenated coding schemes restricted to nearest-neighbor
gates in two dimensions [Spedalieri and Roychowdhury, Quant. Inf. Comp. 9, 666 (2009)] but lower
than the threshold of 0.75% to 1.1% reported for the Kitaev codes subject to the same restrictions
[Raussendorf and Harrington, Phys. Rev. Lett. 98, 190504 (2007); Wang et al., Phys. Rev. A 83,
020302(R) (2011)]. Finally, because the behavior of our decoder’s performance for two of the noise
models we consider maps onto an order-disorder phase transition in the three-body random-bond
Ising model in 2D and the corresponding random-plaquette gauge model in 3D, our results also
answer the Nishimori conjecture for these models in the negative: the statistical-mechanical classi-
cal spin systems associated to the 4.8.8 color codes are counterintuitively more ordered at positive
temperature than at zero temperature.
a graph embedded in a surface [15]. Several fault- for noise that afflicts the individual quantum circuit ele-
tolerant quantum computing protocols have been devel- ments used in a fault-tolerant color-code-based quantum
oped around surface codes [16–18], and these protocols computing protocol. The accuracy threshold for noise af-
have significantly higher accuracy thresholds than their flicting the circuit model is perhaps the most instructive
concatenated-coding counterparts. Numerical threshold of all table entries. This is because this threshold es-
estimates for surface-code protocols range from 0.75% to tablishes the target error rate per elementary operation
1.1% [17–19]; an analytic proof in Ref. [16] guarantees that a quantum technology must meet to admit fault-
that it is no less than 1.7 × 10−4 . tolerant quantum computation using these codes. It also
Recently Bombin and Martin-Delgado proposed a new allows for a fair “apples-to-apples” comparison to the
family of quantum error-correcting codes they call color high thresholds estimated for Kitaev’s surface codes in
codes which are also defined to be local relative to a graph the circuit model.
embedded in a surface [20]. Specifically, they are defined In this Article, we analyze the accuracy threshold of
by face-three-colorable trivalent graphs in the following the 4.8.8 color codes for fault-tolerant quantum compu-
way: on each vertex of the graph lies a qubit, and for each tation under several noise and control models. We have
face f of the graph, one defines two “stabilizer genera- restricted our analysis to protocols which use the decoder
tors” or “checks,” Xf and Zf . Xf is the tensor product that identifies the most likely error (MLE) given the er-
of Pauli X operators on each qubit incident on face f , ror syndrome. We formulate the MLE decoder as an in-
while Zf is the tensor product of Pauli Z operators on teger program (IP), which in general is NP-hard to solve
each qubit incident on face f . The color code’s codespace [33]. Although the decoder is inefficient, it establishes
is defined as the simultaneous +1 eigenspace of each of a threshold that we expect is close the the maximum
the check operators. threshold possible for these codes, namely the one ob-
A fault-tolerant quantum computing protocol based tainable by an optimal decoder, which identifies the most
on color codes requires an infinite family of color codes likely logical operation given the error syndrome. For
of increasing size in order to be able to simulate arbi- small codes, the MLE IP can be solved “offline” ahead of
trarily large ideal quantum circuits to increasing preci- time to generate a lookup table that can be used during
sion. A natural source for an infinite color-code family the course of a “live” fault-tolerant quantum comput-
is a uniform tiling of the plane by a trivalent face-three- ing protocol. Our results comprise both numerical esti-
colorable lattice. Such a lattice can be embedded in any mates of the accuracy threshold achieved via Monte Carlo
orientable surface, although later we will restrict atten- simulations and a rigorous lower bound on the accuracy
tion to embeddings in planar discs. These “semiregular” threshold that we prove using combinatorial counting ar-
or “Archimedean” lattices are described in vertex nota- guments.
tion as r.s.t, where each vertex is locally surrounded by The remainder of this Article is organized as follows. In
an r-gon, an s-gon, and a t-gon. The only possible triva- Sec. II, we lay out the control model and the three noise
lent face-three-colorable tilings of the plane are the 4.8.8 models we consider. In Sec. III, we summarize the prop-
lattice, the 6.6.6 (hex) lattice, and the 4.6.12 lattice, de- erties of the 4.8.8 triangular color codes we study, present
picted in Fig. 1 [21]. two circuit schedules for extracting the error syndrome in
these codes, and formulate MLE decoders for these codes
as integer programs for each of the noise models that we
consider. In Sec. IV, we report our numerical estimates
for the accuracy threshold for fault-tolerant quantum er-
ror correction of these codes for each of the noise models
that we consider. In Sec. V, we use a self-avoiding-walk
analysis to prove rigorous lower bounds for the accuracy
(a) 4.8.8 (b) 6.6.6 (c) 4.6.12 thresholds of fault-tolerant quantum error correction of
these codes against two of the noise models that we con-
FIG. 1: The three possible face-three-colorable trivalent uni- sider. In Sec. VI, we relate the quantum error correction
form tilings of the plane. accuracy threshold to the quantum computation accu-
racy threshold for two scenarios: one in which logical
Accuracy thresholds for fault-tolerant quantum com- qubits are associated with 2D planes that are stacked
puting have been estimated for color codes in several atop one another like pancakes and the other in which
highly idealized noise models numerically. The values of logical qubits are associated with “defects” in a single
these thresholds are summarized in Table I, along with 2D substrate. In Sec. VII we conclude, summarizing and
analogous estimates for a well-studied surface code and interpreting our results both in terms of the accuracy
two recently-proposed topological subsystem codes. This thresholds we report and in terms of their consequences
table contains numerous gaps, some of which we fill in for “re-entrant behavior” of an order-disorder phase tran-
with the results of this Article—the entries containing our sition in two associated classical statistical-mechanical
results are highlighted in bold. The most significant gap, models. We cap off our conclusions with some parting
which we fill, is an estimate of the accuracy threshold thoughts about future directions that we believe are wor-
3
nel. For non-circuit-based noise models, the decoder used does not
account for correlations between bit flips and phase flips in DP
channel. In these models, we reported the result for the equivalent
effective BP channel of strength 23 p.
b Decoder based on hypergraph matching heuristic.
c Limited numerics only weakly suggest this value.
d Decoder based on mapping to two Kitaev codes.
TABLE I: Numerically-estimated accuracy thresholds for several topological quantum error-correcting codes, noise models,
and decoding algorithms. The first three codes (4.8.8, 6.6.6, 4.6.12) are the color codes described in Fig. 1 and its preceding
text. The last three codes are the Kitaev surface code on the square lattice [15], a topological subsystem color code on the
3.4.6.4 lattice [32], and a hypergraph-based topological subsystem code proposed by Suchara, Bravyi, and Terhal [31]. The
details of the noise models (code capacity, phenomenological, and circuit-based) and decoders (MLE, optimal, and other) are
discussed in the text; when possible, results from other references have been translated into one of these models. The notation
“x.y1 · · · yk (z)%” means x.y1 · · · yk % ± (z × 10−k )%. When such notation is not used, it means that the no error analysis was
reported in the reference from which the value was drawn.
thy of study. Some FTQC protocols also make the following archi-
tectural assumptions, which generally lead to higher ac-
curacy thresholds; we make these assumptions here:
II. NOISE AND CONTROL MODEL
4. Reliable classical computation. Classical com-
The performance of a fault-tolerant quantum comput- putations always return the correct result.
ing (FTQC) protocol is strongly influenced by underlying
5. Fast classical computation. Classical computa-
architectural assumptions, so it is important to clearly
tions are instantaneous.
list what they are. Indeed, when those assumptions are
not borne out in real quantum information technologies, 6. No qubit leakage. Qubits never “leak” out of the
an FTQC protocol may fail entirely [34, 35]. computational Hilbert space.
Every existing FTQC protocol makes the following ar-
chitectural assumptions—assumptions which appear to 7. Uncorrelated noise. Each qubit and gate is af-
be necessary: flicted by an independent noise source.
1. Nonincreasing error rate. The asymptotic scal-
Some additional architectural assumptions, which have
ing of the error rate as a function of the circuit’s
a less clear impact on the accuracy threshold, are fre-
size is nonincreasing. This allows the performance
quently made as well; we also make these assumptions:
of fault-tolerant circuits to increase asymptotically.
2. Parallel operation. The asymptotic parallel- 8. Standard gate basis. The set of (faulty) quan-
processing rate is larger than a constant times the tum gates (including preparation and measure-
asymptotic error rate. This allows error correction ment) available consists of |0i, |+i, I, X, Z, T ,
to keep ahead of the errors. S, CNOT , MZ , and MX . The definition of what
these gates are can be found in standard textbooks,
3. Reusable memory. The asymptotic rate at e.g., in Refs. [36, 37].
which one can erase or replace qubits is larger than
a constant times the asymptotic error rate. This al- 9. Equal-time gates. Each gate, including prepara-
lows entropy to be flushed from the computer faster tions and measurements, takes the same amount of
than it is generated by errors. time to complete.
4
10. Uniformly faulty gates. Each k-qubit gate, circuits other than those used for syndrome ex-
including preparations and measurements, is as traction (e.g., for encoded computation) are still
equally as faulty as every other k-qubit gate. subject to the BP and DP channels, respectively,
as before.
Inspired by the limitations of 2D geometry for some
quantum computing technologies, we also make the fol- 13(c). Code capacity noise. This model is the same
lowing assumptions: as the phenomenological noise model, except that
11. 2D layout. Qubits are laid out on a struc- the syndrome-bit error rate is assumed to be zero.
ture describable by a graph embedded in a two- Because there is no need to repeat syndrome mea-
dimensional surface. surements in this model, and because the accuracy
threshold for “defect-braided” quantum computa-
12. Local quantum processing. Gates can only cou- tion is the same as that for quantum memory (as
ple nearest-neighbor qubits in the graph describing argued later), the accuracy threshold for this noise
their layout. model is the same as what in quantum informa-
Finally, we make the following three variants of a thir- tion theory is called the single-shot, single-letter
teenth assumption about the noise model afflicting each quantum capacity for color codes subject to the
gate. Of all the assumptions we make, we have found BP channel.
that this one is most likely to vary in the literature.
Commonly-studied alternatives for this assumption in-
clude stochastic adversarial noise [38–41], purely depo- III. FAULT-TOLERANT ERROR CORRECTION
larizing noise [42], and noise that has a strong bias, such OF COLOR CODES
as having phase flips significantly more probable than bit
flips [43]. A. Code family
The code distance of a triangular color code is equal to side colors are indicated explicitly in Fig. 4.
its side length, namely the number of qubits along a side
of the defining triangle. To see this, notice that the logi-
cal X and Z operators for the logical qubit are transver-
sal because they are encoded Clifford gates. Thus, when
one multiplies a logical X or Z operator by all checks
of the same Pauli type, except the checks incident on a
specified side, one obtains an equivalent logical opera-
tor whose Pauli-weight is equal to the that side’s length.
The family of 4.8.8 triangular codes we study is generated
according to the pattern depicted in Fig. 3. Note that
the smallest triangular code (for any of three triangular
code families depicted in Fig. 2) is equivalent to the well-
known Steane [[7, 1, 3]] code [45]; triangular codes offer a FIG. 4: A green-colored chain in a triangular code. The chain
connects a green-colored side of the 4.8.8 triangular code to a
way to generate an infinite code family from the Steane
green octagonal face. If qubits are flipped (are in error) along
code by a means other than concatenation [72]. this chain, it will only be detected by this terminal octagonal
check operator.
B. Syndrome extraction
•
• 3,7 4,8 1,5 2,6 3,7 4,8
, •
• 5,1 3,7 4,8 5,1
6,2 6,2
1,5 2,6
FIG. 5: Six-step circuits for measuring X ⊗4 and Z ⊗4 . 7,3 8,4 7,3 8,4
1,5 2,6 3,7 4,8 1,5 2,6
ing this is to perform all Xf measurements in parallel 3,7 4,8 5,1 3,7 4,8
6,2
followed by all Zf measurements in parallel. The mini- 1,5 2,6 1,5 2,6
mal number of steps (ignoring preparation and measure- 7,3 8,4
ment) for parallel Xf measurements is eight; an example 3,7 4,8 1,5 2,6 3,7 4,8
of such a schedule is depicted in Fig. 6. The Zf mea-
surements can be carried out by the same schedule, but 5,1 3,7 4,8
6,2 5,1 6,2
in the Hadamard-conjugated basis as depicted in Fig. 5.
A complete syndrome extraction round using this sched- 7,3 8,4 7,3 8,4
ule then takes 20 steps: 10 for the Xf measurement and
10 for the Zf measurement. For this schedule, one only FIG. 7: Schedule with X and Z syndromes measured concur-
needs to have one, not two, syndrome qubits at the center rently, in “interleaved” fashion. This schedule takes 8 steps,
of each face. plus an extra step for syndrome qubit preparations, plus an
extra step for syndrome qubit measurements. The label m, n
1 2 at a vertex indicates that at time step m the qubit at that
vertex interacts with the X-syndrome qubit via a CNOT gate
and at time step n the qubit at that vertex interacts with the
3 4 Z-syndrome qubit via a CNOT gate.
ture, one can efficiently track the changing Pauli frame as follows:
through these gates, as guaranteed by the Gottesman-
Knill theorem [50]. One can safely defer applying recov- min 1T x (4)
ery operations until after final measurement in each of sto Hx = s mod 2 (5)
these circuits. However, for universal quantum compu- x ∈ Bn , (6)
tation, at least one non-Clifford gate is required. In our
protocols, the only such gate we use is the classically- where 1 denotes the all-ones vector and H is the parity
controlled S † gate, depicted later in the circuit of Fig. 24. check matrix associated with the Zf -checks. (For color
Because this gate propagates a Pauli error to a sum of codes, this is the face-vertex incidence matrix.)
Pauli errors, it is necessary to actually apply the recovery To take advantage of well-developed numerical opti-
operation before all but a constant number of these gates mization software, it is helpful to replace the linear alge-
in order to prevent the number of terms required to track bra over GF (2) in this mathematical program with linear
one’s “Heisenberg frame” from growing exponentially. algebra over R. One way to do this is to introduce “slack
We develop MLE decoders for triangular 4.8.8 color variables” into the optimization problem. Because each
codes for the three noise model settings we study: code check operator in the code has Pauli weight four or Pauli
capacity, phenomenological, and circuit-based. For the weight eight, each row of H has Hamming weight four or
code-capacity and phenomenological settings, the only Hamming weight eight. This means that the f th compo-
operations are single-qubit measurements and identity nent of the vector on the left hand side of constraint (5) is
gates. This means that they involve no circuitry that a sum of four or eight binary xv variables that must equal
could map X errors to Z errors or vice-versa. Because of sf modulo 2. The modulo 2 restriction can be dropped by
this, and because our noise model is one in which single- replacing s by s + 2z1 + 4z2 + 8z3 in the constraint, where
qubit operations are subject to BP channel noise (which the zi are binary “slack variable” vectors that allow the
applies X errors and Z errors independently), decoding LHS to sum to any integer from 0 . . . 15. While there
can factor into bit-flip decoding and phase-flip decoding can be many degenerate solutions to this revised opti-
separately. Because color codes are also “strong” CSS mization problem having different zi values, any solution
codes [37], the MLE decoders for bit-flip and phase-flip generates the same optimal x as before. By combining
errors are in fact identical; for concreteness, we formulate the zi variables and the x variables into a single vector
the decoder for Zf syndrome bits here. y = (xT , zT1 , zT2 , zT3 )T , the slack-variable version of the
program becomes the following linear binary integer pro-
gram in which the variables are restricted to be binary
but in which the linear algebra is over R:
1. Code capacity MLE decoder
min cT y (7)
In the code-capacity setting, we have a single error- sto Ay = s (8)
free m-bit syndrome s = (s1 , . . . , sm )T where sf = 0 y ∈ Bn , (9)
when Zf is measured to have eigenvalue +1 and sf = 1
when Zf is measured to have eigenvalue −1. (The value where c is a vector containing n ones followed by 3m zeros
of m is a function of the code size; for the triangular and A is the matrix generated by adjoining matrices to
n-qubit distance-d 4.8.8 color code, m = (d + 1)2 /4 − 1 H as
and n = (d + 1)2 /2 − 1.) We assign a binary variable xv
to each vertex v indicating whether or not the recovery A := H | −2I | −4I | −8I , (10)
operation calls for the qubit at vertex v to be bit-flipped
(have Pauli X applied). The objective of MLE decod- in which each I denotes the m × m identity matrix.
ing is to minimize the number of xv variables that are There are a number of symmetries that color codes
assigned the value 1 subject to the constraint that the possess which allow one to significantly reduce the com-
parity of the xv variables on each face is consistent with plexity of this binary IP. For example, if y satisfies the
the observed syndrome. This can be expressed as the constraints of the IP, then so does y with any number
following mathematical optimization problem: of faces complemented. Since complementing the face of
X any optimal solution will not reduce its weight, we know
min xv (1) that each face’s sum will never be more than half the
v weight of that face. This means that for any particular
M instance of the IP specified by the syndrome vector s, the
sto xv = sf ∀f (2)
sums for the octagon and square faces can only take the
v∈f
syndrome-dependent values listed in Table II, thereby re-
xv ∈ B := {0, 1}. (3) ducing the number of slack variables required. We take
advantage of these kind of symmetries in the software we
This optimization problem can be expressed as a linear developed code for estimating the code capacity of 4.8.8
binary integer program (IP) over the finite field GF (2) triangular color codes. For example, we never need to
9
Octagon Square
s = 0 0, 2, 4 0, 2
s=1 1, 3 1
(7)
pfail = p31 + 31p30 (1 − p) + 465p29 (1 − p)2 + 4495p28 (1 − p)3 + 25658p27 (1 − p)4 + 96790p26 (1 − p)5 (30)
25 6 24 7 23 8 22 9
+ 344858p (1 − p) + 1288630p (1 − p) + 3742943p (1 − p) + 10488241p (1 − p)
+ 21436239p21 (1 − p)10 + 44259329p20 (1 − p)11 + 67781868p19 (1 − p)12 + 106951476p18 (1 − p)13
+ 127137964p17 (1 − p)14 + 155845748p16 (1 − p)15 + 144694447p15 (1 − p)16 + 138044561p14 (1 − p)17
+ 99301599p13 (1 − p)18 + 73338657p12 (1 − p)19 + 40412986p11 (1 − p)20 + 22915926p10 (1 − p)21
+ 9671834p9 (1 − p)22 + 4145782p8 (1 − p)23 + 1340945p7 (1 − p)24 + 391423p6 (1 − p)25 + 73121p5 (1 − p)26
+ 5807p4 (1 − p)27 .
PFailure
0.25 0.14
and checked whether or not it led to a decoding failure 0.15 0.101 0.103 0.105 0.107 0.109 0.111 0.1422
0.142
for the MLE decoder. The optimal unbiased estimator 0.1 0.1418
0.1416
for pfail that we used is 0.05
0.1414
0.1412
0.141
0.1054 0.1055 0.1056 0.1057
(est) Nfail 0
pfail = (31) 0 0.05 0.1
PError
0.15 0.2
N
with a variance of
(est) (est)
pfail 1 − pfail FIG. 10: Code capacity for the 4.8.8 triangular color codes.
2
(σfail )(est) = . (32) pth = 10.56(1)%. Error bars on Monte Carlo data reflect 105
N instances studied at each of the three corresponding values of
To get reasonably small error bars in these estimates, p. The inset figures are zoom-ins near the crossing point to
show greater resolution there.
given where we believed the threshold to be, we chose
N = 105 . The polynomials for pfail (p) are plotted in
Fig. 10, including our three points of Monte Carlo data.
From these plots, we estimate the accuracy threshold for phase transition in a random-bond Ising model (RBIM)
this noise model to be 10.56(1)%. The error we report of classical spins [16, 23]. For the color codes, the Ising
in this value comes from the error analysis method we model features 3-body interactions, whereas for the sur-
describe in detail in the next section. face codes, the Ising model features 2-body interactions.
To put our result in context, we reference Table I. The MLE decoder in both settings corresponds to the
The threshold value of 10.56(1)% we find is is slightly order-disorder transition in the spin model at zero tem-
higher than the corresponding MLE threshold for the perature, whereas the optimal decoder corresponds to
code capacity 10.31(1)% of 4.4.4.4 surface codes. In- the order-disorder transition at the temperature along
tuitively this makes sense, as the 4.8.8 color code has the so-called “Nishimori line,” where the randomness in
both weight-8 and weight-4 stabilizer generators, both the bond couplings equals the randomness in the state
of which are modeled as being measured instantaneously arising from finite temperature fluctuations. In both the
and ideally. Being able to measure high-weight genera- surface-code and color-code settings, the small decrease
tors quickly should improve the performance of a code, in accuracy threshold when going from optimal to MLE
which is the effect we observe. decoding reflects that the phase-boundary in these mod-
Our threshold is also less than the threshold value of els is re-entrant, but only by a small amount. Our results
10.925(5)% for optimal decoding, which is also not sur- therefore imply a violation of the so-called Nishimori con-
prising. As with the 4.4.4.4 surface codes, the reduction jecture [53, 54], which conjectures that the spin model
in threshold is not very significant. For both the surface shouldn’t become more ordered as the temperature in-
codes and the 4.8.8 color codes, the accuracy thresh- creases. The violation that our results imply is depicted
old in the code capacity noise model corresponds to a in cartoon fashion in Fig. 11. To our knowledge, the vio-
12
lation of the Nishimori conjecture for the 3-body RBIM Algorithm 1 : pfail (p) by Monte Carlo
is unknown before our work. We expand more on this
connection in Sec. VII B. 1: nfaces ← 14 (d + 1)2 − 1.
2: for i = 1 to N do
P if ( i E 0 [i] ⊕ Emin
L 0
15: [i] = 1) then
Pc,0 Pc 16: Nfail ← Nfail + 1.
17: end if
FIG. 11: Phase diagram for 3-body random-bond Ising 18: end for
model. The dark circle is called the Nishimori point. The (est)
19: return pfail = Nfail /N .
dotted line is the expected phase boundary given by the Nishi-
mori conjecture. Our value of code capacity (10.56(1)%) es-
tablishes that the T = 0 intercept is Pc,0 , while results of
Ohzeki [25] (10.925(5)%) establish that the Nishimori point are depicted in Fig. 12. Just as for surface codes, the
occurs at Pc . Because P c 6= Pc,0 , the Nishimori conjecture phenomenological noise MLE decoder can be mapped
for this model is false. to a random-plaquette gauge model (RPGM) on clas-
sical spins such that the zero-temperature order-disorder
phase transition in the spin model corresponds to the ac-
curacy threshold of the color codes. Because of this, as
B. Phenomenological noise model argued in Ref. [27], the mutual intersection of the curves
in Fig. 12 at the threshold pc corresponds to critical be-
havior in the spin model such that the spin correlation
In the phenomenological noise model, our fault-
length ξ scales as
tolerant quantum error correction protocol repeats syn-
drome extraction multiple times to increase the reliability ξ ∼ |p − pc |−ν0 , (33)
of the syndrome bits. This causes the number of possi-
ble error patterns for a given code size to grow so rapidly where ν0 is a critical exponent set by the universality
that obtaining exact curves for pfail (p) even for small code class of the spin model.
sizes is intractable. We therefore resorted to Monte Carlo
estimates for these curves for even the smallest code sizes.
The specific Monte Carlo algorithm we used for comput- 0.2
ing pfail at a fixed value of p is listed in Algorithm 1. d=5
d=7
d=9
In words, Algorithm 1 creates an estimator for pfail 0.18
For a sufficiently large code distance d, then, the failure C. Circuit-level noise model
probability should scale as
pfail = (p − pc )d1/ν0 . (34) As with the phenomenological noise model, computing
pfail (p) exactly even for small code sizes is intractable, so
We use our Monte Carlo data to fit to this form, but we again appeal to Monte Carlo estimation. Our Monte
as in Ref. [27], we allow for systematic corrections com- Carlo simulation algorithm is similar to Algorithm 1, ex-
ing from finite-size effects that create a constant offset. cept the manner in which the error pattern E is generated
Specifically, we use the method of differential corrections is different. To generate E, we simulate BP and DP chan-
[55] to fit the curves to the form nel noise as described by the noise model on the explicit
pfail = A + B(p − pc )d1/ν0 . (35) circuit given for syndrome extraction. This results in a
correlated error model for syndrome and data qubits. We
The linear fits to our data are plotted in Fig. 13. Using then use the phenomenological noise MLE decoder and
the software of Ref. [55], we found the following values assess success or failure as we did for that noise model.
for pc and ν0 : We estimated the pfail (p) curves for several small 4.8.8
pc = 0.030 534 ± 0.000 385 (36) triangular color codes for both the X-then-Z schedule of
Fig. 6 and the interleaved X-Z schedule of Fig. 7. Our
ν0 = 1.486 681 ± 0.166 837. (37)
results are plotted in Figs. 14 and 15.
0.2 0.6
d=5 d=5
d=7 d=7
d=9 d=9
0.5
0.15
0.4
PFailure
PFailure
0.14
0.1 0.3
0.12
0.10
0.2 0.08
0.06
0.05
0.04
0.1
0.02
0.0006 0.0007 0.0008 0.0009 0.0010
0 0
0.02 0.025 0.03 0.035 0.04 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01
PError PError
FIG. 13: Linear fit near curve crossings of phenomenological- FIG. 14: Monte Carlo data used to estimate accuracy thresh-
noise-model Monte Carlo data. Estimated accuracy threshold old in the circuit-based noise model in which the noninter-
is pth = 3.05(4)%. leaved syndrome extraction circuit is used.
To put our results in context, as we did in the code ca- To compute the accuracy thresholds from our data,
pacity setting, we reference Table I. For the same reasons we again fit our data near the crossings to an equations
as in the code capacity noise model setting, the threshold whose form is similar to that of by Eq. (35). However, the
we compute is larger than the MLE decoder’s threshold motivation for such a fit is a bit more tenuous in this case
for the 4.4.4.4 surface codes. We conjecture that is it because while the MLE decoder we are using maps to a
also measurably less than the threshold for the optimal RPGM, the noise model which generates it is correlated.
color-code decoder, as is the case for optimal vs. MLE For this reason, as also found in Ref. [27], we found it
decoding for surface codes. So far, the threshold for opti- necessary to include a quadratic term, unlike the case for
mal decoding of 4.8.8 color codes has not been estimated, the pure phenomenological noise model. In other words,
but the analysis for optimal decoding of 6.6.6 color codes we fit our data to an equation of the form
suggests that the threshold will be near 4.5%. If true, our pfail = A + B(p − pc )d1/ν0 + C(p − pc )2 d2/ν0 . (38)
data would signal a violation of the Nishimori conjecture
for the RPGM associated with the 4.8.8 color code, some- The quadratic fits to our data for the X-then-Z sched-
thing we are not aware of being reported elsewhere. ule are plotted in Fig. 16. Again using the software of
Finally, we note that while the value of ν0 is consistent Ref. [55], we found the following values for pc and ν0 for
with value of ν0 = 1.463(6) obtained for the 4.4.4.4 sur- the X-then-Z schedule:
face code [27] and the 6.6.6 color code, the uncertainty in
pc = 0.000 820 ± 0.000 022 (39)
the value we obtained is too high to draw any meaningful
conclusions. ν0 = 1.350 954 ± 0.079 188. (40)
14
0.1
generators. This causes the circuits for extracting the
0.18
syndrome for the weight-8 generators in the 4.8.8 codes
0.08 0.16
0.14 to be larger, inviting more avenues for failure. Indeed, we
0.12
0.06
0.1 have investigated the finite-sized error-propagation pat-
0.08
0.04 0.06 terns for the 4.8.8 codes such as the one depicted in Fig. 8,
0.04
0.02
0.02
0
and they are significantly larger and more complex than
0.0006 0.0008 0.001 0.0012 0.0014
the corresponding patterns for the 4.4.4.4 surface codes.
0
0.0006 0.0008 0.001 0.0012 0.0014 0.0016 0.0018 0.002 Expanding this line of reasoning, we predict that the 6.6.6
PError color codes will have an MLE-decoded accuracy thresh-
old in the circuit-based noise model that is somewhere
between the 4.8.8 and 4.4.4.4 accuracy thresholds in this
noise model.
FIG. 15: Monte Carlo data used to estimate the accuracy
threshold in the circuit-based noise model in which the inter-
leaved syndrome extraction circuit is used.
V. ANALYTIC BOUND ON THE ACCURACY
THRESHOLD FOR FAULT-TOLERANT
To be clear, there is both a Z-error and an X-error QUANTUM ERROR CORRECTION
accuracy threshold; we report the smaller of the two here.
While numerical estimates of the accuracy threshold
are valuable, equally valuable are analytic proofs that the
0.1
d=5 accuracy threshold is no smaller than a given value. One
d=7
0.09 d=9 method of obtaining such a lower bound is to use the self-
0.08
avoiding walk (SAW) method, first proposed in Ref. [16].
The idea behind this method begins with the observation
0.07
that our goal is to lower-bound the failure probability of
PFailure
a “walk” or attempting to bound the behavior of the Fig. 17. To our knowledge, the connective constant for
process by a true SAW method is dubious at best. For this lattice is not known, but it could be computed in
this reason, we have chosen to omit bounding the accu- principle using standard methods, e.g., those outlined in
racy threshold in the circuit-level noise model and instead Refs. [56–58]. We opted to bypass this analysis and in-
have bounded the accuracy threshold only for the other stead compute a coarser bound on the failure probability.
two noise models, as described below.
The accuracy threshold for the identity gate is exactly 3. Hadamard gate
the same as the accuracy threshold for fault-tolerant
quantum error correction, by definition. Schematically, The color codes are strong CSS codes, meaning that
Fig. 18 depicts the noisy identity gate circuit. the X-type and Z-type stabilizer generators have the
17
D BP D
= (53)
P S P QEC = S PP QEC (58)
BP QEC QEC
FIG. 21: Noisy phase gate. B indicates the action of the bit-
FIG. 19: Noisy CNOT . BP indicates the action of the BP
flip channel; P indicates the action of the phase-flip channel.
channel; D indicates the action of the DP channel.
MZ %"#$ MZ %"#$
The color codes have the feature that each stabilizer
MX %"#$ MX %"#$
generator for the code has a Pauli weight equal to 0 mod B CEC = B CEC (62)
4 and each pair of generators are incident on 0 mod 2 P CEC = B CEC (63)
qubits. One can show that because of this, the encoded
phase gate (S) has a transversal implementation [20, 60].
(Technically, it is the transversal S † operation that acts FIG. 22: Noisy measurements. B denotes the bit-flip chan-
as an encoded S.) nel, P denotes the phase-flip channel, and CEC denotes clas-
sical error correction of the measurement outcomes. Post-
While a faulty phase gate acts as an ideal phase gate
measured states are drawn with double lines to indicate that
followed by a BP channel, the phase gate itself does not they are “classical.”
propagate the BP channel preceding it symmetrically for
bit flips and phase flips. This follows from the conjuga-
The correctness of this procedure follows from the fact
tion actions
that X and Z operators can be expressed as Z = S 2
SXS † = Y = iXZ SZS † = Z. (56) and X = HZH, and the encoded operations H and S
have previously been demonstrated to have transversal
The phase gate therefore propagates a phase flip to a encoded implementations. Bit or phase errors (as rele-
phase flip and a bit flip to both a bit-flip and a phase vant) before a measurement then map to bit errors on
flip, as depicted in Fig. 21. the observed classical bit pattern.
The phase gate is correspondingly more sensitive to The reason the measurement is destructive is that af-
phase-flip noise because the effective phase-flip strength ter the measurement, the qubits are no longer in the
18
codespace of the color code; the post-measured state is Fig. 22, has a rather high threshold equal to the code
not projected onto an X or Z eigenstate in the codespace. capacity even in the circuit-level noise model. However,
However, as pointed out by Steane [46], given the abil- it is lowered slightly by the fact the effective error rate
ity to prepare encoded |+i states, a circuit composed of is 23 p, as discussed in the analysis of the encoded CNOT
transversal CNOT and transversal destructive MX mea- gate. The other output enters a standard quantum error
surements can implement nondestructive MX measure- correction circuit, also subject to noise of strength 23 p.
ments transversally. A similar story holds for encoded Since the lowest threshold of these two thresholds is this
|0i states and MZ measurements. The circuits for gen- one, the overall threshold for an encoded nondestructive
erating these nondestructive measurements transversally measurement is the same as the threshold for the encoded
are depicted in Fig. 23. Because the encoded |0i and CNOT gate. Namely, we have the result that
|+i states are being used to enable gates, namely nonde-
structive encoded measurements, these states are called (MX ,nondestructive) (CNOT ) 2 (I)
pth = pth = p , (66)
“magic states” for the gates [61]. Ordinarily, quantum er- 3 th
ror correction would follow not just one, but both of the (MZ ,nondestructive) (CNOT ) 2 (I)
pth = pth = pth . (67)
outputs of the encoded CNOT gate in these circuits, but 3
because one of the encoded qubits is destructively mea-
sured immediately after the CNOT gate, that encoded
6. |0i and |+i preparation
qubit does not require quantum error correction; it will
be effectively performed by the classical error correction
process occurring after the destructive measurement. It is tempting to assert that the way to fault-tolerantly
prepare the encoded |0i state is to perform an encoded
|ψi QEC MX |ψi nondestructive MZ measurement. The flaw with this
reasoning is that the nondestructive MZ measurement
|0i • MX CEC requires the encoded |+i state as a magic state, and the
analogous way of preparing a |+i state requires a |0i
|ψi • QEC MZ |ψi state.
To get out of this chicken-and-egg cycle, one must use
|+i MZ CEC an independent process. We describe a two-step process
that works for preparation of an encoded |0i state; the
process for preparing an encoded |+i state is similar.
FIG. 23: Circuits for nondestructive encoded MX and MZ ,
using the states |0i and |+i as “magic states.” The first step is to prepare the product state |0i⊗n by
transversally measuring MZ on each physical qubit. This
state is a stabilizer state, having n check operators, with
The threshold for destructive MZ and MX measure- check operator i being Z on qubit i for i = 1, . . . n. The
ments is the same as the code capacity threshold for the second step is to fault-tolerantly measure the X checks
code, regardless of which noise model we are considering. for the color code. Because the only Z-type operators
This is because the physical measurements are made only consistent with all the X checks are the color codes’ Z
once, as repetition cannot improve their effective error checks for the color code and the logical Z operator, these
rate. The (flawless) classical error correction performed measurements will transform the state into the logical |0i
in post-processing has a threshold equal to the code ca- state.
pacity threshold. Hence, we have the result that It turns out that it is not necessary to also fault-
(MX ,destructive) (I,code capacity) tolerantly measure the Z checks for the color code. The
pth = pth , (64)
state is already in an eigenstate of these operators at
(M ,destructive) (I,code capacity)
pth Z = pth . (65) this point, so all the measurements can do is yield syn-
drome bits. Had one obtained these bits and processed
Although these measurements need only be smaller them, the post-corrected state would still have been sub-
than the code capacity threshold to implement the en- ject to X errors drawn from the same distribution as the
coded measurement, when these measurements are used X errors afflicting the initial |0i⊗n preparation—fault-
in the fault-tolerant quantum error correction protocol, tolerant error correction doesn’t suppress the final error
they must be smaller than the threshold set by the pre- rate to zero, it only keeps it at the same rate one started
vailing noise model—a threshold that may be signifi- with.
cantly lower. The threshold for preparation of encoded |0i and |+i
To compute the threshold for nondestructive MZ and states is therefore the same as the threshold for fault-
MX measurements, we examine how errors propagate tolerant quantum error correction, namely,
through the circuits in Fig. 23. As with the analysis of
Fig. 19, the effective noise channel we need to consider af- (|0i) (|+i) (I)
pth = pth = pth . (68)
ter the CNOT gate is the BP channel followed by the DP
channel on each output. One of these enters a destruc- It is worth noting that while the process for fault-
tive measurement, which, as we found in the analysis of tolerantly preparing |0i and |+i states is not strictly
19
transversal, the only nontransversal operation is fault- then “distilled” using encoded gates until the resultant
tolerant quantum error correction, a process that is re- |π/4i states have an error below the accuracy threshold.
quired in addition to transversal operations in any event In the second, high-quality |π/4i states are first distilled
in order to achieve fault-tolerant quantum computation. and then injected into the code. The circuit depicted in
_ _ _ _ _ _ _ _ _ _
|M i • MX
• Unencode%"#$ MZ
7. T gate
0 / H •
Another gate that admits a transversal implementation _ _ _ _ _ _ _ _ _ _
with a magic state is the T gate, also called the π/8 gate, 0 / X Z M
defined as
" # " # FIG. 25: Circuit for injecting a single-qubit magic state M .
iπ/8 The circuit for multi-qubit magic states is similar.
1 0 −iπ/8 e 0
T := =e . (69)
0 e−iπ/4 0 e−iπ/8
Fig. 25 is not fault-tolerant, but faults are already sup-
If we we have an encoded version of the state pressed by the code on the encoded qubits; only opera-
tions from the latter-half of the decoding circuit onwards
|π/4i := T H|0i (70) are unprotected.
1 Unlike all of the previous encoded gates, this method
= √ |0i + eiπ/4 |1i , (71) for implementing an encoded |π/4i preparation requires
2
an operation which is neither transversal nor fault-
also called |Ai and |Aπ/4 i in the literature, we can im- tolerant quantum error correction. The “unencoding”
plement the T gate transversally using the circuit of portion of the circuit is the time-reversed coherent cir-
Fig. 24. This circuit is not a Clifford circuit, because the cuit for encoding a state in the color code, derivable via
classically-controlled S gate is not a Clifford gate. Never- standard stabilizer codes as shown in Ref. [50]. This
theless, it only uses gates that we have previously shown unencoding circuit does not appear to have a transver-
how to implement in encoded form by purely transversal sal implementation. While the Eastin-Knill theorem [62]
operations. asserts that at least one nontransversal operation is re-
quired to generate a universal set of encoded gates, it
|ψi • QEC S QEC does not guarantee that no transversal implementation
of this circuit exists. That is because the process of fault-
|π/4i MZ CEC • tolerant quantum error correction used to prepare |0i and
|+i states is not transversal. For 3D color codes [63],
FIG. 24: Magic-state circuit for the T gate. in which T is intrinsically transversal and in which en-
coded |0i and |+i states still require fault-tolerant quan-
To compute the T gate threshold, we again study error tum error correction for preparation, only transversal and
propagation through its defining circuit, viz.the circuit in FTQEC operations are needed, for example. It would be
Fig. 24. As shown previously, the CNOT gate creates an interesting to develop a variant of the circuit in Fig. 25
input to the first QEC cycle that has a threshold of 2/3 which only uses transversal operations and possibly fault-
of the standard QEC threshold. The S gate creates an tolerant quantum error correction to inject a |π/4i state
input to the second QEC cycle which splits the thresh- into 2D color codes. We leave that for others to explore.
old into bit-flip and phase-flip thresholds approximately While the portion of the circuit in Fig. 25 in which the
equal to 1/2 and 1/3 of the standard QEC threshold. physical |M i state interacts with the unencoded qubit
The threshold for the T gate is set by the smallest of via a CNOT appears to also not be transversal, it can
these, namely the S gate threshold, which is be made so with slight modification. In principle, one
could prepare n states of the form |M i and transversally
1 1 1 (I)
q
(T,bit-flip)
pth = −
(I)
1 − 2pth ≈ pth , (72) apply the CNOT gate between these and the code block,
2 2 2 but only the one qubit corresponding to the unencoded
(T,phase-flip) 1 (I) state will be used to classically control the X and Z gates
pth = x ≈ pth . (73)
3 that are used to inject the correct state. As usual, these
corrections do not need to be actually implemented, only
used to update the Pauli frame.
8. |π/4i preparation Both alternatives for preparing high-quality encoded
|π/4i states require a procedure for magic-state distil-
There are two alternatives for preparing encoded |π/4i lation. One option is to use the encoding circuit for
states fault-tolerantly described in the literature. In the the 15-qubit Reed-Muller code [6] (also the smallest 3D
first, low-fidelity |π/4i states are “injected” into the code color code [63]) run in reverse, as depicted in Fig. 26.
by teleportation, using the circuit in Fig. 25 [10], and For it to work, the initial states must have an error less
20
than the |π/4i distillation threshold. For the circuit de- used. The first is fault-tolerant quantum error correc-
picted in Fig. 26, the distillation threshold for indepen- tion, a process that is required in addition to encoded
dent, identically
√ distributed (iid) depolarizing noise is computations in any event for the entire protocol to
(6 − 2 2)/7 ≈ 45.3% [64, 65], for dephasing iid noise be fault tolerant. The second is the time-reversed
√ √
is ( 2 −√ 1)/ 2 ≈√29.3% [64, 66], and for worst-case iid coherent encoding circuit for color codes. Such a circuit
noise is ( 2−1)/2 2 ≈ 14.6% [64, 66]. The entire circuit is useful for encoding unknown quantum states, but
must be run O(poly(ε−1 )) times to achieve an output in an actual quantum computation, the input state is
error less than ε; convergence should be quite rapid in known so it is not needed for this purpose. Whether
practice given the actual polynomial [64]. Various tricks this “unencoding circuit” can be replaced with another
can be used to boost the distillation threshold and reduce operation which uses only transversal operations and
the resources required to achieve high-fidelity states; any fault-tolerant quantum error correction is an interesting
of these can be readily adapted to this setting. open question. For 3D color codes, we know that the
E answer is “yes.”
π/4
g • MX The “pancake architecture,” described in Ref. [16] for
E the Kitaev surface-codes, realizes the encoded gate set
we described using only gates between spatially neigh-
π/4
g • MX
E boring qubits. One difference in our analysis from that
π/4
g • |π/4i performed in Ref. [16] is that we have analyzed the accu-
racy threshold not only for fault-tolerant quantum mem-
E
π/4 • MX
color (red, green, or blue) and an operator of a definite introduces a number of “gauge” qubits in the interior of
Pauli type (X or Z). Notationally, we will refer to a gen- the defect that can be ignored; the details of this are
erator as a (c, P ) generator if it is of color c and Pauli type described in the next section.
P . To prepare an encoded qubit in our color code sub-
strate, we remove a connected product of stabilizer gen-
erators of the same color and type. (Generally removal 2. Growing, shrinking, and moving defects
of any element of the stabilizer group will yield a logical
qubit; we restrict attention to this class for simplicity.) We grow a (c, P ) defect qubit on region q in the fol-
We call this removed region a defect in analogy with the lowing way. Suppose we would like to extend the defect
language used by Raussendorf et al. in Ref. [17]. This so that it includes an adjacent region q 0 of the same color
removal is entirely passive—we simply cease measuring and type. (By adjacent, we mean that the regions can
this product of stabilizer generators in future quantum be connected by a single two-qubit c-colored link.) To
error correction rounds. For this reason, it is manifestly do this, we first perform the following conditional opera-
a fault-tolerant process. tion. If P = X, then we measure ZZ on a c-colored link
In the following sections, we describe how to perform connecting the regions, while if P = Z, then we measure
a universal repertoire of encoded logic gates on defect- XX on a c-colored link connecting the regions. Exam-
based logical qubits, with arbitrarily high fidelity. This is ples of how this works for octagonal and square defects
therefore a prescription for fault-tolerant quantum com- are depicted in Figs. 27 and 28; the circuit in Fig. 29
putation using code deformation. implements this transformation. A Y Y operator can be
used to grow a X and Z-type defect at the same time.
|0i • • MZ
along a c-colored chain of qubits from the plaquette we
wish to store the logical qubit in and the nearest c-colored |ψi
boundary. This projects each qubit along the chain into
|ψi
either |+i or |−i (resp. |0i or |1i), which we can interpret
as |+i (resp. |0i) for each qubit by changing local Pauli FIG. 29: Measurement of XX to grow a Z-type defect. The
bases. We then measure the Z-checks (resp. X-checks) measurement can be performed with existing circuitry already
incident on this chain except the one at the defect loca- in place for syndrome extraction.
tion and correct any errors, which places the defect back
into the substrate in the desired state. After this measurement, the new collective defect op-
An arbitrarily large c-colored defect can be prepared erator is the product of the q and q 0 defect operators.
in a single step by ceasing to measure a collection of The ±XX or ±ZZ operator has also been added to the
c-connected defects by a similar process, enabling the list of stabilizer generators. As usual, we do not need to
preparation process to be made arbitrarily reliable. This actually correct the result to a +1 outcome: it suffices
22
to update the Pauli frames of the stabilizer generators tolerance to errors of one Pauli type will be significantly
incident on these two interior qubits. lower, but this will not be of the type that disturbs the
Because we will no longer use the weight-two opera- measurement.
tor, we may consider it to also be a “gauge” operator To nondestructively measure a defect, one uses the cir-
in the language of subsystem stabilizer codes [68]. This cuit of Fig. 23, which uses destructive measurement of
also makes its anticommuting partner a gauge operator, MZ or MX , preparation of |0i or |+i, and the CNOT
which we may interpret to be either of the original de- gate described in the next section.
fect operators (on q or q 0 ). By introducing these two
new gauge operators, we may reinterpret the defect log-
ical operator on the collective q and q 0 region as acting 4. CNOT gate between defects
solely on its boundary. In particular, the interior of the
collective q and q 0 region need never be involved in future
syndrome extractions. It is straightforward to show that moving a (c, Z) de-
An important question is whether the defect growth fect qubit around a (c0 , X) defect qubit (or vice-versa)
process is fault-tolerant. The simplest circuit for mea- generates an encoded CNOT gate controlled by the (c, Z)
suring XX or ZZ would perform CNOT gates into or defect when c and c0 are different colors; the construc-
out of an ancilla qubit to each of the two relevant qubits, tion is essentially the same as that in Refs. [17, 49, 67].
as depicted in Fig. 29. Although a single error in this Since this process traces out a braid in spacetime, we
ancilla qubit could propagate to two errors on the two in- call this process “braiding defects.” Also drawing upon
terior qubits, because we subsequently treat these qubits Refs. [17, 67], one can generate a CNOT gate between
as encoding a gauge qubit, we do not worry about errors two Z-type defects or two X-type defects, whether they
on these. It could still be the case that the value of the are the same color or not. The circuit for doing this be-
measurement obtained is incorrect, which impacts the tween two Z-type defects is depicted in Fig. 30; the cir-
update of the Pauli frame of the two adjacent stabilizer cuit for doing this between two X-type defects is similar.
generators in a correlated way. Thus a single syndrome
ject |π/4i states, but also inject |π/2i states as well.
|ψi S X S H |ψi However, the impact of errors introduced by errant in-
jection has not been studied to our knowledge. It is un-
|+i • S MX clear whether considering it will significantly alter the
high threshold values numerically estimated for surface
FIG. 32: Circuit for simulating H with previously-described codes—the difference between a 1% accuracy threshold
gates. and a 14% distillation threshold is not that great, so it
is reasonable to expect that it may be quite important,
efficient way to perform this gate that we describe here. especially because injection generates small-sized defects
24
that are not arbitrarily well-protected from noise at first. codes in the code-capacity noise model is 10.56(1)%. This
We do not investigate the impact of the injection process is not significantly different from what had previously
on the threshold for color codes here either, but we ex- been estimated for optimal decoding of these and the
pect that it will be less consequential because the value 6.6.6 color codes, or most-likely-error or optimal decod-
of the color-code accuracy threshold is much lower than ing of Kitaev’s 4.4.4.4 surface codes. Indeed, the upper
that for the surface codes. bound for any CSS code is slightly more than 11%, so
To inject into a (c, Z) defect, we identify the corner of all of these codes perform close to optimally in this noise
the triangular substrate containing the c-colored plaque- model. To support our numerical estimate, we proved
tte and measure MZ on the qubit in the corner, isolating that the threshold is at least 8.335 745 (1)% using a self-
it from the code. We then apply T H to the corner qubit avoiding walk technique.
and then measure the weight-four X check in the corner, Our numerically-estimated value for the accuracy
bringing the corner qubit back into the code. We then threshold of most-likely-error fault-tolerant quantum er-
cease measuring the Z check in the standard way, creat- ror correction for 4.8.8 color codes in the phenomeno-
ing a single-plaquette Z-type defect in the corner. This logical noise model is 3.05(4)%. Again, this is not sig-
defect is not well protected from noise, so we move it nificantly different from what had previously been esti-
from the corner and grow it as fast as we can, so that the mated for optimal decoding of the 6.6.6 color codes, or
ambient noise doesn’t degrade the fidelity of the encoded most-likely-error or optimal decoding of Kitaev’s 4.4.4.4
state. surface codes. We attribute the nominal improvement we
find relative to Kitaev’s surface codes for both this and
the previous noise model to the fact that the color codes
8. T gate on a defect have higher-weight stabilizer generators, which should
be modeled as more errant, but which aren’t in these
Given |π/4i defect qubits, we can distill them and use noise models. To support our numerical estimate, we
them to perform the T gate in the same way as described proved that the threshold is at least 0.3096% using a
in Secs. VI A 7 and VI A 8 for the “pancake” architecture. self-avoiding walk technique.
Our numerically-estimated value for most-likely-error
fault-tolerant quantum error correction for 4.8.8 color
VII. CONCLUSIONS codes in the circuit-based noise model is 0.082(3)%. By
attempting to optimize the syndrome extraction circuit
A. Fault-tolerant quantum computation by hand, we ended up surprisingly decreasing our thresh-
old estimate to 0.080(3)%, suggesting that optimizing the
We studied fault-tolerant quantum computation using syndrome extraction circuit to find the highest threshold
color codes, inspired by (a) the need to minimize qubit is a nontrivial task. Unlike our findings for the previ-
transport in real technologies having 2D layouts and (b) ous two noise models, our accuracy-threshold estimate is
the high accuracy thresholds reported for similar topo- in fact significantly different from what had previously
logical codes. We framed our study with a well-defined been estimated for most-likely-error decoding of Kitaev’s
quantum control model and three physically-motivated 4.4.4.4 surface codes—it is nearly a tenth the comparable
noise models of increasing realism which we call the code- value of 0.68%. That said, it is consistent with the value
capacity noise model, the phenomenological noise model, of “about 0.1%” estimated using a different suboptimal
and the circuit-based noise model. decoder for these codes considered in Ref. [22]. However,
The strategy behind our study was to first understand the estimate in Ref. [22] lacked any error analysis, so it is
how to fault-tolerantly simulate the identity gate via hard to determine how consistent these results truly are.
fault-tolerant quantum error correction and then extend We believe that the reduction in threshold relative to the
this understanding to how to fault-tolerantly simulate a surface code threshold comes from the increased weight
universal set of quantum gates capable of general-purpose of the stabilizer generators for the 4.8.8 color code. Based
quantum computation. on this, we predict that the 6.6.6 color codes will have
In the course of studying fault-tolerant quantum er- a quantum error-correction accuracy threshold for this
ror correction, we formulated most-likely-error decoding noise model somewhere between 0.082(3)% and 0.68%
for color codes as a mathematical optimization problem without any additional optimizations. We did not prove
known as an integer program. We also developed fea- a lower bound on the threshold in this noise model, as the
sible schedules for parallelized syndrome extraction for self-avoiding walk technique breaks down for this noise
the most efficient family of color codes, the 4.8.8 color model.
codes. To better understand the performance of our To extend our results to general-purpose fault-tolerant
decoder, we elaborated a previously-established connec- quantum computing, we considered two different ap-
tion between the performance of our decoder and some proaches. In the first, the architecture consisted of 2D
statistical-mechanical classical spin models. surfaces stacked like pancakes in which each surface cor-
Our numerically-estimated value for most-likely-error responded to a logical qubit and almost all operations
fault-tolerant quantum error correction for 4.8.8 color were either global transversal operations or local syn-
25
drome extraction operations. In the second, the archi- an “energy-minimizing” decoder in this paradigm, cor-
tecture consisted of an extended 2D surface in which log- responding to the phase boundary at zero temperature.
ical qubits were associated with “defects” and almost all Because our code-capacity value of 10.56(1)% is lower
operations were either defect braiding by local measure- than the code capacity of 10.925(5)% of a “free-energy-
ments or local syndrome extraction operations. minimizing” decoder implicitly explored by Ohzeki [25],
In the “pancake” architecture, we showed that en- this demonstrates that the phase boundary of the 3BR-
coded universal quantum computation was possible us- BIM is “re-entrant” as depicted in Fig. 11, violating the
ing only local stabilizer measurements, global transversal so-called Nishimori conjecture for this system. This re-
operations, and the time-reversed coherent encoding cir- sult is counterintuitive because it states that the 3BR-
cuit for the color code, which was used to inject magic BIM can become more ordered by increasing the tem-
states. Each gate in this architecture has its own accu- perature, depending on the system’s quenched disorder
racy threshold that is a significant fraction of the quan- parameter. It would be exciting to see experimental con-
tum error correction (memory) threshold. firmation of this effect.
In the “defect” architecture, we showed that encoded
universal quantum computation was possible using only
local stabilizer measurements, code deformation, and C. Future directions
transversal operations on isolated regions. These de-
formations came in different forms, including growing While we have been able to answer many questions
small defects into large ones, braiding defects around about fault-tolerant quantum computing using color
each other for encoded CNOT gates, and isolating defects codes, practicalities have necessarily limited the focus of
from the rest of the code. Each gate has the same accu- our analysis, leaving other related questions open. Our
racy threshold as the quantum error correction (memory) results also also raise new questions that we believe are
threshold, although errors afflicting injected magic state worthy of study.
defects before they are grown to full size may dominate One future direction we mentioned is optimizing the
the threshold for the less realistic code-capacity and phe- syndrome extraction circuit. One could also examine us-
nomenological noise models. ing more elaborate ancilla states in the circuit, such as
Because the defect architecture has a higher threshold those used in the schemes proposed by Shor [1], Steane
and is more consistent with the original motivation for [46], and Knill [10]. In any scheme one chooses, further
our study—namely that many technologies are restricted improvement may still be possible by transforming the
to a single 2D layout—we believe the defect-based ap- circuit used in an implementation.
proach to be the most practical. To that end, we ex- Another future direction we alluded to is optimizing
tended some of the defect-based approach for color codes the decoding algorithm. One could examine the per-
presented in Ref. [49] so that a significantly higher den- formance of the truly optimal decoder for the circuit
sity of defects can be stored and processed in the surface. model which accounts for the correlations in the noise
induced by the syndrome extraction circuit. This will
yield an upper bound on the accuracy threshold for the
B. Relation to statistical-mechanical phase noise model(s) studied. On the other end of the spec-
transitions trum, it would be useful to explore the performance of
faster decoders which don’t yield as high a threshold as
It has been previously established that there is a the MLE decoder but which may be more valuable in
mapping between quantum color codes and a classical practice. The renormalization group decoder [70] and
statistical-mechanical model known as the three-body minimum-weight perfect matching decoder [16] (using a
random-bond Ising model (3BRBIM). In this mapping, mapping of one color code to two Kitaev surface codes
each check maps to a classical ±1 spin and each qubit [24]) are examples of this. Another alternative is to gen-
maps to a three-body interaction, with the interaction eralize the results of Feldman et al., who developed an
being ferromagnetic if the qubit is not in error and anti- efficient linear-program decoder for binary codes based
ferromagnetic if it is. Specifically, the Hamiltonian con- on an integer-program-based decoder similar to the one
structed by this mapping is we developed here [71].
X Y The lower bound technique of self-avoiding walks that
H= Jq Sc , (74) we used is certainly not the tightest, and it may be of
qubits q checks c3q interest to establish tighter lower bounds. For tighter
bounds, it may be possible to use different techniques.
where Jq ∈ ±1 indicates a flip on qubit q and Sc ∈ ±1 In the case of the circuit-based noise model, the self-
indicates the eigenvalue of the check c. avoiding walk bound technique breaks down dramati-
A feature of the mapping is that the code capacity for cally, and it would be worth exploring other lower-bound
any particular decoding algorithm represents a point on techniques in this setting.
the boundary of the order-disorder transition of the as- While we believe the noise and control model that we
sociated 3BRBIM. Our integer-programming decoder is studied is reasonable, it is certainly not unique and can
26
be improved upon with more experimental input. As code for some topology, having an associated classical
shown by Levy et al., [34, 35], when more realistic models statistical-mechanical model for a given quantum noise
are included, conclusions regarding fault tolerance can model. It might be interesting to use the fault-tolerant
change dramatically. Even at an abstract level, one could decoding of CSS codes generally as a tool to explore re-
modify our depolarizing noise model for CNOT gates so lated statistical-mechanical systems with quenched dis-
that it acted ideally with probability 1−p and applied one order.
of the fifteen nontrivial Pauli operators with probability
p/15 each rather than acting ideally with probability 1 −
p and applying one of the sixteen Pauli operators with
probability p/16.
Acknowledgments
While we gave a prescription for injecting magic states
into the color code for both the pancake and 2D defect-
based architectures, we did not carefully study the We would like to thank the following individuals for
threshold of the circuits used for injection. To our knowl- helpful discussions: Hector Bombin, Bob Carr, Chris
edge, this type of study has not been performed for Ki- Cesare, Guillaume Duclos-Cianci, Bryan Eastin, Austin
taev’s surface codes either. Such studies would be valu- Fowler, Anand Ganti, Peter Groszkowski, Jim Harring-
able, as it could be the case that the magic state prepara- ton, Charles Hill, Lloyd Hollenberg, Uzoma Onunkwo,
tion threshold is actually less than the accuracy threshold Cindy Phillips, David Poulin, Robert Raussendorf, and
reported for all of the other gates, even though the dis- David Wang. We would also like to thank Dave Gay
tillation threshold for the magic states is higher than the for use of AMPL mathematical programming language.
accuracy threshold for the other gates. PRR was supported by the Quantum Institute at Los
Finally, the connection between color codes and the Alamos National Laboratories. AJL and JTA were
three-body random-bond Ising model allowed us to ex- supported in part by the National Science Foundation
plore the structure of order-disorder transition in the lat- through Grant 0829944. JTA and AJL were supported
ter model by studying the former. This is one of the in part by the Laboratory Directed Research and Devel-
rare examples where a purely quantum information the- opment program at Sandia National Laboratories. San-
oretic result has led to greater understanding of a clas- dia National Laboratories is a multi-program labora-
sical system. Kitaev’s surface codes and the two-body tory managed and operated by Sandia Corporation, a
random-bond Ising model have a similar connection and wholly owned subsidiary of Lockheed Martin Corpora-
have admitted a similar study [16, 27]. It is clear that it is tion, for the U.S. Department of Energy’s National Nu-
the CSS structure of these codes that admits these stud- clear Security Administration under contract DE-AC04-
ies; one could argue that every CSS code is a topological 94AL85000.
tion: Schemes (2004), arXiv:quant-ph/0402171. accuracy threshold for quantum memory, Ann. Phys.
[12] E. Knill, Fault-tolerant postselected quan- 303, 31 (2003), doi:10.1016/S0003-4916(02)00019-2,
tum computation: Threshold analysis (2004), arXiv:quant-ph/0207088.
arXiv:quant-ph/0404104. [28] M. Ohzeki, Locations of multicritical points for
[13] F. M. Spedalieri and V. P. Roychowdhury, Latency in spin glasses on regular lattices, Phys. Rev. E 79,
local, two-dimensional, fault-tolerant quantum comput- 021129 (2009), doi:10.1103/PhysRevE.79.021129,
ing, Quant. Inf. Comp. 9, 666 (2009), arXiv:0805.4213, arXiv:0811.0464.
URL http://www.rinton.net/xxqic9/qic-9-78/ [29] T. Ohno, G. Arakawa, I. Ichinose, and T. Mat-
0666-0682.pdf. sui, Phase structure of the random-plaquette
[14] D. Bacon, Operator quantum error-correcting subsys- z2 gauge model: accuracy threshold for a toric
tems for self-correcting quantum memories, Phys. Rev. A quantum memory, Nucl. Phys. B 697, 462
73, 012340 (2006), doi:10.1103/PhysRevA.73.012340, (2004), doi:10.1016/j.nuclphysb.2004.07.003,
arXiv:quant-ph/0506023v4. arXiv:quant-ph/0401101.
[15] A. Y. Kitaev, Quantum error correction with imperfect [30] S. L. A. de Queiroz, Location and properties of
gates, in Proceedings of the Third International Confer- the multicritical point in the Gaussian and ±j Ising
ence on Quantum Communication, Computing and Mea- spin glasses, Phys. Rev. B 79, 174408 (2009),
surement, edited by O. Hirota, A. S. Holevo, and C. M. doi:10.1103/PhysRevB.79.174408, arXiv:0902.4153.
Caves (Plenum Press, New York, 1997). [31] M. Suchara, S. Bravyi, and B. Terhal, Constructions
[16] E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topo- and noise threshold of topological subsystem codes (2010),
logical quantum memory, J. Math. Phys. 43, 4452 (2002), arXiv:1012.0425.
doi:10.1063/1.1499754, arXiv:quant-ph/0110143. [32] H. Bombin, Topological subsystem codes, Phys. Rev. A
[17] R. Raussendorf and J. Harrington, Fault-tolerant 81, 032301 (2010), doi:10.1103/PhysRevA.81.032301,
quantum computation with high threshold in arXiv:0908.4246.
two dimensions, Phys. Rev. Lett. 98, 190504 [33] E. Berlekamp, R. J. McEliece, and H. van Tilborg,
(2007), doi:10.1103/PhysRevLett.98.190504, On the inherent intractability of certain coding prob-
arXiv:quant-ph/0610082. lems, IEEE Trans. Info. Theo. 24, 384 (1978),
[18] A. G. Fowler, A. M. Stephens, and P. Groszkowski, doi:10.1109/TIT.1978.1055873.
High-threshold universal quantum computation on the [34] J. E. Levy, A. Ganti, C. A. Phillips, B. R. Hamlet, A. J.
surface code, Phys. Rev. A 80, 052312 (2009), Landahl, T. M. Gurrieri, R. D. Carr, and M. S. Car-
doi:10.1103/PhysRevA.80.052312, arXiv:0803.0272. roll, Brief announcement: the impact of classical elec-
[19] D. S. Wang, A. G. Fowler, and L. C. L. Hol- tronics constraints on a solid-state logical qubit mem-
lenberg, Surface code quantum computing with error ory, in Proceedings of the Twenty-First Annual ACM
rates over 1%, Phys. Rev. A 83, 020302(R) (2011), Symposium on Parallelism in Algorithms and Architec-
doi:10.1103/PhysRevA.83.020302, arXiv:1009.3686. tures, edited by F. Meyer auf der Heide and M. A.
[20] H. Bombin and M. A. Martin-Delgado, Topolog- Bender (ACM Press, New York, 11–13 August, 2009,
ical quantum distillation, Phys. Rev. Lett. 97, Calgary, AB, Canada, 2009), ISBN 978-1-60558-606-9,
180501 (2006), doi:10.1103/PhysRevLett.97.180501, doi:10.1145/1583991.1584039, arXiv:0904.0003.
arXiv:quant-ph/0605138. [35] J. E. Levy, M. S. Carroll, A. Ganti, C. A. Phillips, A. J.
[21] List of uniform tilings, URL http://en.wikipedia.org/ Landahl, T. M. Gurrieri, R. D. Carr, H. L. Stalford,
wiki/List_of_uniform_tilings. and E. Nielsen, Implications of electronics constraints for
[22] D. S. Wang, A. G. Fowler, C. D. Hill, and L. C. L. Hol- solid-state quantum error correction and quantum circuit
lenberg, Graphical algorithms and threshold error rates failure probability (2011), arXiv:1105.0682.
for the 2d color code, Quant. Inf. Comp. 10, 780 (2010), [36] M. A. Nielsen and I. L. Chuang, Quantum Computation
arXiv:0907.1708, URL http://www.rintonpress.com/ and Quantum Information (Cambridge University Press,
xxqic10/qic-10-910/0780-0802.pdf. Cambridge, 2000), ISBN 0-521-63235-8 (Hardback), 0-
[23] H. G. Katzgraber, H. Bombin, and M. A. Martin- 521-63503-9 (Paperback).
Delgado, Error threshold for color codes and ran- [37] J. Preskill, Lecture notes for Caltech Ph 219: Quantum
dom three-body ising models, Phys. Rev. Lett. 103, Information and Computation (1998), URL http://www.
090501 (2009), doi:10.1103/PhysRevLett.103.090501, theory.caltech.edu/~preskill/ph219/.
arXiv:0902.4845. [38] P. Aliferis, D. Gottesman, and J. Preskill, Quantum accu-
[24] G. Duclos-Cianci, H. Bombı́n, and D. Poulin, Fast de- racy threshold for concatenated distance-3 codes, Quant.
coding algorithm for subspace and subsystem color codes Inf. Comp. 6, 97 (2006), arXiv:quant-ph/0504218, URL
and local equivalence of topological phases (2011), per- http://www.rinton.net/xqic6/qic-6-2/097-165.pdf.
sonal communication. [39] P. Aliferis and A. W. Cross, Subsystem fault toler-
[25] M. Ohzeki, Accuracy thresholds of topologi- ance with the Bacon-Shor code, Phys. Rev. Lett. 98,
cal color codes on the hexagonal and square- 220502 (2007), doi:10.1103/PhysRevLett.98.220502,
octagonal lattices, Phys. Rev. E 80, 011141 (2009), arXiv:quant-ph/0610063.
doi:10.1103/PhysRevE.80.011141, arXiv:0903.2102. [40] P. Aliferis, D. Gottesman, and J. Preskill, Accuracy
[26] R. S. Andrist, H. G. Katzgraber, H. Bombin, and threshold for postselected quantum computation, Quant.
M. A. Martin-Delgado, Tricolored lattice gauge theory Inf. Comp. 8, 0181 (2008), arXiv:quant-ph/0703264,
with randomness: Fault-tolerance in topological color URL http://www.rintonpress.com/xxqic8/qic-8-34/
codes (2010), arXiv:1005.0777. 0181-0244.pdf.
[27] C. Wang, J. Harrington, and J. Preskill, Confinement- [41] P. Aliferis and J. Preskill, Fibonacci scheme for
Higgs transition in a disordered gauge theory and the fault-tolerant quantum computation, Phys. Rev. A
28