Quantum codes in the Lee metric

Jinkang Guo, Yiqiu Han, Aranya Chakraborty, Shubham P. Jain, Tianhao Liu, Victor V. Albert, Andrew Lucas

arXiv preprint (2026)

arXiv PDF

Two five-by-five grids of qudit Pauli errors; small errors are outlined as a square in one grid and as a diamond in the other.
Two ways to measure the size of a qudit error XaZb. (a) The separate metric looks at the X and Z shifts on their own, so the errors up to a given size form a square. (b) The joint metric adds the two shifts, so they form a diamond. Orange and blue outline the errors of size at most one and two. From the paper.

In short

Noise on a qudit with many levels mostly nudges its state by small shifts rather than scrambling it. We develop a theory of quantum codes that measures errors by the size of those shifts, using the Lee metric from classical coding theory. We then work out what this buys and where it runs into limits.

Why it matters

Real quantum hardware has far more than two levels per particle, from the tower of states of a superconducting circuit to the many internal states of an atom or ion, yet most quantum codes use only two of them. Codes on q-level qudits could ease the challenge of scaling up. However, existing qudit codes are usually judged by how many qudits an error touches, as if all possible errors on a qudit were equally likely.

That is not realistic. On a large spin, such as a nuclear spin, the dominant errors are small shifts of the state by one or two steps. These are the discrete cousins of the small displacements that GKP codes for oscillators are built to correct. The Lee metric, long used in classical coding theory, measures an error by the total size of its shifts. That makes it the natural yardstick for this kind of noise.

What we did

In a collaboration between Andrew Lucas’s group at the University of Colorado Boulder and Victor Albert’s group at QuICS, we developed stabilizer and CSS codes over ℤq for any q. We measured them in two Lee metrics: one treats the X and Z shifts of an error separately, and the other adds them. Even for qubits this changes things, because the joint metric counts a Y error twice, which is the right accounting when bit flips and phase flips come from independent processes. It allows a 9-qubit code that corrects any two X or Z errors or any single Y error, whereas correcting any two errors in the usual Hamming metric takes at least 11 qubits.

We built families of such codes, including lifted Hamming and Golay codes obtained from classical self-dual codes with the construction of our earlier work on transversal gates. We also studied fault tolerance in this setting, including how Clifford gates spread the size of errors. A quantum version of the Gray map turns codes on four-level qudits into qubit codes, some with two-fold transversal gates beyond the qubit Clifford group.

Two results set the limits. For CSS Lee-LDPC codes on n qudits, the Lee distance can grow at most linearly in n, however large q is, so the big internal space of each qudit does not by itself make for a high-distance code. On the other hand, certain classical “helical repetition codes” on large qudits keep their memory for exponentially long times at fixed temperature, even in one dimension, once q grows with the system size. Their hypergraph products give local two-dimensional quantum codes that inherit this self-correction against Z errors; whether they also self-correct against X errors is open.

Related

Cite

@misc{guo2026quantum,
  title         = {Quantum codes in the {Lee} metric},
  author        = {Guo, Jinkang and Han, Yiqiu and Chakraborty, Aranya and Jain, Shubham P. and Liu, Tianhao and Albert, Victor V. and Lucas, Andrew},
  year          = {2026},
  eprint        = {2610.04834},
  archivePrefix = {arXiv},
  primaryClass  = {quant-ph}
}