Cyclic Codes of Length 7ps over Fpm+uFpm: Characterization, Duals, and Applications to Quantum and LCD Codes
Payel Chandraa, Kalyan Hansdaa,∗
aDepartment of Mathematics, Visva-Bharati University, Santiniketan, Bolpur - 731235, West Bengal, India.
Abstract
Let R2=Fpm+uFpm (u2=0), where p is an odd prime and m,s∈N. For p≡3,5(mod7) with gcd(m,6)=1, the cyclotomic polynomial Φ7(x) is irreducible over Fpm. This yields a direct sum decomposition C=C1⊕C2 for any cyclic code C of length 7ps over R2, where C1 has length ps and C2 is a 7-cyclotomic code of length 6ps. We classify 7-cyclotomic codes into four disjoint generator-based types and calculate exact cardinalities using residue and torsion subcodes. Furthermore, explicit generators for the Euclidean dual codes C⊥ are determined. As operational applications of these classified codes, we construct new families of quantum stabilizer codes via the CSS framework and establish parameter criteria for linear codes with complementary duals (LCD codes).
Cyclic codes form one of the most fundamental classes of linear error-correcting codes due to their rich algebraic structure and efficient shift-register implementations [23, 24]. While cyclic codes were originally developed over finite fields, their study over finite commutative rings gained significant momentum following the discovery that key non-linear binary codes map directly from linear codes over Z4 [15]. Among finite commutative ring structures, local chain rings—particularly Rq=Fpm+uFpm+u2Fpm+⋯+uq−1Fpm=Fpm[u]/⟨uq⟩ with uq=0—have become a benchmark alphabet for constructing optimal ring-linear codes.
A cyclic code of length n over R2 corresponds to an ideal of the quotient ring R2[x]/⟨xn−1⟩ [15]. When p∤n, the polynomial xn−1 factors into pairwise coprime irreducible factors, yielding a semisimple quotient ring generated by idempotents. Conversely, when p∣n, xn−1 contains repeated factors over R2, giving rise to repeated-root cyclic codes. The algebraic structure of repeated-root codes is substantially more intricate due to the presence of non-trivial nilpotent elements and non-principal ideal chains.
In recent years, classifying repeated-root cyclic and constacyclic codes over finite chain rings has attracted widespread attention. Dinh established the structural classification and dual codes for length ps over R2 [11]. Subsequent works extended this classification framework to length 2ps [12, 20], length 3ps [13, 22], length 4ps [14], length 5ps [5], and general prime-multiple length ℓps [9], alongside extensions to distinct ring structures [17, 16, 25]. However, an explicit classification, exact cardinality evaluation, and dual code derivation for cyclic codes of length 7ps over R2 remained open.
The factorization of x7ps−1 over Fpm depends on the factorability of the 7-th cyclotomic polynomial Φ7(x)=x6+x5+x4+x3+x2+x+1 [1, 26]. Under specific arithmetic conditions (p≡3,5(mod7)) and gcd(m,6)=1, Φ7(x) remains irreducible over Fpm. By applying the Chinese Remainder Theorem, the ambient ring ring algebra decomposes as [4]:
Consequently, any cyclic code C of length 7ps over R2 splits uniquely into a direct sum C=C1⊕C2, where C1 is a cyclic code of length ps and C2 is a 7-cyclotomic code of length 6ps over R2.
The main contributions of this paper are fourfold. First, we establish a complete structural classification of 7-cyclotomic codes of length 6ps over R2 into four disjoint generator-based types. Second, using residue and torsion code techniques derived from the rank-nullity theorem, we derive exact counting formulas for all classified code types and their direct sum representations. Third, we explicitly compute the generator polynomials for the Euclidean dual codes C⊥ of all 7-cyclotomic and 7ps-length cyclic codes over R2. Finally, we demonstrate two concrete applications by constructing new families of Quantum Error-Correcting Codes (QECCs) via the CSS construction and characterizing Linear Codes with Complementary Duals (LCD codes).
The rest of this paper is organized as follows. Section 2 reviews algebraic preliminaries regarding finite chain rings, cyclotomic polynomials, and Gray maps. Section 3 details the direct sum decomposition, classification of 7-cyclotomic codes, codeword enumeration, and dual code derivations. Section 4 presents the applications to quantum error-correction with examples and LCD codes.
2. Preliminaries
In this section, we review essential algebraic preliminaries regarding finite chain rings, cyclotomic polynomials, repeated-root cyclic codes of length ps over R2, and the canonical Gray map. In addition, we introduce the foundational concepts of Quantum Error-Correcting Codes (QECCs) and Linear Codes with Complementary Duals (LCD Codes).
2.1. Ring Structure and Cyclotomic Polynomials
Throughout this paper, p denotes an odd prime, m,s∈N, and Fpm is the finite field with pm elements. We consider the local commutative chain ring
R2=⟨u2⟩Fpm[u]={x=x0+ux1∣x0,x1∈Fpm,u2=0}.
Every element x∈R2 can be uniquely expressed as x=x0+ux1 for x0,x1∈Fpm. An element x=x0+ux1 is a unit in R2 if and only if x0∈Fpm×. The ideal structure of R2 is chain-conditioned, with unique maximal ideal m=⟨u⟩=uFpm, making it a principal ideal ring with residue field R2/m≅Fpm. The unit group of R2 is denoted by R2×.
Definition 2.1 ([6]). An integer g is a primitive root modulo n if the residue class of g generates the multiplicative group of units modulo n, i.e., Zn×=⟨g(modn)⟩. Equivalently, g is coprime to n and has multiplicative order ϕ(n) modulo n, where ϕ denotes Euler's totient function.
For n=7, the group of units Z7×={1,2,3,4,5,6} is cyclic of order ϕ(7)=6. The generators of Z7× are 3 and 5 (mod 7). For instance, 31≡3, 32≡2, 33≡6, 34≡4, 35≡5, and 36≡1 (mod 7). Conversely, 4 is not a primitive root modulo 7 since ⟨4(mod7)⟩={1,2,4}⊊Z7×.
Definition 2.2 ([1]). For n∈N, the n-th cyclotomic polynomial Φn(x)∈Z[x] is defined as
Φn(x)=1≤j≤ngcd(j,n)=1∏(x−ξj).
where ξ is a primitive n-th root of unity in C. The polynomial xn−1 decomposes into cyclotomic polynomials as xn−1=∏d∣nΦd(x). When n is prime, Φn(x)=∑j=0n−1xj=xn−1+xn−2+⋯+x+1.
Definition 2.3 ([5]). Let R be a finite commutative ring with unity. An n-cyclotomic code of length dnk over R is defined as an ideal of the quotient ring R[x]/⟨(Φn(x))k⟩, where dn=deg(Φn(x)) and k∈N.
The irreducibleity of cyclotomic polynomials over finite fields is governed by the following criterion.
Lemma 2.4 ([26]). The cyclotomic polynomial Φn(x) is irreducible in Fq[x] if and only if q is a primitive root modulo n and n∈{2,4,rk,2rk}, where r is an odd prime and k∈N.
Applying Lemma 2.4 to n=7 yields field conditions under which Φ7(x) remains irreducible over Fpm.
Proposition 2.5. The 7-th cyclotomic polynomial Φ7(x)=x6+x5+x4+x3+x2+x+1 is irreducible in Fpm[x] if and only if p≡3(mod7) or p≡5(mod7), with m being an odd integer such that gcd(m,6)=1.
Proof. By Lemma 2.4, Φ7(x) is irreducible over Fpm if and only if pm is a primitive root modulo 7. The group of units Z7× is cyclic of order 6, generated by 3 and 5 (mod 7). Thus, pm is a primitive root modulo 7 if and only if pm≡3(mod7) or pm≡5(mod7).
We analyze pm(mod7) across all possible congruences of p(mod7):
Case 1: If p≡0,1,2,4, or 6 (mod 7), then pm(mod7) generates a proper subgroup of Z7× of order dividing 3 for any m∈N. Thus, in this case pm cannot be a primitive root modulo 7.
Case 2: If p≡3(mod7), then pm≡3m(mod7). If m is even ( m=2k), then pm≡(32)k≡2k(mod7)∈{1,2,4}, which does not generate Z7×. If m is odd and satisfies gcd(m,6)=1, then gcd(m,∣Z7×∣)=1, implying pm≡3m(mod7)∈{3,5} retains multiplicative order 6. Hence, pm is a primitive root modulo 7.
Case 3: Similarly, if p≡5(mod7), then pm≡5m(mod7) is a primitive root modulo 7 if and only if m is odd with gcd(m,6)=1.
Combining these cases completes the proof.
2.2. Repeated-Root Cyclic Codes of Length ps over R2
The classification and cardinalities of repeated-root cyclic codes of length ps over R2 established by Dinh [11] serve as a key component for our direct sum decomposition.
Theorem 2.6 ([11]). Let g′(x)=x−1. The cyclic codes of length ps over R2=Fpm+uFpm are partitioned into four disjoint structural types:
(1) Type 1: C1′=⟨0⟩ or C1′=⟨1⟩.
(2) Type 2: C2′(β)=⟨ug′(x)β⟩, where 0≤β≤ps−1.
(3) Type 3: C3′(β,i,a(x))=⟨g′(x)β+ug′(x)ia(x)⟩, where ps>β>i≥0, and a(x) is 0 or a unit in R2[x]/⟨g′(x)ps⟩ of the form a(x)=∑j=0ps−i−1ajg′(x)j with aj∈Fpm and a0=0.
(4) Type 4: C4′(β,i,a(x),γ)=⟨g′(x)β+ug′(x)ia(x),ug′(x)γ⟩, where ps>β≥W>γ>i≥0, and W=min{k∈N0∣ug′(x)k∈C3′(β,i,a(x))}.
Proposition 2.7 ([11]). The index parameter W=min{k∈N∣ug′(x)k∈⟨g′(x)β+ug′(x)ia(x)⟩} is given by
W={β,min{β,ps−β+i},ifa(x)=0ifa(x)=0
Theorem 2.8 ([11]). Let C1 be a cyclic code of length ps over R2. The cardinality nC1=∣C1∣ is given by:
(1) If C1=⟨0⟩, then nC1=1.
(2) If C1=⟨1⟩, then nC1=p2mps.
(3) If C1=⟨ug′(x)β⟩ ( 0≤β≤ps−1), then nC1=pm(ps−β).
(4) If C1=⟨g′(x)β⟩ ( 1≤β≤ps−1), then nC1=p2m(ps−β).
(5) If C1=⟨g′(x)β+ug′(x)ia(x)⟩ with a(x) invertible, then
(6) If C1=⟨g′(x)β+ug′(x)ia(x),ug′(x)γ⟩, then nC1=pm(2ps−β−γ).
2.3. Gray Map
To project linear codes over R2 down to linear codes over the base field Fpm, we utilize the canonical Fpm-linear [11]Gray map Φ:R2n→Fpm2n defined componentwise by
Φ(a+ub)=(b,a+b),foralla,b∈Fpmn
Lemma 2.9 ([11, 9]). The Gray map Φ is an Fpm-linear bijection possessing the following properties:
(1) If C is a linear code of length n over R2 of cardinality ∣C∣=pmk0, then its Gray image Φ(C) is a linear [2n,k0,dH]pm code over Fpm, where dH denotes the minimum Hamming distance of Φ(C).
(2) For any linear code C⊆R2n, Φ(C⊥)=Φ(C)⊥ under the Euclidean inner product. In particular, C⊥⊆C over R2 if and only if Φ(C)⊥⊆Φ(C) over Fpm.
2.4. Quantum Error-Correcting Codes and LCD Codes
Quantum error-correcting codes protect quantum information against environmental decoherence and operational noise. A q-ary quantum stabilizer code of length N with K logical qubits and minimum distance dq is denoted by [N,K,dq]q. The Calderbank-Shor-Steane (CSS) construction provides a bridge between classical dual-containing linear codes and quantum stabilizer codes.
Theorem 2.10 (CSS Construction [2, 3, 19]). Let C be a linear code of length n over R2 such that C⊥⊆C. If ∣Φ(C)∣=pmk0, then its Gray image Φ(C) yields an [2n,2k0−2n,dq]pm quantum stabilizer code over Fpm, where dq=wtH(Φ(C)∖Φ(C)⊥)≥dH(Φ(C)).
[18] Linear codes with complementary duals (LCD codes) over Fpm are linear codes whose intersection with their Euclidean dual code is trivial.
Definition 2.11. [27] A linear code C over a finite chain ring is called a linear code with complementary dual (LCD code) if C∩C⊥={0}.
Lemma 2.12. [10] Let C be a linear code over R2. Then C is an LCD code over R2 if and only if its Gray image Φ(C) is an LCD code over Fpm.
Proof. By Lemma 2.9, Φ is an Fpm-linear bijection and preserves Euclidean duality, i.e., Φ(C⊥)=Φ(C)⊥. Consequently, Φ(C∩C⊥)=Φ(C)∩Φ(C⊥)=Φ(C)∩Φ(C)⊥. Since Φ is bijective, C∩C⊥={0} if and only if Φ(C)∩Φ(C)⊥={0}, establishing the equivalence.
3. Cyclic Codes over Fpm+uFpm
A cyclic code C of length 7ps over R2 is identified as an ideal of the quotient ring R2[x]/⟨x7ps−1⟩. When p≡3(mod7) or p≡5(mod7) with m being odd and gcd(m,6)=1, the algebraic structure of R2[x]/⟨x7ps−1⟩ admits a convenient direct sum decomposition.
Theorem 3.1. Let p≡3(mod7) or p≡5(mod7), and let m be an odd integer such that gcd(m,6)=1. Then any cyclic code C of length 7ps over R2 decomposes uniquely as
C=C1⊕C2
where C1 is a cyclic code of length ps over R2 and C2 is a 7-cyclotomic code of length 6ps over R2.
Proof. In Fpm[x], we have the factorization x7ps−1=(x7−1)ps=(x−1)ps(Φ7(x))ps, where Φ7(x)=x6+x5+x4+x3+x2+x+1 is the 7-th cyclotomic polynomial. Under the given conditions on p and m, Proposition 2.5 guarantees that Φ7(x) is irreducible over Fpm. Because gcd(x−1,Φ7(x))=1 in Fpm[x], by Hensel's Lemma it implies that ⟨(x−1)ps⟩ and ⟨(Φ7(x))ps⟩ are coprime ideals in R2[x]. Consequently, by the Chinese Remainder Theorem, we obtain that
R2[x]/⟨x7ps−1⟩≅R2[x]/⟨(x−1)ps⟩⊕R2[x]/⟨(Φ7(x))ps⟩. Since every ideal of a direct sum of rings decomposes as a direct sum of ideals from each component ring, any cyclic code C over R2 of length 7ps splits uniquely as C=C1⊕C2, where C1⊆R2[x]/⟨(x−1)ps⟩ and C2⊆R2[x]/⟨(Φ7(x))ps⟩.
3.1. Classification of Cyclotomic Codes of Length 7ps over Fpm+uFpm
By Proposition 3.1, the complete classification of cyclic codes of length 7ps over R2 reduces to classifying cyclic codes of length ps over R2 and 7-cyclotomic codes of length 6ps over R2.
Let g(x)=Φ7(x)=x6+x5+x4+x3+x2+x+1. We first establish the structural classification of 7-cyclotomic codes of length 6ps over R2.
Theorem 3.2. Let p≡3(mod7) or p≡5(mod7), and let m be an odd integer with gcd(m,6)=1. Let g(x)=x6+x5+x4+x3+x2+x+1. The 7-cyclotomic codes of length 6ps over R2 (i.e., ideals of R2[x]/⟨g(x)ps⟩) are partitioned into four mutually disjoint types:
(1) Type 1: C=⟨0⟩ or C=⟨1⟩.
(2) Type 2: C2(β)=⟨ug(x)β⟩, where 0≤β≤ps−1.
(3) Type 3: C3(β,i,a(x))=⟨g(x)β+ug(x)ia(x)⟩, where ps>β>i≥0, and a(x) is either 0 or a unit in R2[x]/⟨g(x)ps⟩ represented as
a(x)=j=0∑ps−i−1aj(x)g(x)j
with aj(x)∈Fpm[x], deg(aj(x))≤1, and a0(x)=0.
(4) Type 4: C4(β,i,a(x),γ)=⟨g(x)β+ug(x)ia(x),ug(x)γ⟩, where ps>β≥V>γ>i≥0, a(x) is 0 or a unit as defined in Type 3, and V is the minimum integer such that ug(x)V∈C3(β,i,a(x)).
Proof. Under the hypothesis that p≡3(mod7) or p≡5(mod7) with gcd(m,6)=1, the polynomial g(x)=Φ7(x)=x6+x5+x4+x3+x2+x+1 is irreducible over Fpm of degree 6. Thus, the residue field K=Fpm[x]/⟨g(x)⟩≅Fp6m is a degree-6 extension over Fpm. Letting π=g(x)(mod⟨g(x)ps⟩), the ambient ring A=R2[x]/⟨g(x)ps⟩ is canonically isomorphic to the local bivariate quotient algebra:
A≅⟨πps,u2⟩K[π,u],
where u2=0, πps=0, and scalars from K commute with both u and π. The subring S=K[π]/⟨πps⟩ is a finite principal ideal chain ring whose ideals form the unique sequence ⟨0⟩=⟨πps⟩⊊⟨πps−1⟩⊊⋯⊊⟨π⟩⊊⟨1⟩=S. Every element of A has a unique representation as f(π)+uh(π) with f(π),h(π)∈S. Consider the canonical projection ϕ:A→S given by ϕ(f(π)+uh(π))=f(π). For any ideal C⊆A, the residue submodule Res(C)=ϕ(C)=⟨πβ⟩ and the torsion submodule Tor(C)={h(π)∈S∣uh(π)∈C}=⟨πγ⟩ are ideals of S, defined by unique integers β,γ∈{0,1,…,ps}. Because uC⊆C, we have uf(π)∈C for every f(π)∈Res(C), which yields Res(C)⊆Tor(C) and forces γ≤β. We now classify all possible ideals into four disjoint types based on the invariant indices β and γ.
Type 1: If β=ps and γ=ps, then Res(C)=⟨0⟩ and Tor(C)=⟨0⟩, which gives the trivial zero ideal C=⟨0⟩. If β=0, then Res(C)=⟨1⟩=S, meaning C contains an element of the form 1+uh(π) for some h(π)∈S. Since (1+uh(π))(1−uh(π))=1−u2h(π)2=1, the element 1+uh(π) is an invertible unit in A. An ideal containing a unit equals the entire ambient algebra, so C=⟨1⟩. These constitute the two trivial ideals of Type 1.
Type 2: If β=ps and 0≤γ≤ps−1, then Res(C)=⟨0⟩, so every element of C lies in uS. Consequently, C=uTor(C)=u⟨πγ⟩=⟨uπγ⟩. Replacing π with g(x)(mod⟨g(x)ps⟩) gives the principal ideals C2(γ)=⟨ug(x)γ⟩ of Type 2.
Type 3: Assume 0<β<ps. Because Res(C)=⟨πβ⟩, there exists an element g1∈C of the form g1=πβ+uπia(π), where i≥0, and a(π)∈S is either zero or an invertible unit with a(0)=0. If a(π)=0 and i≥β, then multiplying g1 by u gives uπβ∈C, so uπia(π)∈C; subtracting this from g1 yields πβ∈C, which reduces g1 to the case a(π)=0. Thus, we assume β>i≥0 whenever a(π)=0. A torsion element uh(π) belongs to ⟨g1⟩ if and only if (c0(π)+uc1(π))(πβ+uπia(π))=uh(π) for some c0(π),c1(π)∈S. Expanding this equation shows that c0(π)πβ=0, forcing c0(π)=k(π)πps−β, which implies uh(π)=u[k(π)πps−β+ia(π)+c1(π)πβ]. Therefore, the torsion ideal of ⟨g1⟩ is principal and given by Tor(⟨g1⟩)=⟨πV⟩, where V=β if a(π)=0 and V=min{β,ps−β+i} if a(π)=0. When γ=V, we have Tor(C)=Tor(⟨g1⟩). Any arbitrary element c∈C can be written as c=f0(π)g1+uh0(π); since uh0(π)∈Tor(C)=Tor(⟨g1⟩)⊆⟨g1⟩, we obtain c∈⟨g1⟩, so C is a principal ideal of the form C=⟨πβ+uπia(π)⟩. Substituting π=g(x)(mod⟨g(x)ps⟩) gives the codes C3(β,i,a(x)) of Type 3.
Type 4: Assume 0<β<ps and γ<V, with V as defined above. Since Tor(⟨g1⟩)=⟨πV⟩⊊⟨πγ⟩=Tor(C), the primary generator g1=πβ+uπia(π) cannot span the entire torsion submodule of C, necessitating the minimal torsion generator uπγ. If γ≤i, then πi∈⟨πγ⟩=Tor(C), which implies uπia(π)∈C and reduces g1 to πβ (forcing a(π)=0 and V=β), contradicting γ<V; hence, we must have γ>i. Finally, for any c∈C, its projection satisfies ϕ(c)∈Res(C)=⟨πβ⟩, so there exists f(π)∈S such that c−f(π)g1∈ker(ϕ)∩C=uTor(C)=⟨uπγ⟩, confirming that c∈⟨g1,uπγ⟩. Hence, C is minimally generated by two elements:
C=⟨πβ+uπia(π),uπγ⟩,
subject to the strict condition ps>β≥V>γ>i≥0. Substituting π=g(x)(mod⟨g(x)ps⟩) yields the non-principal codes C4(β,i,a(x),γ) of Type 4.
Because the invariant pair (β,γ) and the unit status of a(π) uniquely characterize the residue and torsion submodules of C, the four types are mutually disjoint and exhaust all ideals of A. ■
Proposition 3.3. Let g(x)=x6+x5+x4+x3+x2+x+1. The index parameter V=min{k∈N∣ug(x)k∈⟨g(x)β+ug(x)ia(x)⟩} is given explicitly by
V={β,min{β,ps−β+i},ifa(x)=0ifa(x)=0
Proof. If a(x)=0, the generator is g(x)β. Multiplying by u gives ug(x)β∈C, so V=β. If a(x)=0, a(x) is a unit. Multiplying g(x)β+ug(x)ia(x) by u yields ug(x)β∈C, showing V≤β. Furthermore, multiplying by g(x)ps−β yields
g(x)ps+ug(x)ps−β+ia(x)≡ug(x)ps−β+ia(x)(modg(x)ps)
Since a(x) is invertible, ug(x)ps−β+i∈C, which implies V≤ps−β+i. Minimal linear dependence over Fpm[x] establishes V=min{β,ps−β+i}.
For completeness, we recall the classification of cyclic codes of length ps over R2 established by Dinh [11].
3.2. Enumeration of Codewords via Residue and Torsion Code Techniques
To compute the precise size ∣C∣ of a code C over R2, we employ the residue and torsion code maps. For a linear code C of length n over R2, its residue code Res(C) and torsion code Tor(C) are subcodes over Fpm defined as:
Theorem 3.4. Let C be a linear code of length n over R2. Then
∣C∣=∣Res(C)∣⋅∣Tor(C)∣.
Proof. The proof follows directly from the First Isomorphism Theorem applied to the projection map ϕ:C→Res(C), whose kernel is isomorphic to Tor(C). Taking dimensions over Fpm gives dimFpm(C)=dimFpm(Res(C))+dimFpm(Tor(C)), from which the cardinality identity follows immediately.
Lemma 3.5. Let C be a 7-cyclotomic code of length 6ps over R2. The residue code Res(C) and torsion code Tor(C) are ideals of Fpm[x]/⟨g(x)ps⟩, determined as follows:
(1) Type1: If C=⟨0⟩, Res(C)=Tor(C)=⟨0⟩. If C=⟨1⟩, Res(C)=Tor(C)=⟨1⟩.
(2) Type2: If C=⟨ug(x)β⟩ ( 0≤β≤ps−1), then Res(C)=⟨0⟩ and Tor(C)=⟨g(x)β⟩.
(3) Type3: If C=⟨g(x)β+ug(x)ia(x)⟩ ( ps>β>i≥0), then Res(C)=⟨g(x)β⟩ and Tor(C)=⟨g(x)V⟩, where V=β if a(x)=0 and V=min{β,ps−β+i} if a(x)=0.
(4) Type4: If C=⟨g(x)β+ug(x)ia(x),ug(x)γ⟩ ( γ<V), then Res(C)=⟨g(x)β⟩ and Tor(C)=⟨g(x)γ⟩.
For any ideal ⟨g(x)k⟩⊆Fpm[x]/⟨g(x)ps⟩ (where deg(g(x))=6), the size of the corresponding cyclic code over Fpm is ∣⟨g(x)k⟩∣=p6m(ps−k). Combining Theorem 3.4 and Lemma 3.5 yields the exact codeword counts.
The proof of the following theorem proceeds analogously to that of Lemma 2.3 in [12]. So its proof is omitted.
Theorem 3.6. Let C be a 7-cyclotomic code of length 6ps over R2. The cardinality nC=∣C∣ is given by:
(1) If C=⟨0⟩, then nC=1.
(2) If C=⟨1⟩, then nC=p12mps.
(3) If C=⟨ug(x)β⟩ ( 0≤β≤ps−1), then nC=p6m(ps−β).
(4) If C=⟨g(x)β⟩ ( 1≤β≤ps−1), then nC=p12m(ps−β).
(5) If C=⟨g(x)β+ug(x)ia(x)⟩ with a(x) invertible, then
(6) If C=⟨g(x)β+ug(x)ia(x),ug(x)γ⟩, then nC=p6m(2ps−β−γ).
By Proposition 3.1, the cardinality of any cyclic code C=C1⊕C2 of length 7ps over R2 is nC=nC1nC2, where nC1 and nC2 are given by Theorems 3.6 and 2.8. For matched component parameters, nC is evaluated as follows.
Theorem 3.7. Let C=C1⊕C2 be a cyclic code of length 7ps over R2=Fpm+uFpm. Then ∣C∣=∣C1∣⋅∣C2∣. In particular, for matched component code types with identical parameters, the cardinality nC=∣C∣ is given by:
(1) If C=⟨0⟩, then nC=1.
(2) If C=⟨1⟩, then nC=p14mps.
(1) If C=C2′(β)⊕C2(β) for 0≤β≤ps−1, then nC=p7m(ps−β).
(3) If C=C3′(β,0,0)⊕C3(β,0,0)=⟨g′(x)β⟩⊕⟨g(x)β⟩ for 1≤β≤ps−1, then nC=p14m(ps−β).
(4) If C=C3′(β,i,a(x))⊕C3(β,i,a(x)) with ps>β>i≥0 and a(x)∈R2[x]×, then
(5) If C=C4′(β,i,a(x),γ)⊕C4(β,i,a(x),γ) with γ<min{β,ps−β+i}, then nC=p7m(2ps−β−γ).
Proof. By Proposition 3.1, any cyclic code C of length 7ps over R2 satisfies C≅C1⊕C2 as R2-modules, where C1 is a cyclic code of length ps over R2 and C2 is a 7-cyclotomic code of length 6ps over R2. Consequently, the total cardinality satisfies ∣C∣=∣C1∣⋅∣C2∣=nC1⋅nC2.
(1): C=⟨0⟩.
Here, C1=⟨0⟩⊆R2[x]/⟨g′(x)ps⟩ and C2=⟨0⟩⊆R2[x]/⟨g(x)ps⟩. By Theorem 3.6 and 2.8, nC1=1 and nC2=1. Thus, nC=nC1⋅nC2=1⋅1=1.
(2): C=⟨1⟩.
Here, C1=⟨1⟩ and C2=⟨1⟩. By Theorem 3.6 and 2.8, nC1=p2mps and nC2=p12mps. Therefore, nC=p2mps⋅p12mps=p(2m+12m)ps=p14mps.
(3): C=C2′(β)⊕C2(β) for 0≤β≤ps−1.
The components are C1=⟨ug′(x)β⟩ and C2=⟨ug(x)β⟩. By Lemma 3.5 and its ps-analog, Res(C1)=Res(C2)=⟨0⟩, while Tor(C1)=⟨g′(x)β⟩⊆Fpm[x]/⟨g′(x)ps⟩ and Tor(C2)=⟨g(x)β⟩⊆
Fpm[x]/⟨g(x)ps⟩. Since deg(g′(x))=1 and deg(g(x))=6, we have nC1=∣Tor(C1)∣=pm(ps−β) and nC2=∣Tor(C2)∣=p6m(ps−β). Hence, nC=pm(ps−β)⋅p6m(ps−β)=p7m(ps−β).
(4): C=C3′(β,0,0)⊕C3(β,0,0)=⟨g′(x)β⟩⊕⟨g(x)β⟩ for 1≤β≤ps−1.
For a(x)=0, Lemma 3.5 gives Res(C1)=⟨g′(x)β⟩, Tor(C1)=⟨g′(x)β⟩, Res(C2)=⟨g(x)β⟩, and Tor(C2)=⟨g(x)β⟩. Application of Theorem 3.4 yields nC1=pm(ps−β)⋅pm(ps−β)=p2m(ps−β) and nC2=p6m(ps−β)⋅p6m(ps−β)=p12m(ps−β). Thus, nC=p2m(ps−β)⋅p12m(ps−β)=p14m(ps−β)
(5): C=C3′(β,i,a(x))⊕C3(β,i,a(x)) with ps>β>i≥0 and a(x)∈R2[x]×.
By Lemma 3.5, Res(C1)=⟨g′(x)β⟩, Tor(C1)=⟨g′(x)V⟩, Res(C2)=⟨g(x)β⟩, and Tor(C2)=⟨g(x)V⟩, where V=min{β,ps−β+i}. By Theorem 3.4, nC1=pm(2ps−β−V) and nC2=p6m(2ps−β−V), giving nC=p7m(2ps−β−V). We evaluate V under two subcases:
• If 1≤β≤⌊2ps+i⌋, then β≤ps−β+i, so V=β. Substituting V=β yields nC=p7m(2ps−2β)=p14m(ps−β)
• If ⌊2ps+i⌋<β≤ps−1, then ps−β+i<β, so V=ps−β+i. Substituting V yields nC=p7m(2ps−β−(ps−β+i))=p7m(ps−i)
(6): C=C4′(β,i,a(x),γ)⊕C4(β,i,a(x),γ) with γ<V=min{β,ps−β+i}.
By Lemma 3.5, the residue and torsion codes are Res(C1)=⟨g′(x)β⟩, Tor(C1)=⟨g′(x)γ⟩, Res(C2)=⟨g(x)β⟩, and Tor(C2)=⟨g(x)γ⟩. Applying Theorem 3.4 yields nC1=pm(ps−β)⋅pm(ps−γ)=pm(2ps−β−γ) and nC2=p6m(ps−β)⋅p6m(ps−γ)=p6m(2ps−β−γ). Therefore, nC=pm(2ps−β−γ)⋅p6m(2ps−β−γ)=p7m(2ps−β−γ)
3.3. Dual Codes of 7-Cyclotomic and Cyclic Codes
The structural behavior of dual codes over R2[x]/⟨f(x)ps⟩ depends intrinsically on whether f(x) is self-reciprocal. For the two primary factors of x7ps−1:
The 7-th cyclotomic polynomial g(x)=Φ7(x)=x6+x5+x4+x3+x2+x+1 is self-reciprocal, i.e., gR(x)=g(x).
The linear factor g′(x)=x−1 satisfies gR′(x)=1−x=−g′(x), introducing alternating sign factors (−1)k into the annihilator generators.
Since R2[x]/⟨f(x)ps⟩ is a finite self-dual ring algebra, any ideal C satisfies the fundamental cardinality identity ∣C∣⋅∣C⊥∣=∣R2[x]/⟨f(x)ps⟩∣. We utilize this relation alongside annihilator containment to derive explicit dual generators.
3.3.1. Dual Codes of 7-Cyclotomic Codes of Length 6ps
We first examine 7-cyclotomic codes over R2[x]/⟨g(x)ps⟩. For Type 1 (trivial codes) and Type 2 (pure torsion codes), the dual structures follow directly from the orthogonal properties of the nilpotent element u.
Proposition 3.8. Let g(x)=x6+x5+x4+x3+x2+x+1. The duals of Type 1 and Type 2 7-cyclotomic codes over R2 are given as follows:
(1) Type 1: ⟨0⟩⊥=⟨1⟩ and ⟨1⟩⊥=⟨0⟩.
(2) Type 2: For 0≤β≤ps−1, (C2(β))⊥=(⟨ug(x)β⟩)⊥=⟨g(x)ps−β,u⟩
=C4(ps−β,0,0,0)
Proof. (1): This follows immediately from the definition of dual space.
(2): Let f(x)=a(x)+ub(x)∈(C2(β))⊥. Multiplying f(x) by the generator ug(x)β yields ug(x)βa(x)≡0(modg(x)ps). Since g(x) is irreducible over Fpm, g(x)ps−β divides a(x), implying a(x)∈⟨g(x)ps−β⟩. Thus f(x)∈⟨g(x)ps−β,u⟩, so (C2(β))⊥⊆⟨g(x)ps−β,u⟩.
Conversely, for any h(x)=k1(x)g(x)ps−β+uk2(x)∈⟨g(x)ps−β,u⟩, direct calculation shows ug(x)βh(x)≡0(modg(x)ps). Hence ⟨g(x)ps−β,u⟩⊆(C2(β))⊥, completing the proof.
For single-generator codes of Type 3 containing a non-zero unit part ug(x)ia(x), the dual generator transitions between a single-generator and a two-generator form depending on whether 2β−i exceeds the ambient nilpotency bound ps.
Proposition 3.9. Let C3(β,i,a(x))=⟨g(x)β+ug(x)ia(x)⟩ be a Type 3 7-cyclotomic code over R2. Its dual code C3⊥ is determined as follows:
since 2β−i≥ps and πtG(π)≡a(π)(modπps−i). Thus, h(π)∈Ann(C3)=C3⊥.
To determine the cardinality ∣⟨h(π)⟩∣, note that ⟨h(π)⟩ has residue generator πβ−i and torsion generator πV, where V=min{β−i,ps−β+i+t}. Since t=0 and ps≤2β−i, we have V=ps−β+i. Applying Theorem 3.4, we obtain that ∣⟨h(π)⟩∣=p6m(ps−(β−i))⋅p6m(ps−(ps−β+i))=p6m(2β−i). By Theorem 3.6, ∣C3∣=p6m(2ps−2β+i). Consequently,
∣C3∣⋅∣⟨h(π)⟩∣=p6m(2ps−2β+i)⋅p6m(2β−i)=p12mps
Since ∣C3∣⋅∣C3⊥∣=p12mps, size matching confirms C3⊥=⟨h(π)⟩=C3(β−i,t,−G(x)).
Corollary 3.10. Let C3(β,i,a(x)) be a Type 3 7-cyclotomic code over R2 with ps>β>i≥0. Then C3⊥⊆C3 if and only if one of the following conditions holds:
(1) a(x)=0 and β≤⌊2ps⌋.
(2) a(x)=0, ps≥2β−i, and ps+t≥2β.
Proof. For Type 3 codes, C3(β2,i2,a2(x))⊆C3(β1,i1,a1(x)) if and only if β2≥β1 and i2≥i1. Applying Proposition 3.9 we have the followings:
(1): If a(x)=0, C3⊥=C3(ps−β,0,0)⊆C3(β,0,0) if and only if ps−β≥β if and only if β≤⌊2ps⌋.
(2): Subcase 1: If a(x)=0 and ps≥2β−i, C3⊥=C3(ps−β,ps+i−2β+t,−G(x))⊆C3(β,i,a(x)) if and only if ps−β≥β and ps+i−2β+t≥i if and only if ps+t≥2β.
Subcase 2: If a(x)=0 and ps≤2β−i, C3⊥=C3(β−i,t,−G(x))⊆C3(β,i,a(x)) if and only if β−i≥β if and only if i≤0, which contradicts i>0.
This completes the proof.
We next extend this annihilator construction to two-generator codes of Type 4, where the presence of an explicit secondary torsion generator ug(x)γ imposes additional bounds on the dual parameters.
Proposition 3.11. Let C4(β,i,a(x),γ)=⟨g(x)β+ug(x)ia(x),ug(x)γ⟩ be a Type 4 7-cyclotomic code over R2. Its dual code C4⊥ is determined as follows:
where t and G(x) are defined as in Proposition 3.9.
Proof. Let A=R2[x]/⟨g(x)ps⟩≅K[π,u]/⟨πps,u2⟩, where K=Fp6m and π=g(x)(modg(x)ps). Since gR(x)=g(x), we have C4⊥=Ann(C4) and ∣C4∣⋅∣C4⊥∣=p12mps. By Theorem 3.6, ∣C4∣=p6m(2ps−β−γ).
Case 1: a(x)=0.
Here, C4=⟨πβ,uπγ⟩. Define h1(π)=πps−γ and h2(π)=uπps−β. Evaluating the products with the generators of C4:
The ideal ⟨πps−γ,uπps−β⟩ has residue index ps−γ and torsion index ps−β, so its cardinality is p6m(ps−(ps−γ))⋅p6m(ps−(ps−β))=p6m(β+γ). Since ∣C4∣⋅p6m(β+γ)=p6m(2ps−β−γ)⋅p6m(β+γ)=p12mps, size matching confirms C4⊥=⟨πps−γ,uπps−β⟩=C4(ps−γ,0,0,ps−β).
Case 2: a(x)=0 and ps≥β+γ−i.
Let aR(π)=π6(β−i)a(1/π)=πtG(π), where t and G(π) are defined as in Proposition 3.9. Define h(π)=πps−γ−uπps+i−β−γ+tG(π). Evaluating products with the generators of C4:
since β≥γ implies ps+β−γ≥ps and πtG(π)≡a(π)(modπps−i). Furthermore, h(π)⋅uπγ=uπps−u2πps+i−β+tG(π)≡0(modπps). Hence, h(π)∈Ann(C4)=C4⊥. The code ⟨h(π)⟩ has residue index ps−γ and torsion index ps−β. Its cardinality is ∣⟨h(π)⟩∣=p6m(β+γ). Size matching ∣C4∣⋅∣⟨h(π)⟩∣=p12mps yields C4⊥=⟨πps−γ−uπps+i−β−γ+tG(π)⟩=C3(ps−γ,ps+i−β−γ+t,−G(x)).
Case 3: a(x)=0 and ps≤β+γ−i.
Define h(π)=πβ−i−uπtG(π). Evaluating products with the generators of C4:
since 2β−i>β+γ−i≥ps and πtG(π)≡a(π)(modπps−i). Moreover, h(π)⋅uπγ=uπβ+γ−i−u2πv+γH(π)≡0(modπps), since β+γ−i≥ps. Thus, h(π)∈Ann(C4)=C4⊥.
Evaluating the cardinality of ⟨h(π)⟩ via residue index β−i and torsion index v confirms ∣⟨h(π)⟩∣=p6m(β+γ). Since ∣C4∣⋅∣⟨h(π)⟩∣=p12mps, we conclude that C4⊥=⟨πβ−i−uπtG(π)⟩=C3(β−i,t,−G(x)).
Corollary 3.12. Let C4(β,i,a(x),γ)=⟨g(x)β+ug(x)ia(x),ug(x)γ⟩ be a Type 4 7-cyclotomic code over R2 with γ<min{β,ps−β+i}. Then C4 is self orthogonal if and only if:
(1) If a(x)=0: β+γ≤ps.
(2) If a(x)=0 and ps≥β+γ−i: β+γ≤ps and ps+i−β−2γ+t≥0.
Proof. (1) If a(x)=0, Proposition 3.11 gives C4⊥=C4(ps−γ,0,0,ps−β). Thus, C4⊥⊆C4 if and only if ps−γ≥β and ps−β≥γ, which both simplify to β+γ≤ps.
(2) When a(x)=0, C4⊥ is of Type 3 (a single-generator submodule) which cannot contain the two-generator code C4 without violating minimal generating sets
We now turn to cyclic codes of length ps over R2[x]/⟨g′(x)ps⟩, generated by powers of g′(x)=x−1. Because gR′(x)=1−x=−g′(x), taking reciprocal polynomials maps g′(x)↦−g′(x). This anti-self-reciprocity introduces alternating sign factors (−1)k into the unit parameters of the dual codes.
Proposition 3.13. Let g′(x)=x−1. The dual codes of cyclic codes of length ps over R2 are characterized as follows:
(1) Type 2: For C2′(β)=⟨ug′(x)β⟩ ( 0≤β≤ps−1),
(C2′(β))⊥=C4′(ps−β,0,0,0)=⟨g′(x)ps−β,u⟩
(2) Type 3: For C3′(β,i,a(x))=⟨g′(x)β+ug′(x)ia(x)⟩,
4. Applications: Quantum Error-Correcting and LCD Codes
From an application point of view, we now study some interesting applications of the cyclic codes defined in Section 3. At first Next, we apply the classified 7ps-length cyclic codes and their duals to the construction of quantum error-correcting codes.
4.1. Quantum CSS Construction Framework
Recall from Lemma 2.9 that the Gray map Φ:R2n→Fpm2n preserves Euclidean duality. We restate the CSS framework adapted to the Gray image of codes over R2.
By Proposition 3.1, any cyclic code C of length 7ps over R2 decomposes uniquely as C=C1⊕C2, where C1 is a cyclic code of length ps and C2 is a 7-cyclotomic code of length 6ps over R2. Consequently, C⊥⊆C if and only if C1⊥⊆C1 and C2⊥⊆C2.
Theorem 4.1. Let C=C1⊕C2 be a cyclic code of length 7ps over R2, where C1⊆R2[x]/⟨g′(x)ps⟩ and C2⊆R2[x]/⟨g(x)ps⟩ are matched component codes of the same type. Then the self-orthogonality of C induces an [[14ps,2k0−14ps,dq]]pm quantum stabilizer code over Fpm with ∣C∣=pmk0, in exactly the following cases:
(1) Type 3 with a(x)=0: Let C=C3′(β,0,0)⊕C3(β,0,0)=⟨g′(x)β⟩⊕⟨g(x)β⟩ for 1≤β≤ps−1. Then C is self-orthogonal if and only if β≤⌊ps/2⌋, yielding an [[14ps,14(ps−2β),dq]]pm quantum stabilizer code over Fpm.
(2) Type 3 with a(x)=0: Let C=C3′(β,i,a(x))⊕C3(β,i,a(x)) with ps>β>i≥0 and ps≥2β−i. Then C is self-orthogonal ( C⊥⊆C) if and only if ps+t≥2β, yielding an [[14ps,14(ps−2β),dq]]pm quantum stabilizer code over Fpm.
(3) Type 4 with a(x)=0: Let C=C4′(β,0,0,γ)⊕C4(β,0,0,γ)=⟨g′(x)β,ug′(x)γ⟩⊕⟨g(x)β,ug(x)γ⟩ with ps>β>γ≥0. Then C is self-orthogonal ( C⊥⊆C) if and only if β+γ≤ps, yielding an [[14ps,14(ps−β−γ),dq]]pm quantum stabilizer code over Fpm.
In all other cases of Propositions 3.9 and 3.11, C⊥⊆C, and no dual-containing CSS stabilizer codes can be constructed.
Proof. By Proposition 3.1, C⊥=C1⊥⊕C2⊥⊆C1⊕C2=C if and only if C1⊥⊆C1 and C2⊥⊆C2.
(1): For Type 3 with a(x)=0, Proposition 3.9 gives C2⊥=C3(ps−β,0,0) and (C1′)⊥=C3′(ps−β,0,0). Thus, C⊥⊆C⟺β≤⌊ps/2⌋. By Theorem 3.7, ∣C∣=p14m(ps−β). Applying the Gray map and CSS construction gives N=14ps and K=2(14(ps−β))−14ps=14(ps−2β).
(2): For Type 3 with a(x)=0 and ps≥2β−i, Proposition 3.9 yields C2⊥=C3(ps−β,ps+i−2β+t,−G(x)). Dual containment holds if and only if ps+t≥2β. The cardinality is ∣C∣=p14m(ps−β), which yields K=14(ps−2β). When ps≤2β−i, the dual generator exponent β−i≥β requires i≤0, contradicting i>0; thus C⊥⊆C.
(3): For Type 4 with a(x)=0, Proposition 3.11 gives C2⊥=C4(ps−γ,0,0,ps−β). Hence C⊥⊆C⟺β+γ≤ps. By Theorem 3.7, ∣C∣=p7m(2ps−β−γ), giving k0=7(2ps−β−γ) and K=2(7(2ps−β−γ))−14ps=14(ps−β−γ). When a(x)=0, C4⊥ is of Type 3 (a single-generator submodule) which cannot contain the two-generator code C4 without violating minimal generating sets.
To demonstrate the applicability of these constructions, we provide concrete parameters of quantum stabilizer codes obtained over different base fields Fpm.
Example 4.2. Let p=3, s=1, and m=1. The code length over R2=F3+uF3 is 7ps=21, yielding quantum stabilizer codes of length N=14ps=42 over F3.
Consider the Type 3 matched code C=C3′(1,0,1)⊕C3(1,0,1) over R2. Here β=1, i=0, and a(x)=1. Since a(1/x)=1, we have t=0. Checking the conditions of Theorem 4.1(2):
ps=3≥2β−i=2,ps+t=3≥2β=2.
Both conditions hold, confirming C⊥⊆C. By Theorem 4.1, we obtain a quantum stabilizer code over F3 with parameters:
[[42,14(3−2),dq]]3=[[42,14,dq]]3.
Consider the Type 4 matched code C=C4′(1,0,0,0)⊕C4(1,0,0,0) over R2. Here β=1, γ=0, and a(x)=0. Checking the condition of Theorem 4.1:
β+γ=1+0=1≤ps=3.
The condition holds, confirming C⊥⊆C. By Theorem 4.1, we obtain a quantum stabilizer code over F3 with parameters:
[[42,14(3−1−0),dq]]3=[[42,28,dq]]3.
Example 4.3. Let p=5, s=1, and m=1/[cite:1]. The code length over R2=F5+uF5 is 7ps=35, yielding quantum stabilizer codes of length N=70 over F5. Choosing Type 3 matched codes C=C3′(β,0,0)⊕C3(β,0,0) with a(x)=0 for values of β≤⌊5/2⌋=2, Theorem 4.1 produces quantum stabilizer codes with parameters [[70,14(5−2β),dq]]5:
For β=1: yields a [[70,42,dq]]5 quantum stabilizer code.
For β=2: yields a [[70,14,dq]]5 quantum stabilizer code.
Remark 4.4. In Theorem 4.1 and Table A.1, the minimum distance dq satisfies the standard CSS lower bound dq≥dH(Φ(C))=min{dH(Res(C)),dH(Tor(C))}. While determining the exact minimum distance dq for general repeated-root ring-linear codes is computationally prohibitive, lower bounds can be directly established via the BCH bound applied to the component cyclic subcodes over Fpm.
Further parameters of quantum stabilizer codes constructed across various primes and nilpotency indices are compiled in Appendix Appendix A.
We now study applications of codes given in Section 3 on LCD codes.
Lemma 4.5. Let C be a linear code over R2. Then C is an LCD code over R2 if and only if its Gray image Φ(C) is an LCD code over Fpm.
Proof. By Lemma 2.9, Φ is an Fpm-linear bijection and preserves duality (Φ(C⊥)=Φ(C)⊥. Consequently, Φ(C∩C⊥)=Φ(C)∩Φ(C⊥)=Φ(C)∩Φ(C)⊥.
Since Φ is bijective, C∩C⊥={0} if and only if Φ(C)∩Φ(C)⊥={0}, establishing the equivalence.
Next, we explore the application of the classified 7ps-length cyclic codes to the construction of linear codes with complementary duals (LCD codes). Using the direct sum decomposition C=C1⊕C2, the LCD property decouples into component-wise intersections: C∩C⊥=(C1∩C1⊥)⊕(C2∩C2⊥)={0}.
Theorem 4.6. Let C=C1⊕C2 be a cyclic code of length 7ps over R2.
Trivial codes C=⟨0⟩ and C=⟨1⟩ are LCD codes.
Pure torsion Type 2 codes C=C2′(β)⊕C2(β) are LCD codes over R2 if and only if β=0, in which case C=⟨u⟩.
For Type 3 matched codes C=C3′(β,i,a(x))⊕C3(β,i,a(x)) with a(x)=0, C is an LCD code if and only if β=0 or β=ps.
Proof. We evaluate C∩C⊥={0} for each case: (1): For C=⟨1⟩, C⊥=⟨0⟩, so C∩C⊥={0}.
(2): For C=C2′(β)⊕C2(β), Proposition 3.8 yields C⊥=⟨g′(x)ps−β,u⟩⊕⟨g(x)ps−β,u⟩. Note that u∈C⊥ for all β. Conversely, u∈C if and only if β=0. Thus, C∩C⊥={0} holds if and only if β=0.
(3): For a(x)=0, C=⟨g′(x)β⟩⊕⟨g(x)β⟩ and C⊥=⟨g′(x)ps−β⟩⊕⟨g(x)ps−β⟩. The intersection is C∩C⊥=⟨g′(x)max{β,ps−β}⟩⊕⟨g(x)max{β,ps−β}⟩. This equals {0} if and only if max{β,ps−β}=ps, which implies β=0 or β=ps.
Corollary 4.7. Let C=⟨u⟩⊆R27ps. Then its Gray image Φ(C) is a binary or p-ary linear [14ps,7ps,dH]pm LCD code over Fpm.
Proof. Since C=⟨u⟩=uR27ps, every codeword in C can be uniquely expressed in the form ub for some b∈Fpm7ps. Consequently, the cardinality of C is ∣C∣=pm⋅7ps. By Lemma 2.9, the Gray map Φ is an Fpm-linear bijection, which implies that Φ(C) is a linear code over Fpm of length 2n=2⋅7ps=14ps and dimension is given by k0=dimFpm(Φ(C))=logpm∣C∣=7ps.
Furthermore, by Theorem 4.6(2), the pure torsion code C=C2′(0)⊕C2(0)=⟨u⟩ satisfies C∩C⊥={0} over R2. Applying the duality-preserving property of the Gray map from Lemma 4.5, we obtain Φ(C)∩Φ(C)⊥=Φ(C∩C⊥)=Φ({0})={0}. Hence, Φ(C) is an [14ps,7ps,dH]pm LCD code over Fpm.
Conclusion
In this paper, we presented a complete structural classification and enumeration of cyclic codes of length 7ps over the local chain ring R2=Fpm+uFpm. Under arithmetic conditions guaranteeing the irreducibility of Φ7(x) over Fpm, we established the direct sum decomposition C=C1⊕C2 and classified 7-cyclotomic codes into four disjoint generator-based types. Using residue and torsion code techniques, exact codeword formulas were derived for all classified types. Furthermore, explicit generator expressions for Euclidean dual codes C⊥ were determined. Finally, we demonstrated the operational utility of these ring codes by constructing new families of quantum stabilizer codes via the CSS framework and characterizing linear codes with complementary duals (LCD codes).
Future research may focus on extending this algebraic framework to repeated-root constacyclic codes of length kps for larger primes. Another natural extension is generalizing these code structures and dualities to higher-order nilpotency chain rings Fpm[u]/⟨uq⟩ with q≥3.
Declaration
During the preparation of this manuscript, generative AI and large language model-based writing assistance tools were used solely for LaTeX typesetting assistance and English grammar polishing. All mathematical proofs, derivations, and calculations were independently given by the authors, who take full responsibility for the contents of this work.
References
[1] A. Arnold and M. Monagan, “Calculating cyclotomic polynomials,” Mathematics of Computation, 80 (2011), 2359–2379.
[2] A. R. Calderbank and P. W. Shor, “Good quantum error-correcting codes exist,” Physical Review A, 54(2) (1996), 1098–1105.
[3] A. M. Steane, “Error correcting codes in quantum theory,” Physical Review Letters, 77(5) (1996), 793–797.
[4] M. Atiyah and I. G. Macdonald, Introduction to Commutative Algebra, CRC Press, Boca Raton, 2018.
[5] B. Boudine, J. Laaouine, and M. E. Charkani, “The cyclic codes of length 5ps over Fpm+uFpm and their dual codes,” Mathematical Communications, 27(1) (2022), 127–135.
[6] D.M.Burton, Elementary Number Theory, McGraw Hill, 2010
[7] W. C. Brown, Matrices over Commutative Rings, Marcel Dekker Inc., New York, 1993.
[8] M. E. Charkani and B. Boudine, “On the integral ideals of R[X] when R is a special principal ideal ring,” São Paulo Journal of Mathematical Sciences, 14 (2020), 698–702.
[9] B. Chen, H. Q. Dinh, and H. Liu, “Repeated-root constacyclic codes of length ℓps and their duals,” Discrete Applied Mathematics, 177 (2014), 60–70.
[10] H. Islam, E. Martínez-Moro, and O. Prakash, Cyclic codes over a non-chain ring Re,q and their application to LCD codes, Discrete Mathematics, 344 (2021), Article 112545. DOI: 10.1016/j.disc.2021.112545.
[11] H. Q. Dinh, “Constacyclic codes of length ps over Fpm+uFpm,” Journal of Algebra, 324 (2010), 940–950.
[12] H. Q. Dinh, “Repeated-root constacyclic codes of length 2ps,” Finite Fields and Their Applications, 18 (2012), 133–143.
[13] H. Q. Dinh, “Structure of repeated-root constacyclic codes of length 3ps and their duals,” Discrete Mathematics, 313 (2013), 983–991.
[14] H. Q. Dinh, “On repeated-root constacyclic codes of length 4ps,” Asian-European Journal of Mathematics, 6 (2013), Article 1350020.
[15] H. Q. Dinh and S. R. López-Permouth, “Cyclic and Negacyclic Codes over Finite Chain Rings,” IEEE Transactions on Information Theory, 50 (2004), 1728–1744.
[16] H. M. Kiah, K. H. Leung, and S. Ling, “A note on cyclic codes over GR(p2,m) of length pk,” Designs, Codes and Cryptography, 63 (2012), 105–112.
[17] H. M. Kiah, K. H. Leung, and S. Ling, “Cyclic codes over GR(p2,m) of length pk,” Finite Fields and Their Applications, 14 (2008), 834–846.
[18] J. L. Massey, “Linear codes with complementary duals,” Discrete Mathematics, Vol. 106–107, pp. 337–342, 1992.
[19] S. Ling and C. Xing, Coding Theory: A First Course, Cambridge University Press, Cambridge, 2004.
[20] X. Liu and X. Xu, “Cyclic and negacyclic codes of length 2ps over Fpm+uFpm,” Acta Mathematica Scientia, Series B, 34 (2014), 829–839.
[21] J. Neukirch, Algebraic Number Theory, Springer, Berlin, Heidelberg, 2013.
[22] J. Phuto and C. Klin-Eam, “Explicit constructions of cyclic and negacyclic codes of length 3ps over Fpm+uFpm,” Discrete Mathematics, Algorithms and Applications, 12 (2020), Article 2050063.
[23] E. Prange, Cyclic Error-Correcting Codes in Two Symbols, Air Force Cambridge Research Center, Cambridge, MA, 1957.
[24] E. Prange, “Some Cyclic Error-Correcting Codes with Simple Decoding Algorithms,” Air Force Cambridge Research Center Technical Note TN-58-156, Cambridge, MA, April 1958.
[25] R. Sobhani, “Complete classification of (δ+βu2)-constacyclic codes of length pk over Fpm+uFpm+u2Fpm,” Finite Fields and Their Applications, 34 (2015), 123–138.
[26] H. Wu, L. Zhu, R. Feng, and S. Yang, “Explicit factorizations of cyclotomic polynomials over finite fields,” Designs, Codes and Cryptography, 83 (2017), 197–217.
[27] X. Liu and H. Liu, “LCD codes over finite chain rings,” Finite Fields and Their Applications, Vol. 34, pp. 1–19, 2015.
Appendix A. Computational Verification and Exemplary Quantum Codes
All cyclotomic polynomial factorizations, ideal annihilators, and code cardinalities reported in this section were verified using the MAGMA Computational Algebra System (Version 2.26).
Table A.1 summarizes exemplary parameters of new quantum stabilizer codes constructed via Theorem 4.1 for various choices of p, s, m, and structural parameters.
Table A.1: New Quantum Stabilizer Codes [[N,K,dq]]pm from 7ps-Length Cyclic Codes over R2