Papers
Topics
Authors
Recent
Search
2000 character limit reached

Permutation-Invariant GNU Codes

Updated 4 July 2026
  • Permutation-invariant GNU codes are a family of quantum codes using Dicke state superpositions within the symmetric subspace, defined by gap (g), occupancy (n), and scaling (u) parameters.
  • They separate logical states by fixed excitation gaps, enabling exact correction of sparse Pauli errors and approximate correction of amplitude damping errors.
  • These codes exploit combinatorial binomial structures and inherent symmetry to support deletion correction, magic state distillation, and extend into broader permutation-invariant frameworks.

Permutation-invariant GNU codes are a three-parameter family of quantum codes embedded in the symmetric subspace of multiple qubits and expressed as structured superpositions of Dicke states. They were introduced explicitly under the name “gnu code” in Ouyang’s “Permutation-invariant quantum codes,” with parameters gg (gap), nn (occupancy), and uu (scaling factor), and block length m=gnum=gnu (Ouyang, 2013). Their defining feature is simultaneous exploitation of permutation symmetry, combinatorial Dicke-state structure, and spacing in excitation number. In the original formulation, this supports two distinct correction regimes: exact correction of arbitrary weight-tt errors for one parameter choice, and approximate correction of tt spontaneous-decay or amplitude-damping errors for another (Ouyang, 2013).

1. Physical and algebraic setting

Permutation-invariant quantum codes are code subspaces contained in the symmetric subspace of mm qubits, equivalently the subspace fixed by all qubit permutations. In Ouyang’s construction this setting is not merely aesthetic: for the spin-12\tfrac12 ferromagnetic Heisenberg Hamiltonian

H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),

with positive exchange constants JeJ_e, every permutation-invariant state is a ground state. Consequently, any permutation-invariant code automatically lies in the ground space of any connected Heisenberg ferromagnet without external magnetic field (Ouyang, 2013).

The natural basis of the symmetric subspace is the Dicke basis. For qubits, the Dicke state nn0 is the normalized symmetric superposition of all computational basis states of Hamming weight nn1. GNU codes are built directly from these states, so error-correction questions reduce to identities involving binomial coefficients and low-degree polynomials rather than generic tensor-product operator algebra (Ouyang, 2013).

The original paper also stresses two structural points that distinguish GNU codes from more standard families. First, these codes are generally non-stabilizer: the expectation is that permutation-invariant codes correcting a non-trivial number of errors are not quantum stabilizer codes (Ouyang, 2013). Second, they are not constant-excitation codes. Each logical basis state is instead supported on several Dicke weights separated by a fixed gap nn2 (Ouyang, 2013). A recurring misconception is that “GNU” was attached later; the 2013 paper itself introduces both the nn3-PI terminology and the shorthand “gnu code” (Ouyang, 2013).

2. Code construction and parameterization

For positive integers nn4 with nn5, Ouyang defines a one-qubit permutation-invariant code with logical basis

nn6

where nn7 is the gap, nn8 the occupancy, nn9 the scaling factor, and the block length is exactly

uu0

(Ouyang, 2013).

This parameterization is operational. The logical zero occupies Dicke weights uu1, while the logical one occupies uu2, up to uu3 (Ouyang, 2013). The gap uu4 controls how far low-weight errors must move excitation number in order to mix the two logical ladders; the occupancy uu5 controls how many Dicke levels participate and therefore how much combinatorial cancellation can be enforced; the scaling uu6 stretches the block without changing the basic ladder structure (Ouyang, 2013).

The shortest exact uu7-error-correcting GNU family arises from

uu8

so that

uu9

(Ouyang, 2013). Ouyang identifies this family as completely symmetrized Bacon–Shor codes. In particular, the m=gnum=gnu0-PI code is Ruskai’s 9-qubit permutation-invariant code, equivalently the completely symmetrized Shor code (Ouyang, 2013). For m=gnum=gnu1, the m=gnum=gnu2-PI code has length m=gnum=gnu3 and logical support on Dicke weights m=gnum=gnu4 and m=gnum=gnu5, respectively (Ouyang, 2013).

3. Exact correction of sparse and Pauli-type errors

The exact GNU theorem concerns m=gnum=gnu6-sparse channels, meaning channels whose Kraus operators are linear combinations of Pauli operators of weight at most m=gnum=gnu7. Ouyang proves that if

m=gnum=gnu8

then the worst-case error is exactly zero with respect to the resulting gnu code (Ouyang, 2013). In the minimal case m=gnum=gnu9, the block length is tt0 (Ouyang, 2013).

The mechanism has two parts. First, because the occupied Dicke weights for tt1 and tt2 differ by multiples of tt3, and because tt4, no operator of weight at most tt5 can bridge the logical ladders. This forces cross terms

tt6

