The Checkerboard Fracton Code as a Circuit-Level Quantum Memory

The Checkerboard Fracton Code as a
Circuit-Level Quantum Memory:
Exact Distances, a Nearest-Neighbor Syndrome Circuit, and
Simulations up to [[432, 32, 12]]
Raghu Kulkarni
SSMTheory Group, IDrive Inc., Calabasas, CA 91302, USA
raghu@idrive.com
Abstract
The checkerboard model of Vijay, Haah and Fu is a fracton model with eight-body checks
on a face-centered cubic (FCC) lattice. We study it as a quantum memory. On the L × L × L
torus of FCC primitive vectors it is a [[2L
3
, 6L −4, 2L]] code for every size we could check, with
exact distances up to 14. Check ancillas sit on FCC sites and data qubits on tetrahedral voids,
so every coupling joins nearest neighbors. With one ancilla per check, hook errors limit the
fault distance to 6 at L = 4. A flag qubit on the octahedral void restores 8 in heuristic searches.
We simulate [[128, 20, 8]], [[250, 26, 10]] and [[432, 32, 12]] under circuit-level depolarizing noise,
decoded with an ensemble of two BP-OSD settings. The block failure rate falls with size. Up
to a gate error of 0.2% the block of size L fails 2.5 to 3.3 times less often, per logical qubit,
than a rotated toric layer of distance L + 2. Failures are correlated: a failed run has about 7
of 20 values wrong at L = 4. Per stored value, the code of size L performs like a toric layer of
distance L + 1 to L + 2. A single BP-OSD setting fails 1.5 to 3.6 times more often than the
ensemble, so the decoder still limits these rates. We also simulate a joint measurement with a
toric layer. We give no logical gates and no fast decoder.
Keywords: quantum error correction; fracton codes; checkerboard model; quantum memory;
circuit-level noise; face-centered cubic lattice; correlated logical errors
1 Introduction
A fracton model with good code parameters. Vijay, Haah and Fu introduced the checker-
board model in 2016 [1]. Qubits sit on the vertices of a cubic lattice. Every second cube, in a
three-dimensional checkerboard pattern, carries the product of X and the product of Z on its eight
corners. The chosen cubes form an FCC lattice. The model is a self-dual CSS stabilizer code. Its
number of logical qubits grows linearly with the system size, which is a mark of fracton order.
What is known about it as a code. Canossa et al. found a code-capacity threshold of 0.107(3),
close to the limit for CSS codes [2]. Hopkin, Albert and Williamson list it among compactified
fracton codes [3], and Tan et al. give it a product-code form [4]. Galimova searched trivariate
bicycle codes and found [[54, 14, 5]] and [[128, 20, 8]] with A = 1 + x + y + z and B = A
T
[5]. These
two codes are the checkerboard code on the 3
3
and 4
3
tori, although that work does not name the
model. It reports a circuit-level pseudo-threshold of 0.45% for [[128, 20, 8]].
1
What is missing. We found no explicit syndrome circuit for this code and no study of its hook
errors. The largest distance we found in print is 8. Circuit-level data exist for one member, so it
is not known whether larger members do better under circuit noise. There is no comparison with
a local baseline under one noise model. It is also not reported how many of the stored qubits fail
together when the code fails.
What this paper adds.
Exact distances d = 2L for L = 5, 6, 7, and k = 6L − 4 for L = 2 to 10 (Section 3).
The observation that the trivariate bicycle codes [[54, 14, 5]] and [[128, 20, 8]] of Ref. [5] are
members of the checkerboard family (Section 2).
An explicit syndrome circuit with one ancilla per check, a hook-error analysis, and a CNOT
order with fault distance 6 at L = 4 (Section 4).
Circuit-level simulations at L = 4, 5 and 6, which show that the block failure rate falls with
size (Section 5).
A count of how many stored values are wrong in a failed run, and with it the error rate per
stored value (Section 5).
Evidence that the failures are short logical operators and that the decoder causes many of
them. An ensemble of two BP-OSD settings fails 1.5 to 3.6 times less often than one setting
(Section 5).
A comparison with rotated toric layers under the same noise, per block and per stored value,
and tests with idle noise and in the X basis (Section 5).
A flag-qubit variant that restores fault distance 8 at L = 4 in two heuristic searches, and its
simulation (Section 6).
A list of line and ribbon logical operators, and a joint measurement of a line operator with a
toric layer, simulated under circuit noise at L = 4 (Section 7).
What this paper does not claim. The code and its FCC arrangement are not new. Both
are in Ref. [1]. We do not claim a threshold, logical gates, or a fast decoder. The measurement
method of Section 7 is that of Ref. [6]. Only its use on this code is ours. We do not claim to match
high-rate codes with long-range couplings, such as the lifted-product memory of Cain et al. [7].
Why we came to this code. Our earlier FCC codes placed data qubits on the bonds. Their
distance is either fixed at 3 or grows only at the density of a toric code [8, 9]. Moving the data
qubits to the tetrahedral voids gives the checkerboard code. The toric layers of the earlier work
serve as the baseline here.
2 The code in crystal terms
Positions. Let the conventional cubic cell have edge a. FCC sites sit at the cell corners and
face centers. Each site is surrounded by eight tetrahedral voids at (±
1
4
, ±
1
4
, ±
1
4
)a. There are two
such voids per site. We call them species L and R. They are the centers of the two orientations of
2
(a)
FCC site: check ancilla
tetrahedral void: data qubit
octahedral void: flag qubit
1
2
3
4
5
6
7
8
(b)
Figure 1: (a) One conventional FCC cell. Check ancillas sit on FCC sites, data qubits on tetrahedral
voids, and optional flag qubits on octahedral voids. Gray lines are the site–void couplings. (b) One
check. The ancilla couples to four voids of one tetrahedron (1–4) and then four voids of the other
(5–8; the label 8 is hidden behind the ancilla). The dashed line is the coupling to the flag qubit.
tetrahedra. The voids form a simple cubic lattice of edge a/2, and the FCC sites are the centers of
every second cube of that lattice. This is the checkerboard arrangement of Ref. [1]. As a crystal it
is the fluorite structure, with one ion type on the sites and the other on the voids (Figure 1).
Checks. Each site carries one ancilla. It measures X
⊗8
and Z
⊗8
on its eight voids, one after the
other. Each void has four sites at distance
√
3a/4, and each site has eight voids at that distance.
Two different sites share either no void or two voids, so all checks commute.
Algebraic form. Let x, y, z be translations by the FCC primitive vectors, and let G be the group
they generate on a torus. Label the L and R voids by elements of G. With A = 1 + x + y + z and
B = 1 + x
−1
+ y
−1
+ z
−1
,
H
X
= [ A | B ], H
Z
= [ B
T
| A
T
]. (1)
Since B = A
T
, we have H
X
= H
Z
. The polynomial 1 + x + y + z is the stabilizer map of the
checkerboard model in Ref. [1]. For G = Z
3
L
the same matrices are the trivariate bicycle codes of
Ref. [5]. Those codes and the checkerboard code on the L
3
torus are the same.
Qubit count. On the L × L × L torus there are L
3
sites, so the code uses 2L
3
data qubits and
L
3
ancillas. With flags (Section 6) it uses L
3
more.
Hardware demand. The layout needs a fixed three-dimensional array with eight couplers per
ancilla and four per data qubit, all of one length. No current device offers this. The demand is
lower than for the FCC bond code, where each ancilla needs 12 couplers [8].
3
Table 1: The checkerboard code on the L × L × L FCC-primitive torus. n counts data qubits.
Distances for L ≤ 7 are exact. Rows for L = 3, 4 agree with Ref. [5].
L n = 2L
3
k d kd
2
/n
3 54 14 5 6.5
4 128 20 8 10.0
5 250 26 10 10.4
6 432 32 12 10.7
7 686 38 14 10.9
8 1024 44 not computed –
9 1458 50 not computed –
10 2000 56 not computed –
3 Code parameters
Logical qubits. We computed the rank of H
X
over GF(2) for L = 2 to 10. In every case
k = 2L
3
−2 rank(H
X
) = 6L −4 (Table 1). The values 14 and 20 at L = 3 and 4 agree with Ref. [5].
Ref. [1] quotes log
2
D = 6L −6 on the length-L three-torus. This value belongs to a different torus.
On the cubic torus of even side L, which has L
3
qubits, we compute k = 18, 30 and 42 for L = 4,
6 and 8, equal to 6L − 6. Our torus is spanned by the FCC primitive vectors and has 2L
3
qubits,
and there the count is 6L − 4. We do not prove the formula for all L.
Distance. For L = 4 an exact meet-in-the-middle search shows that no logical operator has
weight 7 or less. For L = 5, 6, 7 we used an exhaustive branch-and-bound search. It found no
logical operator of weight 2L − 1 or less, and it found logical operators of weight 2L. This gives
d = 2L exactly for L = 4 to 7. For L = 3 the distance is 5. The values for L = 3 and 4 agree
with Ref. [5]. Those for L = 5 to 7 are new as far as we know. Because H
X
= H
Z
, the X and Z
distances are equal.
Density compared with toric layers. If d = 2L continues, then kd
2
/n = 12 − 8/L, which
tends to 12. A stack of rotated toric codes has kd
2
/n = 2. At equal distance the checkerboard
code stores about six times as many logical qubits per data qubit. The rate still falls with size,
as k/n ≈ 12/d
2
. This is the scaling of a local three-dimensional code with k ∝ L, not that of a
constant-rate code.
Other tori. We also enumerated all tori with 16 to 96 sites. The best skewed tori gave parameters
such as [[64, 8, 8]] and [[120, 8, ≤ 12]]. These match parameters of the self-dual bivariate bicycle
codes of Liang and Chen [10], so we do not pursue them. A weight-6 variant, with three voids of
each species, reached only kd
2
/n ≈ 7.
4 Syndrome circuit and hook errors
One ancilla per site. Each round measures all Z checks and then all X checks. A check uses
eight CNOT layers. In each layer every ancilla acts on one of its voids, and the same order is used
at every site, so no data qubit is used twice in a layer. A round has 16 CNOT layers.
4
Hook errors. A single fault on the ancilla after j of the eight CNOTs spreads to the remaining
8 − j data qubits. Up to the check itself this is an error on min(j , 8 − j) qubits, so one fault can
cause up to four data errors. Whether this lowers the distance depends on whether those errors lie
along a logical operator. That depends on the CNOT order.
Order search. We define the fault distance as the smallest number of faults, counting data errors
and ancilla hooks, whose combined effect is a logical operator. We estimated it with a randomized
minimum-weight search, which gives upper bounds. For L = 4 we tested 3554 random orders. 2462
had fault distance at most 4, 213 at most 5, and 860 at most 6. Nineteen first appeared to reach
7, but the two we rechecked with a longer search fell to 6. We found no order above 6.
Tetra-first order. In one order with fault distance 6 the ancilla first visits its four L voids and
then its four R voids. Each group of four is one tetrahedron around the site. Stim’s search for
undetectable logical errors [11] on the full circuit also returns 6 faults for this order. We use it in
all simulations. At L = 4 the circuit corrects any two faults. The code distance of 8 would allow
three. We did not determine the fault distance for L = 5 and 6.
Site-dependent orders do not help. We also let the two sublattices of sites (even and odd
x + y + z) use different orders, keeping only pairs in which no data qubit is used twice in a layer.
Among about 5000 such pairs none exceeded fault distance 6. Four first appeared to reach 7 and
fell to 6 in a longer search.
5 Circuit-level simulations
Noise. After every CNOT we apply two-qubit depolarizing noise of strength p. Resets and
measurements flip with probability p. Hadamards are followed by single-qubit depolarizing noise
p. For idle noise, each data qubit receives depolarizing noise rp for every time step in which it is
idle. A round has 12 such steps for this code (eight CNOT layers in which the qubit is not used
and four reset or measurement steps) and 8 for the toric layer. The main runs use r = 0. We also
test r = 0.1 and r = 1.
Memory experiment. We built the circuits in Stim [11]. The memory runs R = 2L rounds: 8,
10 and 12 rounds for L = 4, 5 and 6. At the end each of the k logical Z values is either right or
wrong.
Two measures of failure. We report two rates, because they answer different questions. The
first is the block failure rate. A shot counts as failed if any of the k values is wrong. With P the
fraction of failed shots, we quote 1 −(1 −P )
1/(kR)
and call it the block failure rate per logical qubit
per round. This is the usual normalization for high-rate codes. It is the right measure when a
computation needs all stored qubits to be correct. The second is the error rate per stored value.
With q the fraction of wrong values among all k values of all shots, we quote 1 − (1 − q)
1/R
. It is
the right measure for the chance that one given stored qubit is wrong. If failures hit one value at a
time, the two rates are equal. If a failure hits m values at once, the second rate is about m times
the first.
5
Table 2: Block failure rate per logical qubit per round, Z basis, no idle noise. Checkerboard code:
ensemble of two BP-OSD settings, failed shots/shots in parentheses. Toric layer: matching, same
definition with k = 2, at least 2800 failed shots per point except 61, 304 and 938 at L = 8 and
p = 0.1%, 0.15% and 0.2%.
checkerboard code toric layer
p L = 4 L = 5 L = 6 L = 4 L = 6 L = 8
0.10% 2.5 × 10
−6
(61/152,220) – – 2.0 × 10
−4
8.3 × 10
−6
3.8 × 10
−7
0.15% 1.1 × 10
−5
(101/56,040) 8.3 × 10
−7
(11/51,150) – 4.6 × 10
−4
2.9 × 10
−5
2.1 × 10
−6
0.20% 2.8 × 10
−5
(160/35,330) 2.2 × 10
−6
(23/41,010) – 8.0 × 10
−4
7.1 × 10
−5
7.0 × 10
−6
0.30% 2.0 × 10
−4
(150/4,830) 2.6 × 10
−5
(54/7,920) 6.4 × 10
−6
(6/2,450) 1.9 × 10
−3
2.7 × 10
−4
4.0 × 10
−5
0.40% 7.0 × 10
−4
(180/1,700) 1.5 × 10
−4
(45/1,140) 7.2 × 10
−5
(16/590) 3.2 × 10
−3
6.3 × 10
−4
1.4 × 10
−4
0.50% 2.1 × 10
−3
(181/630) 9.4 × 10
−4
(102/470) – 5.1 × 10
−3
1.2 × 10
−3
3.8 × 10
−4
Decoder settings matter. We decode the detector error model with BP-OSD [12]. Our first
runs used min-sum belief propagation with a fixed scaling factor of 0.625, a parallel schedule and
60 iterations, followed by combination-sweep OSD of order 4. At L = 4 and p = 0.2% belief
propagation converged on only about 40% of shots, so the slow OSD stage ran on most shots. With
an adaptive scaling factor, a serial schedule and 100 iterations, it converges on about 98% of shots.
At p = 0.2% decoding is then about four times faster at L = 4 (0.06 s per shot) and about eight
times faster at L = 5 (0.3 s per shot), and the fraction of failed shots at L = 4, p = 0.2% drops from
2.2% to 0.9%. We call this second setting A. A test described below shows that setting A often
returns a correction that is less probable than the true faults. The main results therefore use an
ensemble of two settings. Setting B differs from A only in a fixed scaling factor of 0.9. Every shot
is decoded with both, and we keep the correction with the higher probability under the detector
error model. The ensemble takes 0.05 to 1.0 s per shot at L = 4, 0.3 to 5.6 s at L = 5, and 9 and
22 s at L = 6, on one CPU core. The runs in the X basis, with idle noise, with flags and with the
bridge use setting A alone.
Baseline. The baseline is a rotated toric code [[L
2
, 2, L]] with one ancilla per check, a hook-safe
CNOT order (circuit distance L, checked with Stim at L = 4 and 6), the same noise, L rounds,
and matching decoding [13]. Both rates are computed for it with the same definitions and k = 2.
A stack of such layers is the FCC sheet code of Refs. [8, 9].
The block failure rate falls with size. Table 2 and Figure 2(a) give the block failure rates
with the two-setting ensemble. At every tested error rate the rate falls with size. At p = 0.3% the
rates are 2.0 × 10
−4
, 2.6 × 10
−5
and 6.4 × 10
−6
for L = 4, 5 and 6. This is a factor of 7.5 from
L = 4 to 5 and a factor of 4 from L = 5 to 6. The L = 6 value rests on 6 failed shots. At p = 0.15%
and 0.2% the factor from L = 4 to 5 is 13 to 14. At p = 0.4% the factors are 4.5 and 2.2, and at
p = 0.5% the sizes L = 4 and 5 differ by a factor of 2.2. We have ensemble data at L = 6 only for
p = 0.3% and 0.4%. An earlier run at L = 6 and p = 0.2% with one decoder setting saw no failure
in 1,340 shots.
Block comparison with toric layers. Under the same noise the code at L = 4 fails less often
per logical qubit than the toric layer at L = 6 up to p = 0.3%. The factor is 3.3 at p = 0.1%
(2.5×10
−6
against 8.3×10
−6
), 2.5 at p = 0.2% and 1.4 at p = 0.3%. It stays 4 to 7 times above the
toric layer at L = 8. The code at L = 5 is 2.5 times below the toric layer at L = 8 at p = 0.15%,
3.2 times below at p = 0.2% and 1.5 times below at p = 0.3%. At p = 0.3% the code at L = 6 is 6
6
0.1 0.15 0.2 0.3 0.4 0.5
gate error p (%)
10
−
6
10
−
5
10
−
4
10
−
3
10
−
2
rate per round
(
a
)
block failure per logical qubit per round
0.1 0.15 0.2 0.3 0.4 0.5
gate error p (%)
10
−
6
10
−
5
10
−
4
10
−
3
10
−
2
(
b
)
error per stored value per round
toric layer L=4
toric layer L=6
toric layer L=8
checkerboard L=4 [[128,20,8]]
checkerboard L=5 [[250,26,10]]
checkerboard L=6 [[432,32,12]]
Figure 2: Failure rates against gate error p, without idle noise. (a) Block failure rate per logical
qubit per round. (b) Error rate per stored value per round. Solid lines: checkerboard code. Dashed
lines: rotated toric layer. Error bars are one standard deviation from the number of failed shots.
Checkerboard points use the two-setting ensemble (Tables 2 and 3).
times below the toric layer at L = 8, on 6 failed shots, and at p = 0.4% it is 2.0 times below. We
have no toric data at L = 10. On this measure and up to p = 0.3%, the member of size L performs
better than a toric layer of distance L + 2, and at L = 4 worse than one of distance L + 4. Above
p = 0.3% the checkerboard curves rise faster. At p = 0.4% the codes at L = 4 and 5 equal the toric
layers at L = 6 and 8 within 10%, and at p = 0.5% they are 1.7 and 2.4 times worse.
Failures are correlated. The block failure rate hides how many values are lost in a failure. The
runs record every logical value (Table 3). A failed shot rarely has one wrong value. At L = 4 a
failed shot has on average 7.1 to 7.6 wrong values out of 20 for p ≤ 0.2%, 8.3 at p = 0.3% and
9.0 at p = 0.5%. At L = 5 the mean is 11.2 to 12.6 out of 26. At L = 6 it is 10.3 and 10.9 out
of 32, on 6 and 16 failed shots. With one decoder setting the means are the same within 1. In a
separate run with one setting at L = 4 and p = 0.2%, only 7 of 146 failed shots had exactly one
wrong value, and the 146 shots showed 117 different patterns. In the toric layer, which stores two
values, a failed shot has 1.04 to 1.20 wrong values.
Failures are short logical operators. A wrong correction differs from the true error by a logical
operator. For 665 failed shots at L = 4 (p = 0.1% and 0.2%, one decoder setting) we searched for
the lightest X operator that gives the observed pattern of wrong values. The search is randomized
and gives upper bounds. For 346 shots (52%) the pattern is that of an operator of weight 8, the
code distance, and for 507 shots (76%) of weight at most 10. Random patterns need weight 16 to
24. The failures are therefore short logical operators, and the many wrong values come from how
such an operator acts on the stored qubits. In the logical basis of our circuit a single line or ribbon
flips 10.7 of the 20 values on average. We searched for a basis in which lines and ribbons flip few
values. The best one found brings this to 4.1 per operator, and the observed failures from 7.7 to
6.7 wrong values. The correlation thus depends on the basis, but we found no basis that removes
7
Table 3: Error rate per stored value per round, Z basis, no idle noise, from the runs of Table 2.
Checkerboard code: in parentheses, the mean number of wrong values in a failed shot and the
number of failed shots. Toric layer: same definition.
checkerboard code toric layer
p L = 4 L = 5 L = 6 L = 4 L = 6 L = 8
0.10% 1.8 × 10
−5
(7.2; 61) – – 2.4 × 10
−4
9.0 × 10
−6
4.0 × 10
−7
0.15% 8.5 × 10
−5
(7.6; 101) 9.8 × 10
−6
(11.8; 11) – 5.4 × 10
−4
3.2 × 10
−5
2.2 × 10
−6
0.20% 2.0 × 10
−4
(7.1; 160) 2.4 × 10
−5
(11.2; 23) – 9.5 × 10
−4
7.8 × 10
−5
7.3 × 10
−6
0.30% 1.6 × 10
−3
(8.3; 150) 3.2 × 10
−4
(12.0; 54) 6.6 × 10
−5
(10.3; 6) 2.2 × 10
−3
2.9 × 10
−4
4.3 × 10
−5
0.40% 5.9 × 10
−3
(8.7; 180) 1.8 × 10
−3
(11.9; 45) 7.8 × 10
−4
(10.9; 16) 3.8 × 10
−3
7.0 × 10
−4
1.5 × 10
−4
0.50% 1.7 × 10
−2
(9.0; 181) 1.1 × 10
−2
(12.6; 102) – 6.0 × 10
−3
1.4 × 10
−3
4.1 × 10
−4
it.
Comparison per stored value. Table 3 and Figure 2(b) give the error rate per stored value.
For the checkerboard code it is 7 to 12 times the block failure rate. For the toric layer the two
rates differ by at most 20%. The comparison therefore changes. At p = 0.1% the code at L = 4
has 1.8 × 10
−5
per value per round. This is 13 times below the toric layer at L = 4 and 2.0 times
above the layer at L = 6. At p = 0.2% it is 4.7 times below the layer at L = 4 and 2.6 times above
the layer at L = 6. At p = 0.3% it is 1.4 times below the layer at L = 4. The code at L = 5 gives
2.4 × 10
−5
at p = 0.2%. This is 3.2 times below the toric layer at L = 6 and 3.3 times above the
layer at L = 8. At p = 0.3% it equals the layer at L = 6 within 10%. The code at L = 6 gives
6.6 × 10
−5
at p = 0.3% on 6 failed shots, which is 4.4 times below the toric layer at L = 6 and 1.5
times above the layer at L = 8. At p = 0.4% it equals the layer at L = 6 within 15%. Per stored
value and for p ≤ 0.2%, the member of size L performs like a toric layer of distance about L + 1 at
L = 4 and between L + 1 and L + 2 at L = 5. At p = 0.3% it performs like a layer of distance L
to L + 1. At p = 0.4% and above it is no better than the toric layer of distance L.
Qubit cost at equal protection. Table 4 counts physical qubits per logical qubit, with ancillas
included. The toric layer is counted in two ways: with its own ancillas (2L
2
qubits for 2 logical
qubits), and as three FCC sheets that share one ancilla set (4L
3
qubits for 6L logical qubits [8]).
The saving depends on the measure. On the block failure rate and up to p = 0.3%, the code at
L = 4 is better than the toric layer at L = 6 and the code at L = 5 is better than the layer at
L = 8, with 2.5 to 4.4 times fewer qubits. Per stored value and up to p = 0.3%, the code at L = 5 is
as good as the layer at L = 6 or better, within statistical error, with 1.7 to 2.5 times fewer qubits,
and the code at L = 4 is better than the layer at L = 4 with 1.1 to 1.7 times fewer. Which measure
applies depends on the use. If a computation fails when any stored qubit is wrong, the block rate
decides. If the stored qubits are used one at a time, the rate per value decides.
The decoder limits the failure rate. We tested whether the failures are forced by the noise
or made by the decoder. We sampled faults from the detector error model, so that the true fault
set is known, and compared its probability with that of the correction returned by setting A. In
503 of 519 failed shots at L = 4 (106 of 108 at p = 0.1% and 397 of 411 at p = 0.2%) the correction
was less probable than the true faults. A decoder that finds the most probable fault set would not
have returned it. In 309 of these 503 shots belief propagation had converged, so the OSD stage did
not run. This is why the main results use two settings. Table 5 compares setting A alone with the
ensemble on the same shots. At L = 4 the ensemble lowers the block failure rate by a factor of 2.0
8
Table 4: Physical qubits per logical qubit, data plus ancillas, for pairs in which the checkerboard
code has the lower or an equal rate up to p = 0.3% in Table 2 (block) and Table 3 (per stored
value).
measure checkerboard code toric layer, own ancillas toric sheets, shared ancillas saving
block L = 4: 192/20 = 9.6 L = 6: 72/2 = 36 864/36 = 24 2.5 to 3.75
block L = 5: 375/26 = 14.4 L = 8: 128/2 = 64 2048/48 = 42.7 3.0 to 4.4
per value L = 5: 375/26 = 14.4 L = 6: 72/2 = 36 864/36 = 24 1.7 to 2.5
per value L = 4: 192/20 = 9.6 L = 4: 32/2 = 16 256/24 = 10.7 1.1 to 1.7
Table 5: Setting A alone against the ensemble of settings A and B on the same shots, 2L rounds,
Z basis, no idle noise. Failed shots, block failure rate per logical qubit per round, and the ratio of
the two rates.
failed shots block rate
L p shots A ensemble A ensemble gain
4 0.10% 152,220 123 61 5.1 × 10
−6
2.5 × 10
−6
2.0
4 0.15% 56,040 197 101 2.2 × 10
−5
1.1 × 10
−5
2.0
4 0.20% 35,330 296 160 5.3 × 10
−5
2.8 × 10
−5
1.9
4 0.30% 4,830 246 150 3.3 × 10
−4
2.0 × 10
−4
1.7
4 0.40% 1,700 274 180 1.1 × 10
−3
7.0 × 10
−4
1.6
4 0.50% 630 255 181 3.2 × 10
−3
2.1 × 10
−3
1.5
5 0.15% 51,150 22 11 1.7 × 10
−6
8.3 × 10
−7
2.0
5 0.20% 41,010 82 23 7.7 × 10
−6
2.2 × 10
−6
3.6
5 0.30% 7,920 140 54 6.9 × 10
−5
2.6 × 10
−5
2.6
5 0.40% 1,140 93 45 3.3 × 10
−4
1.5 × 10
−4
2.1
5 0.50% 470 161 102 1.6 × 10
−3
9.4 × 10
−4
1.7
6 0.30% 2,450 17 6 1.8 × 10
−5
6.4 × 10
−6
2.8
6 0.40% 590 27 16 1.2 × 10
−4
7.2 × 10
−5
1.7
at p ≤ 0.15%, which falls to 1.5 at p = 0.5%. At L = 5 the factor is 1.7 to 3.6, and at L = 6 it is
2.8 and 1.7 on 6 and 16 failed shots. The ensemble keeps the correction of setting B in 13% of the
shots at L = 4 and p = 0.1% and in 60% at p = 0.5%. The number of wrong values per failed shot
does not change. Earlier runs with setting A alone on other shots agree with the setting-A column
within about two standard deviations.
The ensemble rates are still upper bounds on the failure rates of the code. In a smaller test at
L = 4 we used five BP-OSD settings and kept the most probable correction. At p = 0.2% the failed
shots dropped from 51 with setting A to 12 of 3,800, and at p = 0.3% from 100 to 37 of 2,340.
The 51 failed shots are more than the 33 expected from the rate of setting A in Table 5. Against
that expectation the gain at p = 0.2% is 2.7, equal to the observed gain at p = 0.3%. Both are
about 1.5 times the gain of the two-setting ensemble. We chose settings A and B from these five
on 350 shots at L = 4 and p = 0.3%, where the pair gave 9 failures against 8 for all five at a fifth
of the time. The toric baseline is decoded by matching, which is close to minimum weight. The
comparisons above may therefore still be biased against the checkerboard code.
Slope and fault distance. Between p = 0.1% and 0.2% the block failure rate at L = 4 rises by
a factor of 11, close to p
3.5
. This lies between p
3
, which the fault distance of 6 gives, and p
4
, which
9
Table 6: Block failure rate per logical qubit per round at L = 4 in the X basis and with idle noise
rp per idle step, with toric layers in the Z basis under the same idle noise. Checkerboard code
decoded with setting A alone. Failed shots/shots in parentheses.
p setting checkerboard L = 4 toric L = 4 toric L = 6 toric L = 8
0.1% r = 0, X 5.7 × 10
−6
(49/54,160) – – –
0.2% r = 0, X 6.7 × 10
−5
(80/7,460) – – –
0.1% r = 0.1, Z 6.2 × 10
−6
(57/57,420) 2.7 × 10
−4
1.3 × 10
−5
6.6 × 10
−7
0.1% r = 1, Z 6.8 × 10
−5
(77/7,140) 1.7 × 10
−3
1.9 × 10
−4
2.4 × 10
−5
0.2% r = 0.1, Z 7.4 × 10
−5
(81/6,880) 1.1 × 10
−3
1.1 × 10
−4
1.3 × 10
−5
the code distance 8 would give. Over the same range the toric layer at L = 6 rises as p
3.1
and the
layer at L = 8 as p
4.2
. Hook errors remove part of the distance, which is one reason why the code
at size L does not behave like a toric layer of distance 2L.
Idle noise and the X basis. Table 6 gives runs at L = 4 in the X basis and with idle noise. In
the X basis the block failure rate is 5.7 × 10
−6
at p = 0.1%, against 5.5 × 10
−6
in the Z basis. At
p = 0.2% it is 6.7 × 10
−5
against 5.4 × 10
−5
, a difference of 1.6 standard deviations. Both bases
are decoded here with setting A alone, and the Z-basis values are those of the first runs. Equal
rates are expected from H
X
= H
Z
. The longer round exposes data qubits to more idle noise, but
this does not change the block comparison. With r = 0.1 the code at L = 4 gives 6.2 × 10
−6
at
p = 0.1% and 7.4 × 10
−5
at p = 0.2%, a factor of 2.2 and 1.5 below the toric layer at L = 6. With
r = 1 at p = 0.1% it gives 6.8 × 10
−5
, a factor of 2.8 below the toric layer at L = 6 and 2.9 above
the layer at L = 8. These runs did not record the single logical values, so we have no rate per
stored value with idle noise or in the X basis.
Relation to the published simulation. Ref. [5] reports a pseudo-threshold of 0.45% and a
logical error of 2 × 10
−5
at p = 0.1% for [[128, 20, 8]], with a different schedule, noise model and
decoder. The normalization there may differ from ours, so we do not compare the numbers directly.
Both studies place the code well below its pseudo-threshold at p = 0.1%.
6 Flag qubits on the octahedral voids
Design. The FCC crystal has one octahedral void per site, at distance a/2. We place a flag
qubit there and couple it only to that site’s ancilla. In the Z check the flag starts in |+⟩, acts as
the control of a CNOT on the ancilla after the first data CNOT and again before the last, and is
measured in the X basis. The X check uses the mirrored circuit. An ancilla fault between the two
flag CNOTs flips the flag. The flag outcomes enter the detector error model as extra detectors.
The code then uses 4L
3
qubits, or 12.8 per logical qubit at L = 4.
Fault distance with flags. With a flag, a single ancilla fault still spreads to several data qubits,
but the flag reports it. A hook that the flag does not report needs two faults: two ancilla faults
in the same check, or one ancilla fault and one flag measurement error. Two ancilla faults leave
an error on a contiguous segment of the CNOT order. We therefore repeated the fault-distance
search of Section 4 with every contiguous segment of length 2 to 6 as an allowed error at a cost
of two faults. In 3000 randomized trials the search found no logical operator below 8 faults. The
10
Table 7: Block failure rate per logical qubit per round at L = 4, Z basis, no idle noise, with and
without flag qubits, both decoded with setting A alone. Failed shots/shots in parentheses.
p without flags with flags
0.10% 5.5 × 10
−6
(134/151,900) 7.3 × 10
−6
(22/18,860)
0.15% 2.0 × 10
−5
(171/52,480) 1.7 × 10
−5
(31/11,240)
0.20% 5.4 × 10
−5
(226/26,220) 4.7 × 10
−5
(26/3,500)
0.30% 2.9 × 10
−4
(306/6,740) 1.9 × 10
−4
(21/700)
same search finds the 6-fault operator of the unflagged circuit within 40 trials. As a second test we
ran Stim’s search for undetectable logical errors on one round of the full circuit. With the same
search limits it returns 6 faults for the unflagged circuit and 8 for the flagged circuit. Both searches
give upper bounds, so this is evidence and not a proof that the flagged circuit has fault distance 8.
Stim’s search on more than one round of the flagged circuit ran out of memory.
Simulation. Table 7 compares the two circuits with the same decoder. At p = 0.3% the flagged
circuit fails at 1.9 ×10
−4
against 2.9 × 10
−4
, a gain of 1.5 on 21 failures. At p = 0.1% to 0.2% the
two circuits agree within statistical error. The higher fault distance does not show as a lower failure
rate at these error rates. A gain from the fourth-order scaling should appear at lower p, where we
could not collect enough failures. The flag also adds two CNOTs per check and one more qubit
that can fail, and BP-OSD is not a minimum-weight decoder, so it may not use the full distance.
7 Access to single logical qubits
Line operators. A memory must allow single logical qubits to be read and written. We first list
the low-weight logical operators. Along each cubic axis the tetrahedral voids form straight lines of
2L qubits, and the product of Z (or X) on such a line is a logical operator of minimum weight.
The lines span 3L − 2 of the 6L − 4 independent logical Z operators. All lines commute with each
other, because two perpendicular lines on this torus meet in two qubits. A line never has another
line as its partner.
Ribbon operators. The partners have a second shape. Take two voids that are neighbors along
one cubic axis, and step this pair L times along a face diagonal perpendicular to that axis. The
result is a ribbon of 2L qubits, again of minimum weight. Lines and ribbons together span 18 of
the 20 logical operators of each type at L = 4, 25 of 26 at L = 5 and 30 of 32 at L = 6. Products
of lines and ribbons give anticommuting Z and X operators for 16, 24 and 28 of the logical qubits.
This number is the rank of the commutation matrix between the two sets. The other 4, 2 and 4
logical qubits need operators of another shape, which we did not study. A greedy search finds 12,
18 and 24 logical qubits whose Z and X operators are each a single operator of weight 2L and
commute with the operators chosen for the other qubits. In the sets we found, all of these operators
are ribbons. These counts are lower bounds.
Relation to the fracton literature. The two shapes match the known excitations of the model.
The checkerboard model has lineons, which move along straight lines, and pairs of neighboring
fractons, which move as planons within a plane [1, 14]. A line is the string operator of a lineon
closed around the torus, and we read a ribbon as the closed string operator of a fracton pair. Shirley,
11
Slagle and Chen show that the model is equivalent to two copies of the X-cube model and note that
its lineon string operators can anticommute with each other [14]. On our torus two perpendicular
lines always meet twice, so they commute. We did not find an explicit list of minimum-weight
logical operators, their pairing, or their weights for this code in Refs. [1, 2, 3, 5, 14]. The shapes
are expected. Our contribution is the count of what they span and pair on this torus.
Measuring one line or ribbon. We measure a line or ribbon by the gauging method of
Williamson and Yoder [6]. The 2L qubits of a line are joined into a cycle by 2L new edge qubits.
Each line qubit v gets a new check A
v
= Z
v
Q
e
Z
e
over its two edges, and the product of all A
v
is the line operator. A ribbon uses a ladder with 3L edge qubits and weight-4 X checks on its
squares. The new Z checks have weight 3 or 4, and the deformed X checks have weight at most 9.
The merged code has exactly one logical qubit less. A randomized search finds logical operators of
the merged code at weight 8 for L = 4 and weight 10 for L = 5, and none below. These weights
equal the distances of the block. They are upper bounds on the merged distance.
Joint measurement with a toric layer. To move a logical qubit out of the block we measure
the product of a line operator and a logical Z of a processing code. As processing code we take a
rotated toric layer of distance 2L. At L = 4 the block has 128 data qubits and the layer 64. The
bridge has 24 qubits: 8 edges on the line, 8 on a row of the layer, and 8 rungs between them, with 8
weight-4 X checks on the squares. The merged code has 21 logical qubits instead of 22. Its checks
have weight at most 9 (X) and 8 (Z), and the randomized search gives distance at most 8 for both
types. One round takes 8 CNOT layers for the Z checks and 10 for the X checks.
Simulation of the joint measurement. We prepare all data qubits in |0⟩ and the bridge qubits
in |+⟩, run 8 rounds of the merged checks, and measure the data qubits in Z and the bridge qubits
in X. The measured value of the joint operator is the product of the first-round A
v
outcomes.
The noise model is that of Section 5, and the decoder is setting A alone. As a control we run the
two blocks for 8 rounds without the bridge. Table 8 gives the results. At p = 0.1% the measured
value is wrong in 12 of 139,780 shots, a rate of 8.6 × 10
−5
. This is about a quarter of the chance,
3.2 × 10
−4
, that a given stored value of the memory is wrong after the same 8 rounds with the
same decoder (setting A, 4.0 × 10
−5
per round in the runs of Table 5). The stored qubits do not
fail more often with the bridge. At p = 0.2% and 0.3% they fail about 25% to 30% less often than
in the control. A likely reason, which we did not test, is that the bridge checks detect error chains
that cross the measured line. In every shot with a wrong measured value a stored qubit also failed.
The stored failures are counted per block here. We did not record the number of wrong values per
shot in these runs.
What the test leaves open. The bridge is on from the first round to the last. A transfer of
a qubit needs the bridge to be switched on and off during a memory run, and it needs an X-type
measurement as well. We tested one Z-type line. Ribbons are measured only at the level of the
merged code, not with a toric layer and not under noise. The bridge qubits are not placed on
crystal sites, so the nearest-neighbor property of the memory circuit does not extend to the bridge.
8 Comparison with other memories
Against FCC bond codes. The bond code [[3L
3
, 2L
3
+ 2, 3]] has a higher rate but corrects one
error. The sheets reach distance L at toric density [8]. The checkerboard code sits between them,
12
Table 8: Joint measurement of a checkerboard line operator and a toric logical Z at L = 4, 8
rounds, Z basis, no idle noise. A stored failure is a wrong value of any of the 22 logical Z operators
of the two blocks at the end. The last column is the block failure rate per logical qubit per round,
computed with k = 22.
p circuit shots wrong measured value shots with a stored failure rate
0.1% bridged 139,780 12 (8.6 × 10
−5
) 111 4.5 × 10
−6
0.2% bridged 17,200 23 (1.3 × 10
−3
) 136 4.5 × 10
−5
0.2% no bridge 9,360 – 97 5.9 × 10
−5
0.3% bridged 7,060 27 (3.8 × 10
−3
) 253 2.1 × 10
−4
0.3% no bridge 1,880 – 96 3.0 × 10
−4
with growing distance and six times the toric density on the same crystal.
Against bivariate bicycle codes. The gross code [[144, 12, 12]] has kd
2
/n = 12 with weight-6
checks and a higher distance at similar size [15]. It needs two long-range couplers per qubit. The
checkerboard code has weight-8 checks and needs three dimensions, but every coupler has the same
short length.
Against lifted-product memories. Cain et al. use a lifted-product code with about 3.6 data
qubits per logical qubit and distance up to 20, with qubits moved between zones [7]. The checker-
board code uses 6.4 data qubits per logical qubit at distance 8, and the ratio grows as d
2
/12 at
larger distance. It does not compete with that memory in density. Its niche is hardware with fixed
short couplers.
9 Limitations
The code and its FCC arrangement are known [1]. Two members and a circuit-level simulation
of one are already published [5].
k = 6L −4 is computed for L ≤ 10 and d = 2L is verified for L ≤ 7. Neither is proved for all
L.
Fault distances are upper bounds from heuristic searches. At L = 4 the circuit has fault
distance at most 6, below the code distance 8. For L = 5 and 6 the fault distance is not
determined.
Samples at low error rates and at the larger sizes are small. The L = 5 points at p = 0.15%
and 0.2% rest on 11 and 23 failed shots. At L = 6 we have ensemble data at two error rates
only, with 6 and 16 failed shots. We have no ensemble data at L = 5 and p = 0.1% or at
L = 6 and p ≤ 0.2%.
We give no threshold. Up to p = 0.5% the block failure rate still falls from L = 4 to 5, so
the curves do not cross in the range we tested. The pseudo-threshold of 0.45% that Ref. [5]
reports for [[128, 20, 8]] is a different quantity. Above p = 0.3% the code loses its advantage
over toric layers (Section 5).
13
Failures are correlated, so the block failure rate and the rate per stored value differ by a
factor of 7 to 12. The rate per stored value is measured only in the Z basis without idle noise.
Tables 6, 7 and 8 give block rates only, with setting A alone. The number of wrong values
per failed shot depends on the logical basis. We searched for a better basis at L = 4 only,
and the search is heuristic.
The toric baseline uses a different decoder (matching) and L rounds instead of 2L. BP-OSD
with one setting returns a correction less probable than the true faults in 97% of its failures
at L = 4. The ensemble of two settings lowers the failure rate by a factor of 1.5 to 3.6, but
it is not a most-probable-error decoder, and a five-setting test at L = 4 fails less often still.
The two settings were chosen on 350 shots at L = 4.
The ensemble decoder takes 0.05 s per shot at L = 4, p = 0.1% and 22 s per shot at L = 6,
p = 0.4%, on one CPU core. A real-time decoder for this code is not known to us.
The fault distance 8 of the flagged circuit rests on heuristic searches, and on one round only
for the full-circuit search. The flags gave no measured gain at p ≤ 0.2%.
The torus needs periodic couplings. We did not study open boundaries.
We give no logical gates. Access to single logical qubits is tested for one Z-type line measure-
ment with the bridge on throughout (Section 7). Switching the bridge during a run, X-type
and ribbon measurements with a toric layer, and a layout for the bridge qubits are open. The
distances of the merged codes are upper bounds. At L = 4 we found single-operator access
for 12 of the 20 logical qubits, and lines and ribbons reach at most 16.
No device has fixed three-dimensional coupling with eight neighbors per ancilla.
10 Conclusion
Summary. The checkerboard fracton code on the FCC-primitive torus is a family [[2L
3
, 6L −
4, 2L]] as far as we could check, with exact distances up to 14. It has a syndrome circuit with
one ancilla per check and nearest-neighbor couplings on the FCC crystal. Hook errors limit the
fault distance to 6 at L = 4, and one flag qubit per check appears to restore 8, though without a
measured gain at p ≤ 0.2%. Under circuit noise, with an ensemble of two BP-OSD settings, the
block failure rate falls with size from L = 4 to 6. Up to p = 0.3% the block of size L fails less
often, per logical qubit, than a toric layer of distance L + 2, by a factor of 2.5 to 3.3 at p ≤ 0.2%,
and it uses 2.5 to 4.4 times fewer qubits. A failure of the block corrupts a third to a half of the
stored values. Per stored value the code of size L performs like a toric layer of distance L + 1 to
L + 2 at p ≤ 0.2% and L to L + 1 at p = 0.3%, and the saving in qubits is 1.1 to 2.5. The code
is therefore most useful where a computation needs all stored qubits to be correct. The rates are
limited by the decoder. One BP-OSD setting fails 1.5 to 3.6 times more often than the ensemble
of two, and a test with five settings at L = 4 shows that the ensemble of two is not yet optimal. A
joint measurement of a line operator with a toric layer works under circuit noise at L = 4 without
harm to the stored qubits. The open steps are a proof of the flagged fault distance, a fast decoder
that finds the most probable correction, a logical basis or encoding that confines failures to few
stored qubits, open boundaries, a full transfer of a logical qubit in and out of the block, and logical
gates.
Funding. This research received no external funding.
14
Data Availability Statement. The scripts and raw data that support the find-
ings of this article are openly available in the archive fcc distance.zip at https:
//github.com/raghu91302/ssmtheory. fluorite.py builds the codes; family.py,
exact distance.py and dfs distance.py give Table 1, and cubic torus k.py gives the cubic-
torus count; hook distance.py, order search.py and circuit distance.py give Section 4;
circuit sim4.py, circuit sim5.py, toric builder.py, circuit sim2.py and toric extra.py
give Section 5; bench.py to bench3.py give the decoder comparison; fault model.py,
flag model check.py, cd2.py, sublattice search.py and circuit sim6.py give Section 6;
access test2.py, partner shape.py, merge test.py, surgery.py and surgery sim.py give
Section 7. ens main.py with ens plan.json gives the main runs with the two-setting ensemble
(Tables 2, 3 and 5), and ens.py and ens prof.py give the five-setting test and the choice of
the two settings. mult sim.py and mult.py give the patterns of wrong values with one setting,
class weight.py and decomp.py the operator weights and the change of basis, diag.py the
decoder diagnosis, and toric joint.py and toric joint idle.py give the toric baseline on both
measures; metrics.py and make results.py pool the raw files into the tables and Figure 2.
Conflicts of Interest. The author is employed by IDrive Inc. and declares provisional patent
applications related to quantum error correction codes on the FCC lattice, assigned to IDrive Inc.
References
[1] S. Vijay, J. Haah, L. Fu, Fracton topological order, generalized lattice gauge theory, and
duality, Phys. Rev. B 94, 235157 (2016).
[2] G. Canossa, L. Pollet, M. A. Martin-Delgado, H. Song, K. Liu, Error resilience of fracton codes
and near saturation of code-capacity threshold in 3D, arXiv:2512.22888 (2025).
[3] C. M. Hopkin, V. V. Albert, D. J. Williamson, Translation-invariant quantum low-density
parity-check codes from compactified fracton models, arXiv:2605.19298 (2026).
[4] Y. Tan, B. Roberts, N. Tantivasadakarn, B. Yoshida, N. Y. Yao, Fracton models from product
codes, arXiv:2312.08462 (2023).
[5] A. A. Galimova, Independent trivariate bicycle codes, arXiv:2603.17703 (2026).
[6] D. J. Williamson, T. J. Yoder, Low-overhead fault-tolerant quantum computation by gauging
logical operators, arXiv:2410.02213 (2024).
[7] M. Cain, Q. Xu, R. King, L. R. B. Picard, H. Levine, M. Endres, J. Preskill, H.-Y. Huang,
D. Bluvstein, Shor’s algorithm is possible with as few as 10,000 reconfigurable atomic qubits,
arXiv:2603.28627 (2026).
[8] R. Kulkarni, Ancilla-shared time multiplexing of three FCC sheet codes: a one-third qubit
saving at a 1.3× threshold cost, Quantum Rep. 8, 97 (2026), https://doi.org/10.3390/
quantum8030097.
[9] R. Kulkarni, Inter-sheet joint Pauli measurements on the FCC lattice: a cross-block fault-
tolerant primitive at K = 4 active connectivity, Quantum Rep. 8, 98 (2026), https://doi.
org/10.3390/quantum8030098.
15
[10] Z. Liang, Y.-A. Chen, Self-dual bivariate bicycle codes with transversal Clifford gates,
arXiv:2510.05211 (2025).
[11] C. Gidney, Stim: a fast stabilizer circuit simulator, Quantum 5, 497 (2021).
[12] J. Roffe, D. R. White, S. Burton, E. Campbell, Decoding across the quantum low-density
parity-check code landscape, Phys. Rev. Research 2, 043423 (2020).
[13] O. Higgott, C. Gidney, Sparse Blossom: correcting a million errors per core second with
minimum-weight matching, arXiv:2303.15933 (2023).
[14] W. Shirley, K. Slagle, X. Chen, Foliated fracton order in the checkerboard model, Phys. Rev.
B 99, 115123 (2019).
[15] S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, T. J. Yoder, High-threshold and
low-overhead fault-tolerant quantum memory, Nature 627, 778 (2024).
16