Papers
Topics
Authors
Recent
2000 character limit reached

Permutationally Invariant Codes

Updated 15 January 2026
  • Permutationally invariant codes are defined by codewords that remain unchanged under permutations, enabling symmetry-based error correction and modeling.
  • They leverage structures like Dicke states in quantum settings and Sidon sets in classical channels to optimize error detection and correction.
  • Their versatile applications include enhancing quantum communication, robust chemical potential modeling, and combinatorial design improvements.

A permutationally invariant code (often abbreviated as "PI code") is a code—either classical or quantum—whose codewords are invariant under some or all permutations of the underlying degrees of freedom. These codes appear in diverse fields, including quantum error correction, information theory for permutation channels, potential energy surface representations in computational chemistry, and combinatorial designs. The core property is that the symmetries of the problem—typically, invariance under a symmetric group action—are faithfully reflected in the code’s construction and decoding.

1. Foundational Principles of Permutational Invariance

Permutational invariance refers to systems whose relevant quantities or error models possess a symmetry under permutations. In quantum coding, this typically means the code subspace is preserved by the natural action of the symmetric group SnS_n on nn subsystems. For classical permutation channels, only the overall multiset of transmitted symbols is observed, so the channel is permutation-invariant and only codesets invariant (or robust) under symbol reordering are effective decoders.

In quantum settings, for nn qubits, the symmetric (bosonic) subspace is defined as

Symn(C2)=Span{Dwn:w=0,...,n}\mathrm{Sym}^n(\mathbb{C}^2) = \mathrm{Span}\{ |D^n_w\rangle : w = 0, ..., n \}

where Dwn|D^n_w\rangle is the Dicke state of nn qubits and Hamming weight ww, i.e., the uniform superposition of computational basis states with ww ones. Every state in this subspace is invariant under all permutations of the qubits (Aydin et al., 2023, Ouyang, 2013, Ouyang et al., 2015).

For chemical machine learning, permutationally invariant polynomials (PIPs) are used to ensure molecular potential energy surfaces (PESs) are invariant under permutations of like nuclei, reflecting the indistinguishability of identical atoms (Drehwald et al., 2024).

2. Classical Permutationally Invariant Codes

Classical PI codes address permutation channels—communication settings where symbols are reordered by the channel or presented as unordered multisets. The codeword relevant for error detection/correction is the multiset of symbols, represented as a multiplicity vector in the discrete simplex of dimension q1q-1,

Δnq1={xZ+q:i=0q1xi=n}\Delta_n^{q-1} = \{ x \in \mathbb{Z}_+^q : \sum_{i=0}^{q-1} x_i = n\}

Error events include insertions, deletions, substitutions, and erasures, all of which can be related to a metric d1(x,y)=12i=0q1xiyid_1(x,y) = \frac{1}{2} \sum_{i=0}^{q-1} |x_i - y_i|, the minimal number of deletions or insertions to transform one multiset into another (Kovačević et al., 2016).

Codes are constructed to maximize packing under this metric. A code CC corrects hh deletions if d1(C)>hd_1(C) > h. For optimality, constructions based on Sidon sets in finite Abelian groups achieve the best-known scaling, with the code

Cn(G,B,b)={xΔnq1:i=0q1xibi=b}C_n^{(G,B,b)} = \{ x \in \Delta_n^{q-1} : \sum_{i=0}^{q-1} x_i b_i = b \}

where BB is a Sidon set of order hh, provides optimal performance up to asymptotics (Kovačević et al., 2016). The overall rate for fixed qq is Θ(nq1)\Theta(n^{q-1}) symbols. Such codes are also diameter-perfect in many regimes.

Permutation codes of permutations, i.e., arrays or subsets of SnS_n with large minimal pairwise Hamming distance, can be isometry-invariant; their construction is closely tied to the isometry group of SnS_n under the Hamming metric (0911.1713, Janiszczak et al., 2018).

3. Quantum Permutationally Invariant Codes

Quantum PI codes are subspaces of the symmetric subspace of (C2)n(\mathbb{C}^2)^{\otimes n}. Logical codewords are superpositions of Dicke states. For a two-dimensional code encoding a single logical qubit, the codewords take the general form

c0=j=0nαjDjn,c1=j=0nβjDjn|c_0\rangle = \sum_{j=0}^n \alpha_j |D^n_j\rangle, \quad |c_1\rangle = \sum_{j=0}^n \beta_j |D^n_j\rangle

with coefficients {αj},{βj}\{\alpha_j\},\{\beta_j\} chosen to enforce necessary error-correction symmetries (typically, orthogonality and Knill–Laflamme conditions) (Aydin et al., 2023, Ouyang, 2013).

The distinctive feature is that any tt-local error (arbitrary tt-qubit Pauli error, deletion, amplitude-damping) acts symmetrically due to the code’s invariance, drastically simplifying both the design and the analysis of the code (Shibayama et al., 2021, Aydin et al., 2024).

Variant PI code constructions achieve:

4. Construction Methods and Error Correction Conditions

The design of PI codes typically proceeds via:

  • Parameterization of codewords by Dicke state coefficients, potentially subject to number-theoretic constraints (Ouyang et al., 2015).
  • Satisfaction of tailored Knill–Laflamme conditions. For tt-error correction, these reduce for PI codes to combinatorial identities among Dicke coefficients—examples include four quadratic conditions in codeword overlaps for arbitrary tt (Aydin et al., 2023, Aydin et al., 2024).
  • For deletion correction, binomial-sum identities over codeword coefficients, weight partitions, and specific normalization/disjointness conditions (Shibayama et al., 2021). The optimal codes achieving simultaneous multi-deletion and qubit-error correction are constructed by splitting weights into orbits separated by at least tt, with matching binomial-sum distributions after tt deletions.

