Gapped Permutation-Invariant Codes
- Gapped permutation-invariant codes are families that use permutation symmetry and engineered support gaps to achieve near-maximal distances and restrict error transitions.
- In classical settings, they employ orbit decompositions and separability conditions to derive codes with high Hamming distances, also linking to mutually orthogonal Latin squares.
- In quantum constructions, these codes leverage Dicke state weight separations, residue classes, and orbit theory to satisfy Knill–Laflamme conditions for error suppression.
Gapped permutation-invariant codes are code families whose defining symmetry is invariance under permutations, while their error-control mechanism relies on a deliberate separation of supports. In the classical permutation-code setting, the “gap” refers to minimum distance , i.e. a distance one below the absolute maximum , and the codes are often realized as unions of isometry-group orbits in . In the quantum setting, the term typically refers to support on Dicke weights, occupation vectors, or congruence classes that are separated far enough that the relevant error operators cannot connect logical supports. These two usages share a common structural theme: symmetry reduces the analysis to orbit structure or irreducible sectors, and the gap suppresses unwanted overlaps or transitions (Janiszczak et al., 2018, Ouyang, 2013, Kubischta et al., 21 May 2026).
1. Formal settings and permutation invariance
For classical permutation codes, the ambient space is the symmetric group equipped with the Hamming metric
A permutation code has minimum distance
and an -PA denotes a permutation array of length and distance . The full isometry group of 0 is
1
generated by left multiplication, right multiplication, and inversion. A code is 2-invariant if it is a union of 3-orbits under the induced action, and orbit sizes satisfy 4 (Janiszczak et al., 2018).
For quantum permutation-invariant codes, the ambient space is the symmetric subspace. For 5 qudits of local dimension 6,
7
with
8
In qubit language, the symmetric subspace is spanned by Dicke states 9, uniform superpositions over computational basis strings of Hamming weight 0. In qudit language, the Dicke basis is indexed by compositions 1 with 2 (Kubischta et al., 21 May 2026, Bond et al., 11 Mar 2026).
Permutation invariance is therefore realized in two closely related ways. In the classical setting it is invariance under isometries or subgroup actions on 3; in the quantum setting it is invariance under tensor-factor permutations, usually restricting the code to a fully symmetric irrep. This suggests a common algebraic viewpoint in which symmetry compresses the search space, and the gap controls which transitions remain possible.
2. Meanings of the “gap”
In the classical permutation-array literature, the gap is a near-maximal distance condition. An 4-PA is one unit below the maximal possible distance 5. The paper on isometry-invariant permutation codes states explicitly that separable codes are “gapped permutation-invariant codes” with 6 very close to 7; for the main constructions, the gap ratios are 8, 9, 0, and 1 (Janiszczak et al., 2018).
A more refined classical notion is separability. An 2-PA 3 is 4-separable if it is the disjoint union of 5 codes 6, each 7 an 8-PA of cardinality 9, and
0
When 1, this is equivalent to 2 mutually orthogonal Latin squares of order 3 (Janiszczak et al., 2018).
In quantum PI coding, the gap is a support-separation condition. Ouyang’s gnu codes occupy Dicke layers 4, with 5 supported on even 6 and 7 on odd 8; the supports are disjoint and spaced by at least 9, so errors that shift Hamming weight by less than 0 cannot couple the logical supports (Ouyang, 2013). The later numerical study formulates the same principle for both qubits and qudits: qubit supports lie on a gapped set 1 with minimum spacing at least 2, while qudit supports lie on compositions with common spacing 3 in each coordinate, typically with 4 for 5 correctable Pauli errors (Bond et al., 11 Mar 2026).
Other quantum papers use equivalent constructions without always formalizing the term. In the 6-covariant spin-code framework, logical supports occupy residue classes modulo 7, so the Dicke weights of 8 and 9 lie in disjoint congruence classes mod 0; the paper states that the constructions are “precisely of that type” even though the term “gapped” is not used there (Kubischta et al., 2023). In the qudit family with parameters 1, the codewords are supported on the even-entry occupation layer
2
so any single root move changes parity and leaves the code space, creating what the paper calls an occupation-parity barrier (Kubischta et al., 21 May 2026).
A common misconception is that “gapped” means only large blockwise distance. In this literature it can instead mean near-maximal permutation distance, arithmetic separation of Dicke weights, congruence-class separation modulo a phase order, or parity separation of occupation vectors. The unifying feature is not a single formal definition but controlled non-overlap under the target error action.
3. Classical orbit constructions and the MOLS correspondence
The 2018 construction of isometry-invariant permutation codes uses large subgroups 3, typically extensions of 4, and forms codes as unions of 5-orbits together with orbit decompositions of 6. The resulting codes are 7-PAs with explicit separable structure, and by the standard correspondence they yield new lower bounds for the maximum number 8 of mutually orthogonal Latin squares of order 9 (Janiszczak et al., 2018).
| 0 | Code parameters | Consequence for MOLS |
|---|---|---|
| 35 | 1-PA, size 2, 3-separable | 4 |
| 48 | 5-PA, size 6, 7-separable | 8 |
| 63 | 9-PA, size 0, 1-separable | 2 |
| 96 | 3-PA, size 4, 5-separable | 6 |
For 7, the authors take 8, generate 9, and use three explicit orbit representatives 0. The orbit sizes are 1, 2, 3, and 4 splits into 5 6-orbits of sizes 7 or 8, giving a code of size 9 and a 00-separable structure (Janiszczak et al., 2018).
For 01, 02 has order 03, extends 04 with index 05, and yields orbit sizes 06, 07, 08, 09, and 10, totaling 11. For 12, 13 has order 14, extends 15 with index 16, and yields orbit sizes 17, 18, 19, and 20, totaling 21. For 22, 23 has order 24, extends 25 with index 26, and yields orbit sizes 27, 28, 29, and 30, totaling 31 (Janiszczak et al., 2018).
This orbit-based description is presented as an alternative to difference-matrix constructions. The paper states a one-to-one correspondence between normalized 32-difference matrices and 33-invariant codes of length 34 with minimum distance 35 containing 36, but then emphasizes that the uniform isometry-group method can go beyond direct difference-matrix realizations and is convenient for computation in MAGMA or GAP (Janiszczak et al., 2018).
4. Quantum Dicke-gap families for Pauli, deletion, and damping errors
The earliest systematic PI construction in the provided corpus is Ouyang’s gnu family. With parameters 37, 38, and 39, the block length is 40, and the logical states are
41
For perfect correction of arbitrary 42-qubit errors, the choice 43 gives 44, while for approximate correction of 45 spontaneous decays one may take 46, 47, and 48, giving
49
The gap guarantees that operators changing Hamming weight by less than 50 cannot mix the logical supports, and the binomial weighting enforces the needed cancellations in the Knill–Laflamme conditions (Ouyang, 2013).
Deletion correction sharpened this picture. One 2021 result states that any permutation-invariant quantum code of distance 51 can correct 52 quantum deletions in both qubit and qudit settings, because on symmetric states the deletion channel is equivalent to partial trace over any fixed 53 positions (Ouyang, 2021). A related 2021 construction gives explicit weight-set conditions 54–55 for 56-deletion correction and, in particular, a canonical family with
57
where 58, 59, and
60
For 61, the same code simultaneously corrects up to 62 arbitrary qubit errors and up to 63 deletions (Shibayama et al., 2021).
The later 64 family generalizes these constructions. It encodes one qubit into
65
physical qubits, with logical states supported at weights 66 and 67, parity-selecting which terms appear in 68 and 69. If 70, 71, and either 72 or 73, then the code corrects any 74 Pauli errors; analogous inequalities give deletion and amplitude-damping correction. The paper highlights 75 as a new optimal 76 single-deletion-correcting code, 77 as a 78 PI code, and 79 as a 80 PI code (Aydin et al., 2023).
Shifted GNU codes introduce an additional shift 81, replacing occupied weights 82 by 83 and block length 84 by 85, while preserving distance
86
For the special choice 87, 88, and 89, the block length becomes 90, and the code has transversal logical operations 91 and 92, where 93 (Ouyang, 2021).
5. Representation theory, congruence classes, and occupation-parity gaps
One important development interprets gapped PI coding through representation theory rather than only through Hamming-weight arithmetic. In the spin-code framework, a code lives in a single spin-94 irrep and is mapped to a PI code on 95 qubits by the Dicke bootstrap
96
For 97-covariant constructions, the logical supports satisfy
98
with 99. After the Dicke map, the weight supports lie in disjoint residue classes modulo 00. This residue-class gap is what makes transversal generalized phase gates act with constant phase on each logical codeword and what kills many off-diagonal error terms automatically (Kubischta et al., 2023).
The minimal 01 family in that framework has 02 qubits. For 03, the paper gives an explicit 04 code with
05
on which transversal 06 acts as the logical gate 07. Higher-distance 08-transversal PI codes reported numerically are 09, 10, 11, 12, and 13 (Kubischta et al., 2023).
A qudit analogue replaces residue classes by occupation-parity separation. In 14, the paper constructs permutation-invariant codes with parameters 15 for every integer 16. The codewords are supported on packets inside the even-entry occupation layer
17
which consists exactly of 18 and 19. Because any root operator changes occupation by 20 in two coordinates, no two distinct vectors in 21 are root-adjacent, so all root-error Knill–Laflamme conditions vanish automatically. The remaining Cartan conditions reduce to balancing equations on packets organized by edge-colorings of 22: midpoint packets for odd 23, and perfect matchings together with a vertex packet for even 24 (Kubischta et al., 21 May 2026).
The same paper proves minimality: for 25, no PI code with 26 can satisfy the distance-2 constraints, while for 27 such a code exists for every 28. This makes four physical qudits necessary and sufficient for a distance-two PI code encoding one logical qudit in the symmetric sector (Kubischta et al., 21 May 2026).
These representation-theoretic constructions also clarify a misconception sometimes associated with PI codes. The 2023 spin-code paper states that the only permutation-invariant stabilizer codes are the quantum repetition codes 29, but non-additive PI codes can realize much richer transversal gate groups, including binary dihedral groups and exact transversal non-Clifford phases (Kubischta et al., 2023).
6. Bounds, numerical evidence, and broader formulations
The 2026 numerical study of PI quantum codes places gapped constructions in an optimization and asymptotic context. It conjectures that qubit PI codes correcting up to 30 deletion errors obey
31
equivalently 32 for 33, implying
34
It further reports that minimal Pollatsek–Ruskai codes saturate this quadratic scaling numerically, and that for qudit PI codes encoding a single logical qudit, increasing physical local dimension 35 makes the required block length 36 decrease monotonically toward the quantum Singleton bound 37 (Bond et al., 11 Mar 2026).
That study also gives a semi-analytic simplicial qudit extension of Aydin–Alekseyev–Barg constructions. The decision variables are nonnegative weights 38, normalized by 39, with the remaining Knill–Laflamme constraints reduced to linear equalities. This formulation reinforces the central role of gaps: separation in Dicke weights or compositions turns orthogonality constraints into combinatorial support conditions, leaving only a smaller balancing problem (Bond et al., 11 Mar 2026).
Permutation invariance has also been used algorithmically for coherent-information optimization. A 2025 paper studies convex mixtures of i.i.d. pure states under i.i.d. channels and evaluates coherent information by Schur–Weyl block decomposition. It interprets non-orthogonal repetition-code-like inputs as statistically gapped PI constructions because the Dicke expansions of 40 and 41 are peaked at different mean Hamming weights. Using this framework, the paper reports improved lower bounds on quantum capacities for several channel families, including 2-Pauli, BB84, generalized amplitude damping, dephrasure, and damping-dephasing channels (Bhalerao et al., 13 Aug 2025).
A broader classical analogue appears in multiset coding for permutation channels. There the ambient space is the discrete simplex
42
with metric
43
In that setting, a “gapped permutation-invariant code” can be interpreted as a multiset code whose minimum 44-distance exceeds the error radius, and Sidon-set constructions provide both metric and algebraic separation of codewords (Kovačević et al., 2016).
Taken together, these results show that “gapped permutation-invariant codes” are not a single narrow family but a recurrent design paradigm. In classical permutation arrays, the gap is a near-maximal Hamming distance stabilized by large isometry groups and linked to MOLS. In quantum coding, the gap is usually a carefully engineered separation in Dicke weights, occupation vectors, or residue classes, used to nullify low-weight transitions and reduce the remaining constraints to symmetry-adapted balancing equations. This suggests that the enduring content of the term is methodological rather than purely definitional: exploit permutation symmetry to organize the code, and exploit support separation to make the relevant error algebra sparse.