
raises the distance to 4, with the same rate at each check weight (Section 7). Concatenating
codes of growing
n
gives a distance that grows without bound at a rate above 1
/
3 (Section 10).
A CSS code in which every qubit lies in exactly two checks of each type is a surface code
in the sense of Bombin and Martin-Delgado [
6
] and Z´emor [
7
]: the
Z
-checks are the vertices,
the qubits the edges and the
X
-checks the faces of a closed 2-complex, and when the complex is
connected the number of logical qubits is
k
= 2
− χ
, where
χ
is its Euler characteristic. The
D
n
codes and their distance-4 variants are instances of this framework, built on a flat lattice.
Our contribution is the explicit families, their exact parameters for every
n
, the comparison with
other codes of the same check weight and distance, and the concatenated family.
Context. Kitaev’s toric code [
8
] and the surface codes [
9
] encode a fixed number of logical
qubits, so their rate goes to zero. Hypergraph product codes [
10
] reach a constant rate with a
distance that grows as the square root of the number of qubits, and recent quantum low-density
parity-check (LDPC) codes [
11
,
12
] reach constant rate and linear distance; see Ref. [
13
] for a
review. Closest to this work are hyperbolic surface codes [
14
,
15
]: a tiling of a hyperbolic surface
by
p
-gons,
q
at each vertex, gives a rate that tends to 1
−
2
/p −
2
/q
, two checks of each type per
qubit, and a distance that grows as the logarithm of the number of qubits. At fixed distance
3, quantum Hamming codes [[2
m
−
1
,
2
m
−
1
−
2
m,
3]] [
16
] have a rate that tends to 1, but
their checks are not local, and concatenating quantum Hamming codes of growing size gives a
constant rate with a distance that grows without bound [
17
]. The
D
n
codes and their distance-4
variants have the rate of the
{K, K}
hyperbolic tiling, 1
−
4
/K
, on a flat lattice in
n
dimensions,
at the price of a fixed distance, 3 or 4. For
n
= 3 the checks act on nearest neighbors in ordinary
three-dimensional space; for
n ≥
4 they are local only in
n
dimensions. The present code differs
from the four-dimensional toric code on the
D
4
lattice [
18
], which has its qubits on triangles and
a distance that grows with L.
What is and is not claimed. With all roots the distance is 3 for every
n
and
L
(Theorem 3).
Every triangle of the lattice is a logical operator, and the triangles generate all but
n
of the
k
logical classes (Proposition 1). Removing the triangles raises the distance to 4, but not further:
a 4-cycle built from a single index pair is always a logical operator (Theorem 4). The codes have
no topological order: making
L
larger adds logical qubits but not protection. They are high-rate
geometric codes of distance 3 or 4, not candidates for a fault-tolerance threshold on their own.
The concatenated codes have a threshold under independent errors, but they are not local and
their blocks are very large. The failure-rate comparison covers errors on data qubits only, not
measurement or circuit faults.
Results. (i) The construction is a CSS code for every
n ≥
3 and even
L ≥
4, and its void graph
is a copy of the
D
n
graph (Lemmas 2 and 3, Theorem 1). (ii) The code is [[
n
(
n −
1)
L
n
/
2
,
(
n −
2)(
n
+ 1)
L
n
/
2 + 2
,
3 ]] (Theorems 2 and 3). (iii) It is a surface code with
k
= 2
− χ
, and all
but
n
of its logical classes are generated by triangles (Remark 1, Proposition 1). (iv) For every
connected triangle-free graph
P
on the
n
coordinate indices, the code built from the roots of
P
is [[
KL
n
/
4
,
(
K −
4)
L
n
/
4 + 2
,
4 ]] with
K
= 4
|E
(
P
)
|
(Theorem 4). (v) Minimum-weight
decoding is a matching problem (Section 8). (vi) The codes match the rate of hyperbolic surface
codes of the same check weight, and at comparable check weight their rate is at least that of
quantum Hamming codes at distance 3 and of extended Hamming CSS codes at distance 4
(Section 9). (vii) Under independent errors, at check weight 8 the lattice code has both a higher
rate and a lower failure rate per logical qubit than the Hamming-type codes; the weight-12
2