Manuscript Offprint
arXiv:2610.37894Twisted Fourier Analysis of Quantum Weight Enumerators
Ching-Yi Lai
Abstract—A unified Fourier framework for quantum weight enumerators of prime-power-dimensional qudits is developed in this paper. We introduce the notions of Weyl power spectrum and Weyl-conjugation autocorrelation for the Weyl-operator quantities underlying the Shor–Laflamme weight enumerators. Representing these quantities as formal vectors, we show that they form a symplectic Fourier transform pair, from which the quantum MacWilliams identity follows by applying the Hamming-weight functional. This framework extends to a family of twisted Fourier transforms, including the Rains shadow transform. We show that identical-copy Bell sampling corresponds to a twisted autocorrelation related to the shadow enumerator through Weyl translation and Hamming projection. We further prove that all twisted Fourier transforms are Weyl translations of either the ordinary MacWilliams transform or the Rains shadow transform. This two-class reduction implies that the twists yield no additional independent coefficientwise positivity constraints under compatible projections. Nevertheless, the framework leads to refined MacWilliams and shadow identities that retain more Fourier information than ordinary Hamming weight enumerators. We employ these refined identities in linear programming, together with simplex mapping and shadow-coset counting, to exclude surviving candidate weight distributions. These techniques yield tighter bounds for binary and qutrit quantum codes, including nonexistence results for specific code parameters.
I. INTRODUCTION
Determining the fundamental limits of quantum error-correcting codes is a central problem in quantum coding theory [1]. Shor and Laflamme [2] introduced the A- and B-type weight enumerators based on Pauli operators and derived a quantum analogue of the classical MacWilliams identity [3] through the relation between entanglement fidelity and average fidelity under depolarizing noise. This identity enables the extension of Delsarte's classical linear programming (LP) method [4]
to quantum code bounds [5]. Rains subsequently developed the general theory of quantum weight enumerators [6] and introduced the shadow enumerator [7], which provides additional LP constraints. Further interpretations of quantum weight enumerators have been investigated in [8], [9]. Weight-enumerator methods have also been extended to subsystem codes [10], entanglement-assisted quantum codes [11], [12], codes for simultaneous transmission of classical and quantum information [13], quantum data-syndrome codes [14], quantum codes under general noise channels [15], tensor networks [16], and magic state distillation [17], [18]. Beyond weight-enumerator LP methods, semidefinite programming (SDP) techniques have also been developed to obtain stronger bounds on quantum code parameters [9], [19].
In this paper, we develop a unified Fourier formulation of quantum weight enumerators for prime-power-dimensional qudit systems. We introduce the notions of Weyl power spectrum and Weyl-conjugation autocorrelation for the Weyl-operator quantities underlying the Shor–Laflamme weight enumerators, in analogy with the classical Wiener–Khinchin theorem [20]. By representing these quantities as formal vectors indexed by elements of , we show that they form a symplectic Fourier transform pair [21]. Applying the Hamming-weight functional, which assigns and to zero and nonzero Weyl labels, respectively, recovers the conventional quantum MacWilliams identity [2].
This framework can be extended to twisted Fourier transforms by introducing different character weights on Weyl labels. For qubits, these comprise eight transforms, including the ordinary MacWilliams [2] and Rains shadow [7] transforms, together with six additional Pauli twists.
These twisted transforms also admit operational interpretations through Bell sampling. Recent works have established connections between quantum weight enumerators, shadow enumerators, and two-copy Bell measurements [22], [23]. We clarify this connection by showing that identical-copy Bell sampling corresponds to the pointwise 010 twisted autocorrelation, rather than directly to the shadow transform. A Weyl translation
CYL was supported by the National Science and Technology Council in Taiwan under Grant Nos. 113-2221-E-A49-114-MY3 and 113-2119-M-A49-008-.
CYL is with the Institute of Communications Engineering, National Yang Ming Chiao Tung University, Hsinchu 300093, Taiwan (email: cylai@nycu.edu.tw).
followed by Hamming projection then recovers the Rains shadow enumerator, as illustrated in Figure 1.
More generally, we show that for , all twisted Fourier transforms are Weyl translations of either the ordinary MacWilliams transform or the Rains shadow transform. This two-class reduction implies that these twists yield no additional independent coefficientwise positivity constraints at the full Weyl-resolved level.
A natural question is which projections preserve the symplectic Fourier transform. We introduce the qudit refinement , which partitions the Weyl labels into classes, and prove its invariance under the symplectic Fourier transform. For qubits, this reduces to the refinement, which distinguishes , and [1], [24]. We also develop its split form , which retains more Fourier information than ordinary Hamming weight enumerators while requiring substantially fewer variables than the complete Weyl enumerator. For stabilizer codes [25]–[27], fixing a reference stabilizer further introduces finite-field commutation constraints, multiplication orbits, and divisibility conditions. Together, these properties yield refined MacWilliams and shadow identities and additional LP constraints that can improve ordinary Hamming-level bounds. As an illustration, we use the refined LP constraints to rule out quantum codes with parameters and , thereby tightening the upper bounds listed in Grassl's code tables [28]. These nonexistence results have also been obtained recently through a classification-based approach [29].
Although the refined LP constraints can be substantially stronger than ordinary Hamming-level bounds, they are computationally more demanding. In practice, we first use the Shor–Laflamme–Rains (SLR) LP constraints and the three-case counting conditions of [24, Theorem 16], referred to as SLR3, to obtain a smaller set of candidate weight distributions before applying the refined LP. Since LP-feasible weight distributions need not be realizable, we develop additional combinatorial constraints.
For , the SLR3 enumeration leaves 292 candidate weight distributions. We develop shadow-coset counting constraints based on the low-weight structure of Pauli shadow cosets and show that they exclude all 292 candidates, thereby establishing the nonexistence of such a code.
We also employ the simplex mapping [1] to obtain further nonexistence results. Classical linear complementary dual (LCD) codes have been studied extensively [30]–[33] and are closely related to entanglement-assisted (EA) stabilizer codes with maximal entanglement [11], [12], [34]. In the reverse
TABLE I NONEXISTENCE RESULTS OBTAINED BY THE METHODS DEVELOPED IN THIS PAPER.
| Code parameters | Method |
|---|---|
| Refined LP | |
| Refined LP | |
| SLR3 + Pauli shadow-coset counting | |
| Simplex mapping + binary shadow-coset counting | |
| Simplex mapping + LCD bounds | |
| Simplex mapping + LCD bounds | |
| Simplex mapping + LCD bounds | |
| Simplex mapping + LCD bounds |
direction, we show that an EA code yields a binary LCD code through the simplex mapping. Applying classical LCD bounds, we rule out four maximally entangled binary EA code parameter sets: , , , and .
Finally, for stabilizer codes, the simplex mapping converts the stabilizer group into a binary linear code. By analyzing the low-weight structure of its binary shadow coset, we exclude the remaining candidate weight distributions and establish the nonexistence of such codes.
The nonexistence results obtained through refined LP, simplex mapping, and shadow-coset counting are summarized in Table I.
The source code and candidate weight distributions used in our computational analysis are publicly available on GitHub [35].
The remainder of this paper is organized as follows. Preliminaries on Weyl operators over finite fields and the symplectic Fourier transform are given in the next section. In Section III, we introduce the Weyl power spectrum and Weyl-conjugation autocorrelation, and show that they form a symplectic Fourier transform pair. We then develop twisted Fourier transforms in Section IV and prove their two-class reduction in Section V. The refined LP constraints and computational results are presented in Section VI. In Section VII, we further develop simplex representations and shadow-coset counting methods to exclude additional candidate weight distributions. Finally, the conclusion and discussion of open problems follow.
For in the same domain, denote by the indicator of the equality .
Let . For subsets , the notation means and . When and , we may assume without loss of generality that and .
A. Finite-field characters and the trace-symplectic form
We first review some standard notation for Weyl operators and their associated phase spaces and additive characters (see, e.g., [27], [36]).
Let be a prime power, where is prime. Denote by the finite field with elements and by its multiplicative group of nonzero elements. The field trace is defined by . Let be a primitive -th root of unity. The canonical additive character of is
The single-qudit Weyl phase space is . For and in , define the trace-symplectic form
and for , , set .
An additive character of is a homomorphism from its additive group to the unit circle in . For each , the associated character is
These characters satisfy the standard orthogonality relation
B. Weyl operators
Let denote the Hilbert space of a -dimensional qudit, with computational basis . The -qudit state space is . Let denote the space of linear operators on , equipped with the Hilbert–Schmidt inner product for , where denotes the usual operator trace.
For , define
We use the phase convention . The operators satisfy , and hence, for ,
For , define the -qudit Weyl operator by . The conjugation relation then extends to : for ,
The Weyl operators form an orthogonal operator basis for :
The (symplectic Hamming) weight of is . That is, is the number of nonidentity tensor factors in . We also define .
For , has four elements 00, 10, 01, 11, corresponding to the Pauli operators , respectively, up to phases. The symplectic form equals 0 if the corresponding Pauli operators commute and 1 if they anticommute. In this case, , and the conjugation phase reduces to , the usual Pauli commutation sign.
C. The Fourier operator
We introduce a Hilbert-space representation of the Weyl phase space and the associated Fourier transform, following [21]. This representation provides the vector notation used throughout the paper.
Let be the formal Hilbert space with orthonormal basis . The unnormalized single-qudit Fourier operator is defined as
It is clear that and thus . By (4), . Thus is a Hermitian unitary operator.
For qudits, , and the corresponding symplectic Fourier operator is .
D. Quantum codes and the QEC condition
By (7), every operator admits the Weyl expansion
An quantum code is an -dimensional subspace of . Let denote the projector onto , so that . The minimum distance is the largest integer such that every Weyl error of weight less than is detectable [26], [27]; that is, for every with ,
where . Equivalently, for any code states ,
In particular, the error does not confuse distinct orthogonal code states. When , the code is denoted by , with the subscript omitted for .
III. WEYL POWER SPECTRUM AND THE QUDIT MACWILLIAMS IDENTITY
Let be an quantum code with projector , so that . By the Weyl expansion (9),
where
is the normalized Weyl coefficient. These coefficients describe the components of the code projector in the Weyl operator basis. We next associate with them two quantities: the Weyl power spectrum, which records the squared magnitudes of the Weyl coefficients, and the Weyl-conjugation autocorrelation, which measures the overlap of the code projector with its Weyl conjugates.
Definition 1. The Weyl power spectrum of P is defined as
and its formal vector is
Definition 2. The Weyl-conjugation autocorrelation of P is defined as
and its formal vector is
The two quantities are not independent. As shown below, the Weyl-conjugation autocorrelation is precisely the Fourier transform of the Weyl power spectrum.
Theorem 3. [Weyl power-spectrum MacWilliams identity] For an quantum code Q with projector P, let and be its Weyl power spectrum and Weyl-conjugation autocorrelation, respectively. Then
Equivalently,
Moreover, for every ,
Proof. Taking the Weyl conjugation (6) of P by in the expansion (11), we have
Taking the Hilbert–Schmidt inner product with P gives
which proves (18), and hence (17).
For the pointwise inequality, we adopt the argument in [5]. Since ,
where the inequality follows from the Cauchy–Schwarz inequality. Dividing by gives , while follows directly from its definition.
A. Shor-Laflamme weight enumerators
The conventional Hamming-weight MacWilliams identity [2] is recovered by applying a Hamming-weight functional to the Weyl power spectrum and Weyl-conjugation autocorrelation.
Define the Hamming-weight functional on by
Applying to the two formal vectors gives
where
These are the Shor–Lafamme weight enumerators of the code [2].
Corollary 4. [Hamming-weight MacWilliams identity] The Hamming-weight enumerators and satisfy
Moreover,
Proof. By (8),
By character orthogonality (4), for , whereas for , .
Since , applying to the Weyl power-spectrum MacWilliams identity (17) gives (21) as claimed.
The inequalities and equalities in (22) follow from the pointwise inequality (19) and the quantum error correction condition (10).
Comparing coefficients in (21) gives
where
is the -ary Krawtchouk polynomial [3].
B. Complete Weyl enumerators
The complete-weight MacWilliams identity [21], [37] can be similarly recovered by applying a complete-weight functional to the Weyl power-spectrum identity.
Let be a set of formal variables, and define the complete-weight functional on by
Applying to the two formal vectors gives the complete Weyl enumerators
Corollary 5. [Complete-weight MacWilliams identity] The complete Weyl enumerators satisfy
where , for .
Proof. By (8),
Since , applying to the Weyl power-spectrum MacWilliams identity (17) gives (24).
IV. TWISTED FOURIER TRANSFORMS OVER QUDITS
The Weyl power-spectrum MacWilliams identity corresponds to the ordinary Fourier transform of the power spectrum. In the binary setting, the shadow transform is obtained by inserting a local sign that is +1 on the identity and -1 on the three nonidentity Pauli operators before applying the Fourier transform [7]. This motivates the following generalization of twisted Fourier transform.
Consider the normalized universal inversion map [38]
which acts on the Weyl basis as and for .
For a pure state , the normalized universal inversion gives , which is the maximally mixed state on the subspace orthogonal to . For , this subspace is one-dimensional and reduces to , which underlies the Rains shadow transform [7].
Definition 6. [Qudit twists] For each , we define two twists, denoted by and . The twist is generated by the Weyl-conjugation phase associated with in (6), whereas the twist additionally applies the normalized universal inversion (25). Their actions on the formal Weyl space are defined by
The corresponding twisted Fourier operators are
Note that .
The phase in Definition 6 is precisely the phase acquired by under conjugation by in (6).
For , the two twists with recover the familiar quantum weight-enumerator transforms. The twist is trivial and gives the ordinary Shor–Laflamme transform [2], whereas the twist changes the signs of all three nonidentity Pauli operators and gives the Rains shadow transform [7]. For each nonzero , the twist changes the sign of only, whereas the twist changes the signs of the other two nonidentity Pauli operators.
Let .
Definition 7. [Twisted Weyl-conjugation autocorrelation] For an n-qudit quantum code with projector P of rank M, define the twisted Weyl-conjugation autocorrelations by
for . The corresponding formal vectors are
The autocorrelation is the ordinary Weyl-conjugation autocorrelation , while the autocorrelation is the qudit analogue of the Rains shadow autocorrelation [39].
Theorem 8. [Twisted MacWilliams identity] For every ,
Moreover,
Proof. We first consider the twist. By (29), we have the translation relation
where the inequality follows from (19). Thus, the positivity of follows immediately.
Applying the Weyl power-spectrum MacWilliams identity (18) gives
which is precisely the h-component of .
For the twist, by the Weyl expansion (11), we have
Taking the Weyl conjugation in (6) gives
Since , the above equation leads to
which, by a direct calculation, is the h-component of .
For the positivity, fix an ordering of the computational basis and let for . The universal inversion can be written as
Since the tensor product of the local transpositions is the full transpose,
where , and the inequality follows from . Therefore, by (30),
since both and are positive semidefinite.
A. Binary specialization: the eight twists
For q = 2, the normalized universal inversion acts on the Pauli operators as
Equivalently,
for . Moreover, the Weyl-conjugation phases reduce to signs.
Let denote the binary sign label, where indicates a sign change of the Pauli operator . The qudit twists reduce to the eight binary sign twists, with the following correspondence:
| qudit twist | binary sign label |
|---|---|
| 000 | |
| 011 | |
| 110 | |
| 101 | |
| 111 | |
| 100 | |
| 001 | |
| 010 |
(36)
In particular, recovers the ordinary Shor-Laflamme MacWilliams transform [2], while recovers the Rains shadow transform [7]. The remaining six twists, corresponding to nonzero , are their Pauli translations by Theorem 11. For each nonzero , the twist changes the sign of only, whereas the twist changes the signs of the other two nonidentity Pauli operators.
B. Bell sampling interpretation of the binary twists
Bell sampling provides a natural operational interpretation of the binary twisted autocorrelations. For pure states, conjugate-copy Bell sampling has previously been used to sample the Pauli probability distribution [40]. We first extend this connection to quantum-code projectors and show that conjugate-copy and identical-copy Bell sampling correspond to two distinguished binary twists.
The binary twisted autocorrelations admit a direct interpretation in terms of two-copy Bell sampling. Define the n-qubit Bell basis by
for , where .
Let . We consider two Bell-sampling distributions. Let denote the probability of obtaining the Bell outcome from the conjugate-copy state , and let denote the corresponding probability from the identical-copy state :
Theorem 9. [Bell-sampling interpretation of the binary twists] For every ,
Thus, conjugate-copy Bell sampling realizes the normalized autocorrelation, whereas identical-copy Bell sampling realizes the normalized twisted autocorrelation.
Proof.
where follows from the identity
and (b) follows from and the cyclicity of the trace. Thus, is precisely the normalized Weyl-conjugation autocorrelation of P.
Let , corresponding to up to an overall phase. Then
where follows from (35).
Corollary 10. [Bell-sampling realization of the binary twists] For every , let . Then
Fig. 1. Relation between the pointwise twisted autocorrelation and the Bell-sampling interpretation of the Rains shadow enumerator in [23].
Consequently, all eight normalized binary twisted autocorrelations are realized by conjugate-copy or identical-copy Bell sampling, up to fixed translations of the Bell-outcome labels.
Proof. The result follows directly from the translation relation (34) and the definitions of and .
The relation to the Bell-sampling interpretation of shadow enumerators in [23] follows by coarse-graining the pointwise distribution in (39). In the Bell basis, Y (11) labels the singlet outcome, whereas I, X, Z (00, 10, 01) label the three triplet outcomes. Hence the number of triplet outcomes in h is wt(h+y). Moreover, the translation relation gives
Therefore, summing over all Bell outcomes containing exactly j triplets is precisely the Hamming-weight-j projection of the twisted autocorrelation, recovering the Rains shadow-enumerator interpretation of [23]. Figure 1 summarizes this relation.
The parallelized SWAP-test interpretation in [22] is equivalent to the same local coarse-graining: the three triplet Bell outcomes I, X, Z are combined into the symmetric outcome, while the singlet outcome Y gives the antisymmetric outcome, followed by the same weight projection.
V. REDUNDANCY OF TWISTED FOURIER CONSTRAINTS
The preceding sections establish a unified Fourier framework for the Shor–Laflamme and shadow identities and their twisted generalizations. We now examine whether the twisted identities yield independent positivity constraints for LP bounds. We first establish their translation structure and then study which constraints remain distinct after applying linear functionals.
A. Translation structure of twisted Fourier transforms
The twisted Fourier transforms differ from the ordinary and shadow transforms only by translations of their output coefficients.
Theorem 11. [Translation identity for twisted Fourier transforms] For , define the permutation operator
Then
Consequently, for arbitrary labels ,
where and the sign is uniform across all coordinates.
Proof. By bilinearity of the symplectic form,
Since , the same identity holds for the minus twist. Taking tensor products completes the proof.
The transforms and correspond to the ordinary MacWilliams and Rains shadow transforms, respectively. For a vector in the Weyl basis, inequalities are understood componentwise.
Proposition 12. [Positivity equivalence of twisted Fourier transforms] Let be a Weyl-resolved coefficient vector, and let . For either uniform sign , the vectors
have the same coefficients up to permutation. Consequently, whenever these coefficients are real,
Proof. By (44), . Since is a permutation operator, the two vectors contain the same coefficients and satisfy equivalent componentwise nonnegativity conditions.
B. Projected Twisted Fourier Transforms
The exact Weyl power spectrum contains coefficients, making direct LP calculations impractical. We therefore consider linear functionals that aggregate Weyl labels into a smaller number of variables.
Let be a partition of , with . For formal variables , define
For any Weyl-resolved coefficient vector , .
We say that a transform is closed under if
where each is a linear form in . Thus, the transformed functional depends only on the same projected variables.
Theorem 13. [Redundancy of closed twisted Fourier constraints] Suppose that is closed under . If is also closed under , then its projected output coefficients are permutations of those of . Consequently, the corresponding coefficientwise positivity constraints are equivalent.
Proof. Suppose first that is closed under . Since both and are closed under , there exist linear forms and in such that
Since is invertible, its restriction to the space spanned by the partition functionals is also invertible. Thus, the substitution is invertible. Moreover,
Hence is also closed under .
By the translation identity (43),
where each is a linear form in . Thus, is closed under .
On the other hand,
Closure requires the coefficients of to be identical for all in the same cell . Since are independent formal variables, must be contained in a single cell of . Furthermore, translation by has finite order, so these inclusions force translation to permute the cells. Hence there exists a permutation of such that .
Consequently,
and therefore
Thus, the projected output coefficients differ only by a permutation.
For the minus sector, recall from (28) that . Since , both and its inverse are closed under by (27). Hence is closed under if and only if is closed under . The same permutation identity follows from .
For the Hamming partition , only is -compatible: for , translation maps to , which is not a cell of . The ordinary transform is given by (21), while the shadow transform gives
For , this reduces to the conventional Rains shadow identity .
Theorem 13 gives a partial no-go result: twisted transforms that close on the same partition variables yield no new coefficientwise positivity constraints. It does not preclude stronger LP constraints from finer collections of linear functionals, as developed in the next section.
VI. REFINED WEIGHT ENUMERATORS AND LINEAR PROGRAMMING
Although twisted Fourier identities do not yield additional positivity constraints under compatible projections, stronger constraints can be obtained by applying refined functionals to both sides of these identities. This leads to refined (split) weight enumerators and corresponding MacWilliams and shadow identities, which provide stronger LP constraints for stabilizer codes.
A. Split Enumerators and Structural Linear Constraints
We now focus on stabilizer codes [25], [27]. Let be an additive stabilizer group and its trace-symplectic dual. By (13) and (15), we have
The two-class reduction does not preclude additional linear constraints arising from finer weight enumerators [1], [24]. We therefore consider three levels of enumerator resolution: , and . Here, H denotes the Hamming weight enumerator, which records only the total Hamming weight. The and enumerators instead distinguish the Weyl-operator compositions on selected coordinate blocks, allowing us to incorporate additional stabilizer-dependent constraints.
a) Split enumerators.: Recall that , where .
We introduce the refinement as a Fourier-invariant partition of the Weyl phase space, following the general framework of [41], [42]. Let and consider its affine cosets . The refinement distinguishes individual points on , while treating each , , as a single cell. Thus,
which consists of cells. To verify Fourier invariance, consider the -dimensional formal vector space , where . By (8),
where follows the character orthogonality (4). Also,
Thus both transforms belong to . As is invertible, it follows that .
The refinement is defined analogously using the diagonal direction :
Its associated cell subspace is likewise invariant under . Both refinements consist of cells.
The corresponding weight functionals are
Partition the coordinates as , with and . Using the Hamming-weight functional defined in (20), the full split enumerators are
Here and are nonnegative integer vectors, with and . The sum is over and .
The split enumerators are defined analogously by applying to and . Their coefficients are denoted by and , where satisfy and . Applying these functionals to the MacWilliams and shadow identities yields the corresponding refined identities, which are closed under the Fourier transform.
b) Reference stabilizers: Suppose that S contains an element of weight u. After a coordinate permutation and suitable local Clifford transformations, we may choose a reference stabilizer
where . We take and . Since , the split enumerator satisfies
where denotes the unit vector indexed by .
Moreover, every must commute with , implying . Since counts the coordinates in the cell with , the coefficients obey
whenever .
In particular, for q = 2, there is only one transverse cell, and the condition reduces to
c) Distance constraints: Since contains no Weyl vector of weight less than , the split coefficients satisfy
Similarly, the split coefficients satisfy
whenever .
d) Stabilizer orbits: For , multiplication by the reference stabilizer exchanges and on . Since and are invariant under this operation, we obtain
For , multiplication by preserves the composition . Moreover, every Weyl vector is paired with a distinct vector obtained by multiplication by . Since both vectors belong to the same composition class, its stabilizer and dual multiplicities must be even:
B. Linear Programming Formulation
We now combine the projected MacWilliams and shadow identities with the structural constraints derived above to obtain linear-programming bounds on stabilizer codes.
For an stabilizer code, the weight distributions and satisfy
together with the MacWilliams identity (21) and the shadow identity (47).
For q = 2, we additionally impose the three-type counting constraints of [24, Theorem 16]. Specifically, one of the following three cases must hold:
An alternative proof of the general three-type counting identities using quadratic Gauss sums is provided in Appendix A.
All applicable structural constraints discussed in Section VI-A are incorporated into the corresponding linear-programming formulations.
We consider both real and integer feasibility tests. In the real LP relaxation, the enumerator coefficients are treated as nonnegative real variables, and integrality and divisibility constraints are omitted, allowing more efficient computation.
C. Quantum MDS Specialization
For an quantum MDS code with , the stabilizer and its symplectic dual are additive MDS codes over . Their weight distributions are uniquely determined by the code parameters [43]–[45].
(48)
(49)
Moreover, the MDS property implies that the number of codewords with a given support depends only on the support size [44], [46]. Consequently, for any partition , with and , the split weight distributions are uniquely determined by
D. Computational Examples
We illustrate the effectiveness of the refined LP formulation through three levels of enumerator resolution:
For a reference stabilizer of weight , the and enumerators have and coefficients, respectively. The rapid growth in the number of variables makes direct integer enumeration computationally expensive.
TABLE II
NUMBERS OF CANDIDATE WEIGHT DISTRIBUTIONS SURVIVING THE SHOR-LAFLAMME, SHADOW, AND THREE-TYPE COUNTING (SLR3) CONSTRAINTS AND SUBSEQUENT REFINED REAL LP FEASIBILITY TESTS. A DASH (-) INDICATES THAT THE COMPUTATIONAL SEARCH HAS NOT BEEN COMPLETED.
| Code parameters | SLR3 | ||
|---|---|---|---|
| [[13,5,4]] | 30 | 10 | 9 |
| [[14,3,5]] | 47 | 4 | 2 |
| [[16,5,5]] | 95 | 66 | - |
| [[17,3,6]] | 7 | 7 | - |
| [[17,6,5]] | 292 | < 268 | - |
| [[18,4,6]] | 2868 | - | - |
| [[23,1,9]] | 1 | - | - |
We therefore adopt a two-stage computational approach. First, we enumerate integer candidate weight distributions at the Hamming level , subject to the Shor–Laflamme and shadow constraints, together with the three-type counting constraints for binary stabilizer codes. The surviving candidates are then tested against higher-resolution constraints using real LP feasibility checks, without requiring integer enumeration.
For qudit stabilizer codes, we focus on quantum MDS codes, whose weight distributions are uniquely determined by their code parameters. For general non-MDS codes, the Hamming-level constraints often leave a prohibitively large number of integer candidates.
a) Qubit stabilizer codes: Table II summarizes the numbers of candidate weight distributions surviving the SLR3 constraints and subsequent refined LP tests. Increasing the enumerator resolution generally reduces the number of survivors.
For [[13,5,4]] and [[14,3,5]], integer LP tests at the level give the same survivor counts as real LP tests at the finer level. Note that the nonexistence of [[13,5,4]] was previously established in [47].
For [[17,6,5]], partial tests were completed for reference weights , reducing the SLR3 candidates from 292 to 267. A dash (-) indicates that the corresponding computations were attempted but not completed due to their computational cost.
The resulting candidate sets can be further analyzed using structural constraints, as discussed in the next section.
b) Qutrit quantum MDS codes: Next, we apply the quantum MDS specialization to the parameter sets and . By (48), their stabilizer weight enumerators are uniquely determined as
However, both parameter sets can be excluded using the full refinement.
For , we choose a weight-9 stabilizer element as a reference. The corresponding full LP, subject to the Hamming projection constraints (50) and (51), is infeasible.
Similarly, for , choosing a weight-8 stabilizer reference also yields an infeasible LP.
Thus, the refined constraints exclude both parameter sets, which survive the Hamming-level LP. This improves two entries in Grassl's code table [28]. We remark that their nonexistence was recently established through the classification of additive MDS codes over [29].
VII. STRUCTURAL OBSTRUCTIONS BEYOND LINEAR PROGRAMMING
As in classical coding theory [3], weight distributions satisfying LP constraints need not correspond to realizable codes. We therefore supplement the refined LP constraints developed in the preceding section with combinatorial arguments based on shadow-coset counting and the simplex mapping [1] to further exclude candidate weight distributions.
A. Pauli shadow-coset packing
Let be the stabilizer subspace of an stabilizer code, and define
If contains an odd-weight element, then is a subspace of dimension . The corresponding Rains shadow [7] is the coset
Let denote the number of weight- vectors in .
The SLR3 constraints leave 292 integer weight distributions of Case I for [[17,6,5]] in Table II, while Cases II and III are infeasible. Since all 292 candidates satisfy , every nonzero element of for any [[17,6,5]] stabilizer code realizing one of these distributions must have weight at least five. Moreover, since is a coset of , the sum of any two distinct shadow vectors belongs to . Consequently, any two distinct shadow vectors must have Pauli distance at least five, imposing strong restrictions on the number and arrangement of low-weight shadow vectors. This leads to the following packing bound.
Lemma 14. [Low-weight shadow-coset packing] Suppose that an stabilizer code exists with
. Then one of the following two cases holds:
Proof. For any two distinct weight-3 vectors , we have , so since the distance is 5 and for .
Suppose their supports overlap in r coordinates with identical nonidentity Pauli labels and s coordinates with different nonidentity Pauli labels. Then
Hence and . This implies that two distinct weight-3 vectors in cannot have the same nonidentity Pauli label at the same coordinate.
Since there are only three nonidentity Pauli labels , if a coordinate appears in four or more weight-3 vectors, at least two of them must have the same Pauli label at that coordinate, a contradiction. Thus each coordinate can appear in at most three weight-3 vectors. Counting their supports yields , and hence .
Similarly, two distinct weight-1 vectors in would have a sum of weight at most two, contradicting the minimum-weight condition on . Thus .
Finally, the sum of a weight-1 vector and a weight-3 vector has weight at most four. Such vectors therefore cannot both belong to , proving that implies .
- Nonexistence of [[17,6,5]]: Suppose that a [[17,6,5]] stabilizer code exists. Its weight distribution must be one of the 292 candidates in Table II.
The shadow coefficients are determined by the stabilizer weight enumerator through the shadow identity (47)
where is the quaternary Krawtchouk polynomial (23).
Applying Lemma 14 to the 292 candidates gives the exclusions summarized in Table III, classified by the first violated condition.
Thus every candidate violates Lemma 14. Consequently, no [[17,6,5]] binary stabilizer code exists.
B. Simplex representation
We next introduce the simplex representation, which maps binary Pauli-label codes to binary linear codes.
TABLE III
EXCLUSION OF THE 292 CANDIDATE WEIGHT DISTRIBUTIONS FOR [[17,6,5]] STABILIZER CODES.
| Violated condition | Number of candidates |
|---|---|
| 258 | |
| 1 | |
| 33 | |
| Total | 292 |
For , let , where . Consider the binary simplex map [1] defined by
The action of the simplex map on the binary Pauli labels is given by
Each nonidentity Pauli operator is mapped to a binary word of weight two. Consequently,
Moreover,
Thus, the commutation relation between two Pauli operators is determined by the binary Euclidean inner product of their simplex images.
Let be the isotropic subspace corresponding to an stabilizer code. Then is a binary self-orthogonal code. Let . By (53), contains exactly codewords of weight 2j and no codewords of odd weight. Thus, its Hamming weight enumerator is
Moreover, by the simplex inner-product identity (54),
where
One can verify that , , and .
Lemma 15. [Weight enumerator of the simplex dual] Let be the isotropic subspace corresponding to an stabilizer code, and let denote the Pauli weight enumerator of its symplectic dual . Let
. Then the Hamming weight enumerator of is given by
Proof. By (56), is the disjoint union of the cosets over . By (52) and (57), each coordinate of a coset contains two possible binary symbols, obtained by adding either 000 or 111 to the corresponding simplex image. Their Hamming weights are 0 and 3 for the identity Pauli symbol, and 1 and 2 for each nonidentity Pauli symbol.
Hence a Pauli vector of weight contributes
to the weight enumerator of . Summing over all Pauli vectors in gives (58).
Applying the classical MacWilliams identity to and using (58), we obtain
- Nonexistence of EA stabilizer codes: We establish a connection between maximal-entanglement EA stabilizer codes [11], [12] and binary LCD codes [30], [31] through the simplex map. An maximal-entanglement EA code encodes logical qubits into physical qubits using shared ebits. Recall that a binary linear code is LCD if .
Lemma 16. The existence of an maximal-entanglement EA stabilizer code implies the existence of a binary LCD [3n,2k,2d] code.
Proof. By [11], [12], an maximal-entanglement EA code is associated with an additive quaternary code of size , minimum distance , and . By (53) and (54), is a binary linear [3n, 2k, 2d] code satisfying
Hence is an LCD code.
The following weight-parity condition is the r = 0 case of the three-type counting identities in [24, Theorem 16]; see also Lemma 19 in Appendix A.
Corollary 17. [Weight-parity condition] Let be a binary linear subspace of dimension 2k satisfying . Then
Under the binary simplex mapping, is a binary LCD code of dimension , and the weight-parity condition becomes . This is equivalent to the Gauss-sum characterization of binary LCD codes in [48], and follows from the more general three-type counting identities of [24].
a) Nonexistence of [[12,6,6;6]]: By the classification of additive [12,6,6] codes in [49, Theorem 2], the possible weight enumerators are
Evaluating at gives
neither of which satisfies the condition required by Corollary 17. Hence no EA stabilizer code exists.
- Nonexistence of [[15,4,10;11]]: By the simplex mapping, an [[15,4,10;11]] EA stabilizer code would give a binary LCD [45,8,20] code . Bouyuklieva and Bouyukliev classified all binary linear [45,8,20] codes into 424208 equivalence classes, of which 424207 are doubly even [50, Example 1]. Since every doubly-even binary linear code is self-orthogonal, none of these codes can be LCD.
The remaining class has weight enumerator
Since , the corresponding Pauli weight-parity sum is
This violates Corollary 17, which requires the absolute value to be . Therefore, no EA stabilizer code exists.
- Nonexistence of [[17,13,4;4]]: By [49, Theorems 3–4], every additive [17,13,4] code is equivalent to the dual of the elliptic-quadric [17,4,12] code E, whose weight enumerator is
Applying the quaternary additive MacWilliams identity to yields
while Corollary 17 requires an absolute value of . Thus no EA stabilizer code exists.
- Nonexistence of [[19,3,14;16]]: Suppose that a [[19,3,14;16]] EA stabilizer code exists. By the simplex mapping, its logical Pauli-label subspace gives rise to a binary LCD [57,6,28] code .
However, Liu and Li showed that the maximum minimum distance of binary LCD codes of length 57 and dimension 6 is 27 [51, Table 2]. Therefore, no [[19,3,14;16]] EA stabilizer code exists.
C. Binary shadow-coset counting
We now combine the simplex representation with shadow-coset counting to derive additional restrictions on stabilizer weight distributions.
Let be the simplex image of the stabilizer subspace , and let , where is the even-weight subspace defined above.
The corresponding binary shadow coset is
If contains an odd-weight element, then has codimension one in . Consequently, , and is a single coset of .
- Nonexistence of [[14,3,5]]: In Table II, the refined LP tests leave two candidate stabilizer weight distributions, labeled 17 and 35:
Both candidates satisfy ; that is, each has exactly one weight-4 stabilizer element.
For either candidate, the simplex image would be a self-orthogonal [42,11] binary code. By Lemma 15 and the quantum MacWilliams identity (21), both candidates yield
Hence, in either case, contains no weight-2 codewords, exactly 14 weight-3 codewords, and exactly one weight-4 codeword.
We next determine the number of weight-3 words in the binary shadow coset . For both candidates, , and
By the classical MacWilliams identity, the number of weight-3 codewords in is
where is the binary Krawtchouk polynomial (23) of degree three. Substituting the two candidate distributions gives 34 and 33 weight-3 codewords in , respectively. Since and contains exactly 14 weight-3 codewords, the two candidates require to contain 20 and 19 weight-3 words, respectively.
We show that these counts are impossible under the low-weight structure of .
Lemma 18. Suppose that a [[14,3,5]] stabilizer code exists, and let be its simplex image, with the corresponding shadow coset. If contains no weight-2 codewords and exactly one weight-4 codeword, then contains at most 14 weight-3 words.
Proof. Let denote the set of supports of weight-3 words in . For any two distinct weight-3 words , we have . Since contains no weight-2 codewords, their supports cannot overlap in two coordinates.
If all weight-3 words in are pairwise disjoint, then .
Otherwise, let be two weight-3 words whose supports overlap in exactly one coordinate. Then is the unique weight-4 codeword in .
Consider any other weight-3 word . If overlaps in one coordinate, then , implying , a contradiction. The same argument applies to . Thus must be disjoint from both and .
Furthermore, any two such remaining weight-3 words t, s must be disjoint. Otherwise, their sum would be the unique weight-4 codeword , whose support is contained in . This contradicts the fact that t and s are disjoint from both u and v.
Since , the remaining weight-3 words have pairwise disjoint supports contained in the other 37 coordinates. Therefore,
The required counts of 20 and 19 weight-3 words in T both violate Lemma 18. Thus neither candidate is realizable, and no [[14, 3, 5]] binary stabilizer code exists.
D. Remaining candidate sets
For [[16,5,5]], the initial SLR3 enumeration gives 83 candidates in Case I and 12 in Case II, while Case III is infeasible. The refined LP and structural tests reduce these to 18 and 9 candidates, respectively. Thus 27 candidates remain, and nonexistence has not been established.
For [[18,4,6]], the initial SLR3 enumeration gives 2835 candidates in Case I and 33 in Case II. Shadow-coset pair counting reduces Case I to 882 candidates, while all 33 candidates in Case II remain. Hence 915 candidates survive.
For [[17,3,6]], seven candidate weight distributions remain, and the available structural constraints have not established nonexistence.
For [[23,1,9]], only one candidate weight distribution remains. This distribution satisfies and for all odd . Thus any realizing stabilizer code would be nondegenerate and have , so its Rains shadow coset is empty. Consequently, the shadow-coset packing argument developed above does not apply directly. Further structural constraints are needed to determine whether this distribution is realizable.
VIII. CONCLUSION
We developed a unified Fourier formulation of quantum weight enumerators and their MacWilliams and shadow identities. Within this framework, we introduced twisted Fourier transforms extending the ordinary MacWilliams and shadow identities. The two-class reduction, Theorem 11, shows that all twisted Fourier transforms are Weyl translations of either the MacWilliams or shadow transform. However, projection compatibility shows that compatible twists yield no independent coefficientwise positivity constraints within a common refinement.
Despite this limitation, our unified framework naturally yields refined MacWilliams [1], [24] and shadow identities with stronger LP constraints. We demonstrate their effectiveness through two qutrit quantum MDS examples. The simplex representation provides additional structural constraints for four maximally entangled binary EA codes. Furthermore, shadow-coset counting, both directly in Pauli space and through the simplex representation, establishes the nonexistence of binary stabilizer codes with parameters and .
For binary quantum codes, we show that the 010 twisted autocorrelation admits an operational interpretation through Bell sampling on two identical copies of a quantum state. The translation relation between the 010 and 111 transforms further connects Bell-sampling statistics to the Rains shadow enumerator.
We conclude by discussing several limitations of our current approach and directions for future research.
a) Scalability: Our computational approach relies on a manageable number of integer LP survivors. For larger binary parameters, exhaustive SLR3 enumeration often becomes prohibitive, limiting subsequent refined LP and structural tests.
For nonbinary stabilizer codes, the number of LP survivors is typically even larger. We therefore focused on selected quantum MDS parameters, including and , as well as several cases over . However, our techniques yielded no additional nonexistence results for these nonbinary cases.
b) Beyond character twists: Our two-class reduction shows that compatible twisted Fourier transforms yield no independent coefficientwise positivity constraints within the same refinement. However, this result does not rule out stronger constraints from twisted transforms that require additional enumerator variables.
c) Positive maps: Another direction is to consider positive maps. The generalized Shor–Laflamme enumerators [2] allow two operators, which may be chosen as and , where is a positive map.
For the depolarizing family
with , we obtain an analytical redundancy result from the decomposition
where and . The endpoints are the identity and the normalized universal inversion. By convexity, intermediate maps yield no additional positivity constraints beyond those of the endpoints. Note that this argument does not directly apply to arbitrary tensor products of local depolarizing maps.
More general positive maps introduce additional difficulties. Maps not diagonal in the Weyl basis generally produce cross terms with , which are not determined by the Weyl power-spectrum coefficients and may require additional variables.
We also explored amplitude-damping and rotated-dephasing channels, Breuer-Hall maps [52], [53], and positive projections onto spin factors [54]. These investigations yielded no certified improvement over existing refined LP constraints, but no general redundancy theorem was established. Whether more general positive maps can yield independent inequalities involving only existing refined enumerators remains open.
d) Nonbinary counting constraints: The three-type counting constraints of [24, Theorem 16] apply to binary weight enumerators without additional variables. Related arithmetic constraints have also been developed for ternary LCD codes [48]. Although quadratic-character counting identities extend to nonbinary Weyl groups, their counts are generally not determined by ordinary Hamming weight enumerators. Whether analogous constraints involving only the Shor–Laflamme coefficients exist for nonbinary stabilizer codes remains open.
e) Shadow-coset counting: Our nonexistence results show that shadow-coset packing and simplex-based counting can exclude weight distributions satisfying refined LP constraints. A natural question is whether these techniques can yield systematic realizability constraints beyond MacWilliams and shadow positivity.
In particular, the Pauli shadow of a nondegenerate stabilizer code inherits a minimum-distance restriction from the dual code. This suggests more general packing bounds involving multiple low weights and their pairwise intersections, possibly combined with simplex representations. Whether such constraints can be incorporated directly into the LP framework remains open.
f) Signed weight enumerators: Another possible extension concerns signed weight enumerators used in magic state distillation [17], [18]. Unlike the Weyl power spectrum, these enumerators may retain phase information that is lost upon taking squared magnitudes. Developing a Fourier framework for such phase-sensitive enumerators is an interesting question.
AI DISCLOSURE
OpenAI ChatGPT and Anthropic Claude were used to assist with mathematical exploration, computational code development and verification, and manuscript preparation. In particular, ChatGPT helped identify a simple counting argument that excludes all 292 LP candidates for , avoiding the formidable task of examining them individually. The authors take full responsibility for the results and content of this work.
REFERENCES
[1] A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane, “Quantum error correction via codes over ,” IEEE Trans. Inf. Theory, vol. 44, no. 4, pp. 1369–1387, 1998.
[2] P. Shor and R. Laflamme, “Quantum analog of the MacWilliams identities for classical coding theory,” Phys. Rev. Lett., vol. 78, no. 8, pp. 1600–1602, Feb 1997.
[3] F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes. Amsterdam, The Netherlands: North-Holland, 1977.
[4] P. Delsarte, “An algebraic approach to the association schemes of coding theory,” Philips Res. Rep. Suppl., vol. 10, 1973.
[5] A. Ashikhmin and S. Litsyn, “Upper bounds on the size of quantum codes,” IEEE Trans. Inf. Theory, vol. 45, no. 4, pp. 1206 – 1215, 1999.
[6] E. M. Rains, “Quantum weight enumerators,” IEEE Trans. Inf. Theory, vol. 44, no. 4, pp. 1388 – 1394, 1998.
[7] —, “Quantum shadow enumerators,” IEEE Trans. Inf. Theory, vol. 45, no. 7, pp. 2361 – 2366, 1999.
[8] A. Nemec and A. Klappenecker, “A combinatorial interpretation for the Shor-Laflamme weight enumerators of CWS codes,” IEEE Trans. Inf. Theory, vol. 68, no. 7, pp. 4549–4552, 2022.
[9] C.-Y. Lai, P.-C. Tseng, and W.-H. Yu, “Semidefinite programming bounds on the size of entanglement-assisted codeword stabilized quantum codes,” IEEE Trans. Inf. Theory, vol. 70, no. 11, pp. 7867–7881, 2024.
[10] S. A. Aly, A. Klappenecker, and P. K. Sarvepalli, “Subsystem codes,” in Proc. 44th Annual Allerton Conference on Communication, Control, and Computing, Monticello, IL, USA, 2006. [Online]. Available: https://arxiv.org/abs/quant-ph/0610153
[11] C.-Y. Lai, T. A. Brun, and M. M. Wilde, “Duality in entanglement-assisted quantum error correction,” IEEE Trans. Inf. Theory, vol. 59, no. 6, pp. 4020–4024, 2013.
[12] —, “Dualities and identities for entanglement-assisted quantum codes,” Quantum Information Processing, vol. 13, pp. 957–990, 2014.
[13] M. Grassl, S. Lu, and B. Zeng, “Codes for simultaneous transmission of quantum and classical information,” in 2017 IEEE International Symposium on Information Theory (ISIT). IEEE, 2017, pp. 1718–1722.
[14] A. Ashikhmin, C.-Y. Lai, and T. A. Brun, “Quantum data-syndrome codes,” IEEE J. Sel. Areas Commun., vol. 38, no. 3, pp. 449 – 462, 2020.
[15] Y. Ouyang and C.-Y. Lai, “Linear programming bounds for approximate quantum error correction over arbitrary quantum channels,” IEEE Trans. Inf. Theory, vol. 68, no. 8, pp. 5234–5247, 2022.
[16] C. Cao and B. Lackey, “Quantum weight enumerators and tensor networks,” IEEE Transactions on Information Theory, vol. 70, no. 5, pp. 3512–3528, 2023.
[17] P. Rall, “Signed quantum weight enumerators characterize qubit magic state distillation,” arXiv preprint arXiv:1702.06990, 2017.
[18] A. R. Kalra and S. Prakash, “Invariant theory, magic state distillation, and bounds on classical codes,” arXiv preprint arXiv:2501.10163, 2025.
[19] G. A. Munné, A. Nemec, and F. Huber, “SDP bounds on quantum codes,” arXiv preprint arXiv:2408.10323, 2024.
[20] A. Khintchine, “Korrelationstheorie der stationären stochastischen Prozesse,” Mathematische Annalen, vol. 109, pp. 604–615, 1934.
[21] C.-Y. Lai, M.-H. Hsieh, and H. f. Lu, “On the Macwilliams identity for classical and quantum convolutional codes,” IEEE Trans. Commun., vol. 64, no. 8, pp. 3148–3159, Aug 2016.
[22] F. Shi, K. Guo, X. Zhang, and Q. Zhao, “Exploring quantum weight enumerators from the n-qubit parallelized SWAP test,” IEEE Trans. Inf. Theory, vol. 72, no. 2, pp. 1220–1231, 2026.
[23] D. Miller, K. Levi, L. Postler, A. Steiner, L. Bittel, G. A. L. White, Y. Tang, E. J. Kuehnke, A. A. Mele, S. Khatri, L. Leone, J. Carrasco, C. D. Marciniak, I. Pogorelov, M. Guevara-Bertsch, R. Freund, R. Blatt, P. Schindler, T. Monz, M. Ringbauer, and J. Eisert, “Experimental measurement and a physical interpretation of quantum shadow enumerators,” Phys. Rev. Res., vol. 8, p. 023318, Jun 2026. [Online]. Available: https://link.aps.org/doi/10.1103/8h3b-brg1
[24] C.-Y. Lai and A. Ashikhmin, “Linear programming bounds for entanglement-assisted quantum error-correcting codes by split weight enumerators,” IEEE Trans. Inf. Theory, vol. 64, no. 1, pp. 622–639, Jan 2018.
[25] D. Gottesman, “Stabilizer codes and quantum error correction,” Ph.D. dissertation, California Institute of Technology, Pasadena, CA, 1997.
[26] E. Knill and R. Laflamme, “A theory of quantum error-correcting codes,” Phys. Rev. A, vol. 55, no. 2, pp. 900–911, 1997.
[27] A. Ketkar, A. Klappenecker, S. Kumar, and P. K. Sarvepalli, “Nonbinary stabilizer codes over finite fields,” IEEE Trans. Inf. Theory, vol. 52, no. 11, pp. 4892–4914, 2006.
[28] M. Grassl, “Bounds on the minimum distance of linear codes and quantum codes,” accessed on 2026-10-01. [Online]. Available: http://www.codetables.de/
[29] S. Ball, G. Gamboa, and M. Lavrauw, “On additive MDS codes over small fields,” Adv. Math. Commun., vol. 17, no. 4, pp. 828–844, 2023. [Online]. Available: https://www.aimsciences.org/article/id/ef4f8cba4-f0e2-4b3c8a4-19cc38313a36
[30] J. L. Massey, “Linear codes with complementary duals,” Discrete Mathematics, vol. 106–107, pp. 337–342, 1992.
[31] S. T. Dougherty, J.-L. Kim, B. Ozkaya, L. Sok, and P. Solé, “The combinatorics of lcd codes: linear programming bound and orthogonal matrices,” International Journal of Information and Coding Theory, vol. 4, no. 2-3, pp. 116–128, 2017.
[32] S. Bouyuklieva, “Optimal binary lcd codes,” Designs, Codes and Cryptography, vol. 89, pp. 2445–2461, 2021.
[33] L. Lu, R. Li, and Y. Ren, “Optimal quaternary hermitian lcd codes,” Entropy, vol. 26, no. 5, p. 373, 2024.
[34] L. Lu, R. Li, L. Guo, and Q. Fu, “Maximal entanglement entanglement-assisted quantum codes constructed from linear codes,” Quantum Information Processing, vol. 14, pp. 165–182, 2015.
[35] C.-Y. Lai, “Quantum Code LP and Structural Obstruction Tools,” GitHub repository, 2026. [Online]. Available: https://github.com/cylai-nycu/quantum-code-lp
[36] A. Terras, Fourier analysis on finite groups and applications. Cambridge University Press, 1999, no. 43.
[37] C. Hu, S. Yang, and S. S.-T. Yau, “Complete weight distributions and MacWilliams identities for asymmetric quantum codes,” IEEE Access, vol. 7, pp. 68404–68414, 2019.
[38] P. Rungta, V. Bužek, C. M. Caves, M. Hillery, and G. J. Milburn, “Universal state inversion and concurrence in arbitrary dimensions,” Phys. Rev. A, vol. 64, no. 4, p. 042315, 2001.
[39] F. Huber, C. Eltschka, J. Siewert, and O. Gühne, “Bounds on absolutely maximally entangled states from shadow inequalities, and the quantum MacWilliams identity,” J. Phys. A: Math. Theor., vol. 51, no. 17, p. 175301, 2018.
[40] C.-Y. Lai and H.-C. Cheng, “Learning quantum circuits of some T gates,” IEEE Trans. Inf. Theory, vol. 68, no. 6, pp. 3951–3964, 2022.
[41] V. A. Zinov'ev and T. Ericson, “On Fourier-invariant partitions of finite abelian groups and the MacWilliams identity for group codes,” Problems of Information Transmission,
vol. 32, no. 1, pp. 117–122, 1996. [Online]. Available: https://www.mathnet.ru/eng/ppi328
[42] H. Gluesing-Luerssen, “Fourier-reflexive partitions and MacWilliams identities for additive codes,” Designs, Codes and Cryptography, vol. 75, no. 3, pp. 543–563, 2015.
[43] L. Tolhuizen, “On maximum distance separable codes over alphabets of arbitrary size,” in Proceedings of 1994 IEEE International Symposium on Information Theory, 1994, pp. 431-.
[44] T. L. Alderson, “On the weights of general MDS codes,” IEEE Trans. Inf. Theory, vol. 66, no. 9, pp. 5414–5418, 2020.
[45] F. Huber and M. Grassl, “Quantum codes of maximal distance and highly entangled subspaces,” Quantum, vol. 4, p. 284, 2020.
[46] M. El-Khamy and R. J. McEliece, “The partition weight enumerator of MDS codes and its applications,” in Proceedings of the IEEE International Symposium on Information Theory (ISIT), 2005, pp. 926–930.
[47] J. Bierbrauer, R. Fears, S. Marcugini, and F. Pambianco, “The nonexistence of a [[13, 5, 4]]-quantum stabilizer code,” IEEE Trans. Inf. Theory, vol. 57, no. 7, pp. 4788–4793, 2011.
[48] M.-H. Kang and M. Xiong, “Linear programming bounds for lcd codes via gauss phases,” arXiv preprint arXiv:2609.08662, 2026.
[49] J. Bierbrauer, S. Marcugini, and F. Pambianco, “Additive quaternary codes related to exceptional linear quaternary codes,” IEEE Trans. Inf. Theory, vol. 66, no. 1, pp. 273–277, 2020.
[50] S. Bouyuklieva and I. Bouyukliev, “Classification of linear codes by extending their residuals,” in Mathematical Software – ICMS 2020, ser. Lecture Notes in Computer Science, vol. 12097. Springer, 2020, pp. 173–180.
[51] Y. Liu and R. Li, “On the largest minimum distances of lcd codes,” Heliyon, vol. 10, no. 19, p. e38238, 2024.
[52] H.-P. Breuer, “Optimal entanglement criterion for mixed quantum states,” Physical Review Letters, vol. 97, no. 8, p. 080501, 2006.
[53] W. Hall, “A new criterion for indecomposability of positive maps,” Journal of Physics A: Mathematical and General, vol. 39, no. 45, pp. 14119–14131, 2006.
[54] E. Størmer, “A decomposition theorem for positive maps, and the projection onto a spin factor,” Mathematica Scandinavica, vol. 118, no. 1, pp. 106–118, 2016.
APPENDIX A
AN ALTERNATIVE PROOF OF THE THREE-TYPE COUNTING IDENTITIES
Lemma 19. [Three-type counting [24, Theorem 16]] Let be a binary linear subspace, and let . Suppose and . Let and denote the numbers of even- and odd-weight vectors in , respectively. Then one of the following three cases holds:
Case II is possible only when r > 0.
Proof. For any , the Pauli weight satisfies [7]
Hence,
where follows by setting and for any ; follows from character orthogonality on the subspace ,
If R contains an odd-weight vector, then
Consequently, , which proves Case II. Otherwise, every vector in R has even weight, and
Thus . Combining this with gives
corresponding to Cases I and III.
When r = 0, , so Case II cannot occur. ☐