For classical permutation channels, construction methods involve codes in the multiset simplex by group-based syndrome constraints (Sidon set methods) (Kovačević et al., 2016).

For potential energy surface representations, PIPs are formed by symmetrizing monomials over the group of permutations of like atoms, producing a basis of polynomials

ϕ(γ)=1GπGm(γπ(1),...,γπ(M))\phi(\vec{\gamma}) = \frac{1}{|G|} \sum_{\pi \in G} m(\gamma_{\pi(1)}, ..., \gamma_{\pi(M)})

where mm is a primitive monomial and GG is the permutation group of identical atoms (Drehwald et al., 2024).

5. Applications and Performance Benchmarks

Permutationally invariant codes are applied across several domains:

  • Quantum Error Correction: PI codes are prominent in protecting quantum memories and channels against noise models featuring strong symmetry (e.g., collective decoherence, amplitude damping, deletions). They provide sharply reduced code construction complexity and, for given tt, often achieve the shortest explicit code lengths known (Ouyang, 2013, Aydin et al., 2023, Shibayama et al., 2021).
  • Quantum Communication Capacity: PI codes enable efficient block-diagonalization and computation of coherent information for i.i.d. quantum channels, allowing improved lower bounds on capacity thresholds for Pauli, dephrasure, amplitude-damping, and composite channels (Bhalerao et al., 13 Aug 2025).
  • Potential Energy Surfaces in Chemistry: PIP constructions are essential in modeling molecular interactions conforming to the indistinguishability of nuclei. The MOLPIPx package provides automated, fully differentiable pipelines for generating and evaluating PIP bases, supporting machine learning models that require forces and higher derivatives (Drehwald et al., 2024).
  • Combinatorial Designs: PI (permutation-array) codes correspond directly, via their separation properties, to combinatorial structures such as mutually orthogonal Latin squares (MOLS). Explicit constructions using isometry-invariant codes have yielded new lower bounds for the number of MOLS of various orders (Janiszczak et al., 2018).

Performance Example Table: Quantum PI Codes for Error Correction

Target Error Earliest Explicit Construction Code Length n Reference
t Pauli (2t+1)2(2t+1)^2 (Ouyang) (2t+1)2(2t+1)^2 (Ouyang, 2013)
t Pauli Improved construction <(2t+1)2< (2t+1)^2 (Aydin et al., 2023)
t Deletion Weight partition codes gnugnu (Shibayama et al., 2021)
1-AD Symmetrized Shor (Ruskai) 9 (Ouyang, 2013)
k Logicals Number-theory, DD log qubits NqN^q (Ouyang et al., 2015)

6. Impact, Generalizations, and Open Problems

Permutationally invariant codes have shaped several lines of research:

  • Optimality and Shortest Length: PI codes have produced the shortest known explicit quantum codes able to correct multiple deletion errors and, in some parameters, multiple qubit errors and deletions simultaneously (Aydin et al., 2023, Shibayama et al., 2021).
  • Transversal Gate Sets and Fault Tolerance: Certain PI codes constructed via spin code techniques achieve transversal implementation of non-Clifford gates, outperforming stabilizer codes in both minimum code length and error distance (Kubischta et al., 2023).
  • Capacity and Superadditivity: Block-diagonalization for permutation-invariant codes provides polynomial-time computation of coherent information, facilitating capacity analyses for large block sizes and enabling the discovery of new superadditive codes for quantum channels (Bhalerao et al., 13 Aug 2025).
  • Mapping Between Code Families: It has been shown that PI codes that correct weight-tt errors can be linearly mapped to absorption-emission (AE) codes correcting order-tt transitions in collective spin systems, yielding efficient low-angular-momentum bosonic codes (Aydin et al., 2024).
  • Many-Body and Higher-Dimensional Systems: Generalizations include higher-dimensional PI codes, explicit code constructions for multiple logical qubits, and PI code adaptation to multiset channels and chemical modeling (Ouyang et al., 2015, Drehwald et al., 2024).

Open problems include determination of minimal-length multi-logical PI codes, extension to nonbinary and higher-rank symmetric group settings, and further characterizing the full range of transversal gate groups admitted by PI code architectures.

7. Representative Software and Computational Tools

For applications in computational chemistry and machine learning, the package MOLPIPx provides an end-to-end differentiable implementation for generating, symmetrizing, and manipulating the PIP basis in both Python (JAX/Flax) and Rust (EnzymeAD), supporting energy, force, and higher-order property calculations within modern ML frameworks. The core workflow involves:

  • Generation of monomial and polynomial bases via the Monomial Symmetrization Algorithm.
  • Automatic differentiation throughout the PIP pipeline for fast and exact gradient and Hessian computation.
  • Integration into modular models such as linear, neural network, and Gaussian process frameworks for potential energy surface parameterization (Drehwald et al., 2024).

This computational infrastructure enables large-scale, permutation-consistent force field modeling, with benchmarks demonstrating low evaluation times and robust convergence for parameter optimization in practical molecular systems.


For in-depth mathematical definitions, explicit construction details, and concrete code examples, see (Drehwald et al., 2024, Aydin et al., 2023, Shibayama et al., 2021, Ouyang, 2013, Ouyang et al., 2015), and (Bhalerao et al., 13 Aug 2025).

Topic to Video (Beta)

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 Permutationally Invariant Codes.