Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum Quadratic Residue Codes Overview

Updated 5 July 2026
  • Quantum quadratic residue codes are quantum stabilizer codes derived from classical expurgated quadratic residue codes, yielding a one-logical-qudit construction with prime block lengths.
  • The construction uses Hermitian self-orthogonality based on quadratic residue and nonresidue sets, ensuring error correction distances that often meet rigorous bounds.
  • These codes underpin advanced magic-state distillation protocols and inspire diverse extensions including cyclic, quasi-cyclic, and asymmetric quantum constructions.

Searching arXiv for recent and foundational papers on quantum quadratic residue codes and closely related constructions. Quantum quadratic residue codes are quantum stabilizer codes derived from the arithmetic and algebraic structure of classical quadratic residue codes. In the most precise recent usage, a quantum quadratic residue code is the image under ι1\iota^{-1} of a Hermitian self-orthogonal expurgated quadratic residue code over Fd2\mathbb F_{d^2}, yielding a one-logical-qudit stabilizer code of prime length pp (Zurel et al., 19 Mar 2026). More broadly, the literature also uses quadratic residue structure to build cyclic stabilizer codes, quasi-cyclic stabilizer codes, quantum synchronizable codes, and asymmetric quantum codes, so the subject spans both a narrow Hermitian-stabilizer definition and a wider family of residue-based quantum constructions (Xie et al., 2014).

1. Classical quadratic-residue foundations

Let pp be an odd prime, and let Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times denote the nonzero quadratic residues and nonresidues modulo pp, with Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/2. A standard expurgated quadratic residue code over Fq\mathbb F_q has generator polynomial

g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),

zero set {0}Q\{0\}\cup \mathcal Q, and parameters Fd2\mathbb F_{d^2}0; the corresponding augmented and extended variants supply the standard odd-like/even-like QR trichotomy that underlies most quantum constructions (Zurel et al., 19 Mar 2026).

For binary QR codes of prime length Fd2\mathbb F_{d^2}1, the literature used in quantum constructions distinguishes the Fd2\mathbb F_{d^2}2 pair Fd2\mathbb F_{d^2}3 from the Fd2\mathbb F_{d^2}4 pair Fd2\mathbb F_{d^2}5, and exploits the square-root bound

Fd2\mathbb F_{d^2}6

with the refinement

Fd2\mathbb F_{d^2}7

when Fd2\mathbb F_{d^2}8 (Xie et al., 2014). In the asymmetric setting, the same QR data appear as Fd2\mathbb F_{d^2}9, with

pp0

and

pp1

(Guardia, 2013).

A distinct but related classical object is the binary quasi-quadratic residue code

pp2

which is self-dual of length pp3 and dimension pp4 when pp5 (Boston et al., 2017). This terminology is a recurring source of ambiguity: in later quantum work, “QQR” refers to quantum quadratic residue codes, whereas in this classical literature it denotes quasi-quadratic residue codes.

2. Stabilizer realization and exact quantum definition

The most explicit modern definition takes a classical expurgated QR code pp6 and identifies pp7 with pp8 through

pp9

where pp0. A quantum quadratic residue code on pp1-dimensional qudits is then the image under pp2 of a Hermitian self-orthogonal expurgated quadratic residue code over pp3 (Zurel et al., 19 Mar 2026).

The Hermitian self-orthogonality criterion is

pp4

for pp5. Specializing to pp6, the existence condition becomes

pp7

For qubits this is equivalent to pp8 or pp9; for qutrits it is equivalent to Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times0 or Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times1. The corresponding stabilizer code has parameters

Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times2

with

Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times3

Thus the recent QQR family is inherently a one-logical-qudit family with prime blocklength and classical distance inherited from expurgated QR codes (Zurel et al., 19 Mar 2026).

This family is not uniformly CSS. It becomes CSS when the underlying expurgated QR code already exists over Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times4, in which case

Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times5

for the corresponding expurgated QR code Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times6 over Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times7. For qubits this occurs exactly when Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times8, and for qutrits exactly when Q,NFp×\mathcal Q,\mathcal N\subset \mathbb F_p^\times9 (Zurel et al., 19 Mar 2026).

3. Residue-based quantum code families beyond the narrow QQR definition

Quantum synchronizable codes form one important extension of the QR paradigm. Starting from cyclic codes pp0 with pp1, the synchronizable-code theorem yields

pp2

subject to

pp3

where pp4. For binary QR codes of prime length pp5, one has

pp6