to vanish for tt7-sparse Kraus operators tt8 (Ouyang, 2013). Second, the diagonal expectations agree because the difference reduces to an alternating binomial sum annihilated by

tt9

together with the fact that the relevant Dicke-state expectation values become polynomials of degree tt0 in tt1 (Ouyang, 2013). In effect, the gap enforces orthogonality, while the binomial amplitudes enforce diagonal equality.

Later work made this exact-error-correction picture more general. “A family of permutationally invariant quantum codes” derives necessary and sufficient Knill–Laflamme conditions for PI codes correcting tt2 Pauli errors, extending the previously known tt3 Pollatsek–Ruskai conditions to arbitrary tt4 (Aydin et al., 2023). That paper also constructs a broader PI family tt5 and proves that, for odd tt6,

tt7

coincides exactly with Ouyang’s GNU code with parameters tt8 (Aydin et al., 2023). In the same work, the shortest explicit tt9-Pauli-error-correcting code in the new family has length

mm0

which is shorter than the classical GNU benchmark mm1 for the corresponding explicit PI construction (Aydin et al., 2023).

4. Approximate amplitude damping, spontaneous decay, and deletions

The original GNU paper distinguishes sharply between exact correction of mm2-sparse errors and approximate correction of mm3 spontaneous decays. For the amplitude-damping channel

mm4

the GNU choice is

mm5

with advertised minimal length

mm6

(Ouyang, 2013). The resulting code is a mm7-AD code in the sense that the uncorrectable error scales as mm8 for small mm9 (Ouyang, 2013).

The underlying idea is again gap protection, but now for a non-Pauli, non-unitary channel. Amplitude damping lowers excitation number, and at most 12\tfrac120 decays change the weight by at most 12\tfrac121, which is too small to mix GNU ladders separated by 12\tfrac122 (Ouyang, 2013). Exact Knill–Laflamme conditions fail in this setting, so Ouyang develops an approximate criterion using deviation matrices 12\tfrac123, a total deviation parameter 12\tfrac124, and a lower bound involving 12\tfrac125 and 12\tfrac126 (Ouyang, 2013). This extends both exact Knill–Laflamme and the approximate criterion of Leung–Nielsen–Chuang–Yamamoto (Ouyang, 2013).

A later deletion-oriented development shows that permutation invariance also trivializes location uncertainty for lost particles. “Permutation-invariant quantum coding for quantum deletion channels” states that any permutation-invariant quantum code of distance 12\tfrac127 can correct 12\tfrac128 quantum deletions in both qubit and qudit settings, because deletion of 12\tfrac129 unknown particles is equivalent to erasure of a fixed H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),0 particles on the symmetric subspace (Ouyang, 2021). That paper studies shifted gnu codes with block length

H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),1

where Dicke weights H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),2 are shifted to H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),3, and gives an H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),4 encoding algorithm and an H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),5 decoding algorithm for a special shifted family satisfying

H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),6

(Ouyang, 2021).

Setting GNU-type parameter choice Stated guarantee
Arbitrary H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),7-sparse / weight-H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),8 errors H=2e={i,j}JeSiSj=eJe(πe121),H=-2\sum_{e=\{i,j\}}J_e\,\mathbf S_i\cdot \mathbf S_j = -\sum_e J_e\left(\pi_e-\frac12\mathbb 1\right),9 Exact correction; worst-case error JeJ_e0 (Ouyang, 2013)
JeJ_e1 spontaneous decays / amplitude damping JeJ_e2 Approximate JeJ_e3-AD correction with error JeJ_e4 (Ouyang, 2013)
JeJ_e5 deletions on PI codes Distance JeJ_e6 Any PI code corrects JeJ_e7 deletions; shifted gnu decoding given explicitly (Ouyang, 2021)

The 2026 general PI QEC theory reinforces this division of labor. For arbitrary correctable errors on arbitrary PI codes it proposes efficient algorithms using total angular momentum measurements, quantum Schur transforms or logical state teleportations, and geometric phase gates; for erasure and deletion errors on certain PI codes it gives a simpler algorithm, and the JeJ_e8-shifted gnu family is a central example (Ouyang et al., 14 Feb 2026).

5. Extensions, comparisons, and the broader PI landscape

Subsequent work places GNU codes inside a larger family of PI constructions rather than displacing them. The 2023 family JeJ_e9 uses both “low-weight” Dicke sectors nn00 and reflected sectors nn01, introduces a length-adjustment parameter nn02, and a sign parameter nn03, and contains the odd-occupancy nn04 GNU subclass exactly (Aydin et al., 2023). This broader family corrects Pauli, deletion, and amplitude-damping errors in different regimes and yields shorter explicit block lengths in several cases (Aydin et al., 2023).

