
Every X-check has weight 4 and every Z-check has weight 8, with no exceptions anywhere on
the torus. Each qubit is touched by 3 checks of each type. The two check types commute because
a tetrahedron and an edge always share an even number of triangles; in the language of chain
complexes, H
X
= ∂
T
3
and H
Z
= ∂
2
, so H
X
H
T
Z
= 0 follows from ∂∂ = 0. We verify it numerically
anyway (Appendix A). This is the hypercubic construction with squares replaced by triangles and
cubes by tetrahedra.
4 What the computer confirms
Theorem 1 (Parameters at L = 4). At L = 4 the code is a valid CSS code with
n = 4096, rk(H
Z
) = 1405, rk(H
X
) = 2685, k = n − rk(H
Z
) − rk(H
X
) = 6.
The number of logical qubits is fixed by the shape of the space rather than by the lattice.
A four-dimensional torus has
4
2
= 6 independent two-dimensional sheets, so k = 6 at every L.
The six X-type logical operators are sheets that wrap the torus; the six Z-type ones are sheets in
the dual honeycomb, which is the 24-cell honeycomb. Both are sheets, as in the hypercubic case
[1, 3].
As a further check, an exhaustive scan over all
4096
2
pairs of qubits finds that the only weight-
4 operators that commute with every Z-check are the 3072 tetrahedron boundaries, that is, the
X-stabilizers themselves, with nothing extra, and that no weight-4 operator commutes with every
X-check. Both facts are consistent with the distance computed next.
5 The distance is exactly 2L
2
Here is the argument in words before we give it properly. A logical operator is a sheet that wraps
the torus. Look at its shadow : pick two of the four coordinates and squash the torus onto that
two-dimensional cross-section. A wrapping sheet has to shadow the whole cross-section, with no
gaps. The cross-section has area L
2
, and one triangle can shadow at most an area of 1/2, so at
least 2L
2
triangles are needed. A close-packed plane of the lattice has exactly that many.
The local ingredient comes first.
Lemma 1 (How big a shadow can be). Let π
ij
be the map that keeps only the coordinates x
i
and x
j
. Every triangle f of the honeycomb has area(π
ij
(f)) ≤
1
2
, and every 2-cell f
∗
of the dual
24-cell honeycomb has area(π
ij
(f
∗
)) ≤
1
4
. Both values are reached.
Proof. A triangle is {v, v + r, v + s} where r, s and r − s are all roots, so its shadow is a triangle
of area
1
2
|r
i
s
j
− r
j
s
i
|. A root has exactly two nonzero entries, each ±1, so |r
i
s
j
− r
j
s
i
| ≤ 2. The
value 2 needs r and s to both live on the coordinates i and j with opposite sign patterns, say
r = (1, 1, 0, 0) and s = (1, −1, 0, 0). But then r − s and r + s each have a single entry ±2, and
neither is a root, so there is no such triangle. Hence |r
i
s
j
− r
j
s
i
| ≤ 1 and the area is at most
1
2
.
It is reached, for instance by r = (1, 1, 0, 0) and s = (1, 0, 1, 0) shadowed onto (x
1
, x
2
).
A 2-cell of the dual honeycomb is the triangle joining the centres of the 3 16-cells that contain
a given triangle (Section 2). Running through the 96 kinds of triangle and all 6 coordinate pairs
gives a largest shadow of
1
4
. Appendix B is the computation; it is exact arithmetic and takes a
second.
Theorem 2 (Lower bound). For even L ≥ 4, every X-type logical operator has weight at least
2L
2
, and every Z-type logical operator has weight at least 4L
2
.
4