hence dual-containment, and for Mersenne primes pp7 the generator polynomial factors into pp8 irreducible factors of degree pp9. Deleting Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/20 such factors produces supercodes and a family

Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/21

with

Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/22

which attains the synchronization upper bound in that framework (Xie et al., 2014).

Asymmetric quantum codes arise from QR codes through expansion from Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/23 to the prime field. For Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/24, the classical relation

Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/25

gives Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/26 and yields

Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/27

For Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/28, the dual-containing relation

Q=N=(p1)/2|\mathcal Q|=|\mathcal N|=(p-1)/29

gives

Fq\mathbb F_q0

In both families the unexpanded quantum dimension is Fq\mathbb F_q1, and expansion multiplies it to Fq\mathbb F_q2 (Guardia, 2013).

A different construction starts directly from quadratic residue sets rather than from classical QR duality theorems. For primes Fq\mathbb F_q3, the stabilizer matrix Fq\mathbb F_q4 is built so that

Fq\mathbb F_q5

The resulting Type-I family is cyclic of length Fq\mathbb F_q6, while Type-II is quasi-cyclic of length Fq\mathbb F_q7 with Fq\mathbb F_q8. For Fq\mathbb F_q9 and odd g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),0, the Type-I family gives

g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),1

including

g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),2

For g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),3 and even g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),4, one gets high-rate cyclic codes

g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),5

The Type-II quasi-cyclic constructions produce examples such as g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),6, g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),7, and g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),8, with code dimension determined by rank formulas g(x)=(x1)sQ(xζs),g(x)=(x-1)\prod_{s\in \mathcal Q}(x-\zeta^s),9 or {0}Q\{0\}\cup \mathcal Q0 depending on the parity of {0}Q\{0\}\cup \mathcal Q1 (Xie et al., 2014).

4. Representative parameter families and code equivalences

Several distinct QR-based quantum families coexist in the literature:

Family Main hypothesis Quantum parameters
Hermitian QQR {0}Q\{0\}\cup \mathcal Q2 {0}Q\{0\}\cup \mathcal Q3
Synchronizable QR {0}Q\{0\}\cup \mathcal Q4, {0}Q\{0\}\cup \mathcal Q5 {0}Q\{0\}\cup \mathcal Q6
Expanded AQECC from QR {0}Q\{0\}\cup \mathcal Q7 quadratic residue mod {0}Q\{0\}\cup \mathcal Q8 {0}Q\{0\}\cup \mathcal Q9
QR-set stabilizer codes Fd2\mathbb F_{d^2}00 cyclic Fd2\mathbb F_{d^2}01, QC Fd2\mathbb F_{d^2}02

Within the recent Hermitian framework, the paper explicitly identifies several landmark distillation codes as quantum quadratic residue codes up to permutations of qudits and local Clifford equivalence. The length-Fd2\mathbb F_{d^2}03 qubit QQR code is equivalent to the Fd2\mathbb F_{d^2}04 perfect code, the length-Fd2\mathbb F_{d^2}05 qubit QQR code is equivalent to the Steane code, the length-Fd2\mathbb F_{d^2}06 qutrit QQR code is equivalent to the Fd2\mathbb F_{d^2}07-qutrit Golay code, and the length-Fd2\mathbb F_{d^2}08 qubit QQR code is equivalent to the Fd2\mathbb F_{d^2}09-qubit Golay code (Zurel et al., 19 Mar 2026).

The same work lists representative classical and quantum parameter pairs. For qubits: Fd2\mathbb F_{d^2}10

Fd2\mathbb F_{d^2}11

Fd2\mathbb F_{d^2}12

For qutrits: Fd2\mathbb F_{d^2}13

Fd2\mathbb F_{d^2}14

Fd2\mathbb F_{d^2}15

These examples exhibit the characteristic one-logical-qudit structure of the modern QQR family (Zurel et al., 19 Mar 2026).

5. Magic-state distillation and current significance

Quantum quadratic residue codes acquired renewed prominence through magic-state distillation. In that setting, the family supplies Fd2\mathbb F_{d^2}16-to-1 stabilizer reductions for both qubit Fd2\mathbb F_{d^2}17-states and qutrit Strange states, and the recent synthesis argues that several of the most important known distillation protocols are unified by the QQR formalism (Zurel et al., 19 Mar 2026).

For qubits, the reported QQR codes of lengths

Fd2\mathbb F_{d^2}18

distill Fd2\mathbb F_{d^2}19 states, with thresholds

Fd2\mathbb F_{d^2}20

respectively. For qutrits, the reported QQR codes of lengths