The qubit-versus-qudit PI landscape was sharpened in “Permutation-invariant codes: a numerical study and qudit constructions,” which derives qudit Knill–Laflamme conditions for deletion errors and numerically studies minimal block length as a function of distance (Bond et al., 11 Mar 2026). For qubit PI codes correcting up to nn05 deletions, that work conjectures

nn06

equivalently

nn07

and reports numerical evidence that Pollatsek–Ruskai codes can saturate this bound (Bond et al., 11 Mar 2026). It also observes that, for qudit PI codes encoding one logical qudit, increasing the physical local dimension nn08 monotonically decreases the needed block length and approaches the quantum Singleton bound nn09 (Bond et al., 11 Mar 2026). This suggests that qudit generalizations of GNU-style ideas may be structurally advantageous even when canonical qubit GNU parameters remain the starting point.

A more sweeping generalization appears in “Quantum error correction beyond nn10: spin, bosonic, and permutation-invariant codes from convex geometry,” which explicitly discusses Ouyang’s gnu family as a PI benchmark and embeds PI, bosonic constant-excitation, and generalized spin codes into a common discrete-simplex and nn11 framework (Aydin et al., 24 Sep 2025). That work compares Ouyang’s shortest nn12-error-correcting PI family of length nn13 with shorter explicit PI families of length nn14, and proves existence results with distance scaling

nn15

for PI, spin, and Fock-state codes (Aydin et al., 24 Sep 2025). In this framework, GNU codes appear as a distinguished qubit subfamily rather than the full design space (Aydin et al., 24 Sep 2025).

At the shortest-distance end, “Minimal Permutation-Invariant Qudit Codes from Edge-Colorings of Complete Graphs” constructs, for every nn16, a symmetric-sector code with parameters

nn17

and proves that no such PI code of dimension nn18 and distance at least nn19 exists for nn20, making four physical qudits necessary and sufficient (Kubischta et al., 21 May 2026). Although these are not GNU codes in the narrow nn21 sense, they belong to the same occupation-number/Dicke-state tradition and illustrate how far PI code theory has moved toward exact extremal statements (Kubischta et al., 21 May 2026).

6. Representation theory, enumerators, and applications

Recent work has turned GNU-style symmetry from a code ansatz into a full analysis framework. “A theory of quantum error correction for permutation-invariant codes” develops a general representation-theoretic decoding theory for PI codes using measurements of total angular momentum, SYT- and Schur-Weyl-sector structure, modular Dicke-weight measurements, and geometric phase gates (Ouyang et al., 14 Feb 2026). In that theory, GNU codes are especially natural because their logical states are sparse, evenly gapped Dicke superpositions, and shifted gnu codes admit particularly simple deletion recovery via measurement of Dicke weight modulo nn22 followed by a syndrome-dependent subspace map (Ouyang et al., 14 Feb 2026).

At the enumerator level, “Orthogonal Polynomials and the MacWilliams Transform for Permutation-Invariant Qudit Codes” derives an explicit intrinsic MacWilliams transform for PI qudit codes in nn23 (Teixeira, 14 May 2026). The operator space decomposes multiplicity-free as

nn24

and the corresponding MacWilliams matrix is identified with a finite Racah transform whose entries are given by a terminating hypergeometric series (Teixeira, 14 May 2026). For GNU codes, this does not give a new construction, but it supplies the symmetry-adapted harmonic-analysis machinery needed for intrinsic weight enumerators and linear-programming bounds in the symmetric sector (Teixeira, 14 May 2026).

Permutation-invariant gnu codes have also entered fault-tolerance-oriented applications. “Magic state distillation with permutation-invariant gnu codes and a two-qubit example” uses GNU codes as the central primitive of a nonstandard distillation protocol, with logical states

nn25

defined by the GNU Dicke-superposition formula and projection onto the code subspace followed by decoding (Leitch et al., 4 Mar 2026). The paper reports a two-qubit GNU protocol with threshold nn26 and distillation rate nn27, and emphasizes that varying the input-state position on the Bloch sphere allows distillation of magic states with arbitrary magic, not only nn28 and nn29 (Leitch et al., 4 Mar 2026). Closely related PI families, though not standard GNU codes, have also been used for measurement-free code switching and transversal rational nn30-rotations, showing that symmetric Dicke-state encodings support non-Clifford gate constructions beyond the original Ouyang noise models (Ouyang et al., 2024).

Permutation-invariant GNU codes therefore occupy a specific but still central place in the PI-code literature. They are the original nn31-parameterized Dicke-superposition family, physically motivated by the Heisenberg ferromagnet, combinatorially structured by excitation gaps and alternating binomial amplitudes, exact for nn32-sparse errors in one regime and approximate for amplitude damping in another, and sufficiently rigid to anchor later developments in deletion correction, PI decoding theory, intrinsic MacWilliams analysis, and small-block magic-state distillation (Ouyang, 2013).

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 Permutation-Invariant GNU Codes.