Fd2\mathbb F_{d^2}21

distill Strange states, with thresholds

Fd2\mathbb F_{d^2}22

The best thresholds in that study remain the Fd2\mathbb F_{d^2}23-qubit code for Fd2\mathbb F_{d^2}24-state distillation and the Fd2\mathbb F_{d^2}25-qutrit Golay/QQR code for Strange-state distillation (Zurel et al., 19 Mar 2026).

The asymptotic result is particularly notable: if Fd2\mathbb F_{d^2}26 is prime with

Fd2\mathbb F_{d^2}27

then the corresponding qubit QQR code has a choice of sign Fd2\mathbb F_{d^2}28 such that

Fd2\mathbb F_{d^2}29

hence a nontrivial distillation threshold. By Dirichlet’s theorem, this yields infinitely many quantum quadratic residue codes that distill Fd2\mathbb F_{d^2}30 states (Zurel et al., 19 Mar 2026).

The technical reason QR structure is useful here is not only distance. The distillation analysis is reduced to classical weight enumerators, and for the qubit case the Fd2\mathbb F_{d^2}31-linearity of the classical QR input aligns with a transversal Fd2\mathbb F_{d^2}32 Clifford. Invariant-theoretic reconstruction of extended QR weight enumerators then becomes a practical tool for analyzing distillation performance (Zurel et al., 19 Mar 2026).

The QR paradigm extends beyond prime-length cyclic codes. Duadic group algebra codes are a generalization of quadratic residue codes, and they were shown to yield degenerate quantum stabilizer codes in which many errors of small weight do not need error correction [0701060]. More generally, Fd2\mathbb F_{d^2}33-adic residue codes over

Fd2\mathbb F_{d^2}34

admit dual-containing criteria and an orthogonality-preserving Gray map; from dual-containing odd-like class-I Fd2\mathbb F_{d^2}35-adic residue codes, one obtains quantum codes with parameters

Fd2\mathbb F_{d^2}36

where Fd2\mathbb F_{d^2}37 and Fd2\mathbb F_{d^2}38 is the Gray distance (Kuruz et al., 2018). Since quadratic residue codes correspond to Fd2\mathbb F_{d^2}39, this places quantum QR constructions inside a broader residue-code hierarchy.

A second axis of generalization is ring lifting. Quadratic residue codes over Fd2\mathbb F_{d^2}40 admit Gray maps preserving self-duality; in the case Fd2\mathbb F_{d^2}41, the even-like QR codes are self-orthogonal and the extended QR codes are self-dual after extension, with Gray images such as a self-orthogonal nearly MDS Fd2\mathbb F_{d^2}42 code over Fd2\mathbb F_{d^2}43 and a self-dual Fd2\mathbb F_{d^2}44 code over Fd2\mathbb F_{d^2}45 (Goyal et al., 2016). Over Fd2\mathbb F_{d^2}46, the decomposition

Fd2\mathbb F_{d^2}47

and a duality-preserving Gray map to Fd2\mathbb F_{d^2}48 yield self-orthogonal QR codes Fd2\mathbb F_{d^2}49, self-dual extended QR codes Fd2\mathbb F_{d^2}50 for Fd2\mathbb F_{d^2}51, and concrete self-dual Fd2\mathbb F_{d^2}52-codes with parameters Fd2\mathbb F_{d^2}53 and Fd2\mathbb F_{d^2}54 (Gao et al., 2014). These are not quantum codes in themselves, but they supply classical self-orthogonal and dual-containing structures of the kind routinely used in stabilizer constructions.

A final source of ambiguity is terminological. “QQR code” may denote the classical quasi-quadratic residue code

Fd2\mathbb F_{d^2}55

which is a binary self-dual code of length Fd2\mathbb F_{d^2}56 and dimension Fd2\mathbb F_{d^2}57 for Fd2\mathbb F_{d^2}58, with an extended code carrying an action of Fd2\mathbb F_{d^2}59 and a weight polynomial divisible by Fd2\mathbb F_{d^2}60 (Boston et al., 2017). In the quantum literature, however, “quantum quadratic residue code” refers either to the Hermitian one-logical-qudit family over Fd2\mathbb F_{d^2}61 or, more loosely, to any stabilizer or CSS construction whose commutativity and distance properties are organized by quadratic residue sets (Zurel et al., 19 Mar 2026). The modern subject therefore combines a precise stabilizer definition with a wider algebraic design space shaped by residue/nonresidue arithmetic.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Quantum Quadratic Residue Codes.