Next Article in Journal
Correction: Zou et al. Geometrical Bounds on Irreversibility in Squeezed Thermal Bath. Entropy 2023, 25, 128
Previous Article in Journal
Bayesian Estimation of Multicomponent Stress–Strength Model Using Progressively Censored Data from the Inverse Rayleigh Distribution
Previous Article in Special Issue
Efficient Algorithms for Permutation Arrays from Permutation Polynomials
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Quasi-Cyclic Codes of Index 3

Department of Mathematical Sciences, UAE University, Al Ain P.O. Box 15551, United Arab Emirates
*
Authors to whom correspondence should be addressed.
Entropy 2025, 27(11), 1096; https://doi.org/10.3390/e27111096
Submission received: 23 September 2025 / Revised: 15 October 2025 / Accepted: 16 October 2025 / Published: 23 October 2025
(This article belongs to the Special Issue Discrete Math in Coding Theory, 2nd Edition)

Abstract

Quasi-cyclic codes of index 3 over finite fields are studied. We give a classification of such codes. Their duals with respect to the Euclidean and Hermitian inner products are investigated. We give a characterization of self-orthogonal and dual-containing codes. A quasi-cyclic code of index 3 is generated by at most three elements. We describe conditions when such a code (or its dual) is generated by one element.
MSC:
94B05; 94B15; 94B60

1. Introduction

Quasi-cyclic (QC) codes are an important type of linear codes, which is a generalization of cyclic codes. There are families of QC codes that are asymptotically good [1,2]. Many good codes have been constructed with a better minimum distance than any linear code of the same length and dimension previously constructed. Ling and Solé explored the algebraic structure of QC codes in-depth in a series of articles [3,4,5,6]. In [7,8], the algebraic structure of quasi-cyclic codes was discussed. A class of 1-generator quasi-cyclic codes and their properties were studied in [9]. Some classes of quasi-cyclic codes of index 2 were considered in [10,11,12]. Quasi-cyclic codes of index 2 were fully investigated in [13,14]. Lally [15] presented lower bounds for quasi-cyclic codes. In [16,17], distance bounds for quasi-twisted codes were studied. Aydin et al. [18] studied the structure of 1-generator quasi-twisted codes and constructed some new linear codes. In [19], QC perfect codes in Doob graphs and special partitions of Galois rings were considered.
Dastbasteh and Shivji [20] considered additive cyclic codes over F p 2 that can be considered as an interpretation of QC codes over F p . They computed the symplectic dual of additive codes by decomposing them into components.
Lally [15] presented lower bounds for the minimum distance of quasi-cyclic codes. Semenov and Trifonov [21] introduced a spectral method for quasi-cyclic codes and obtained a BCH-like bound. This has led to several further works on distance bounds, known as spectral bounds, for quasi-cyclic and quasi-twisted codes, e.g., [16,17,22,23,24]. Yet another approach, using the concatenated structure of quasi-cyclic codes, also yields a different type of distance lower bound for quasi-cyclic codes, e.g., [25].
Hermitian duals of one-generator quasi-twisted codes of index 3 were considered in [26]. Shi et al. [27] considered additive cyclic codes over F q 3 under the condition gcd ( m , q ) = 1 .
In this paper we consider QC codes of index 3 in full generality. Unlike other papers, where the condition gcd ( m , q ) = 1 is assumed, we do not have restrictions on the characteristic of the ground field, except for the case of one-generator codes (Theorems 3 and 5). More importantly, this approach is simpler and more powerful. The paper is organized as follows. We recall first in Section 2 definitions and notation concerning quasi-cyclic codes. In Section 3 we give a classification of QC codes of index 3 over finite fields. A QC code of index 3 is generated by at most three elements. We give necessary and sufficient conditions for a QC code to be generated by one element. For this, we do not need extra assumptions such as decomposition of codes into component subcodes, and we only use generators of codes. We describe duals of QC codes with respect to the Euclidean and Hermitian inner products in Section 4 and Section 5, respectively. We study duals of QC codes in a systematic way involving the notion of adjoint maps. Moreover, we describe self-orthogonal and dual-containing QC codes. Finally, in Section 6 we summarize our results.

2. Preliminaries

Let F = F q be a finite field of q elements. A linear code C of length n is a subspace of the vector space F n . The elements of C are called codewords.
Let T be the standard cyclic shift operator on F n . A code is said to be quasi-cyclic (QC) of index if it is invariant under T . We can assume that divides n. If = 1 then the QC code is a cyclic code.
Let R = F [ x ] / x m 1 . We recall that cyclic codes of length m over F can be considered as ideals of R.
Let n = m and let C be a linear QC code of length m and index over R. Let
c = ( c 0 , 0 , c 0 , 1 , , c 0 , 1 , c 1 , 0 , c 1 , 1 , c 1 , 1 , , c m 1 , 0 , c m 1 , 1 , , c m 1 , 1 )
denote a codeword in C. Define a map φ : F m R by
φ ( c ) = ( c 0 ( x ) , c 1 ( x ) , , c 1 ( x ) ) R ,
where
c j ( x ) = c 0 , j + c 1 , j x + c 2 , j x 2 + + c m 1 , j x m 1 R .
The following Lemma is well-known.
Lemma 1
([3,8]). The map φ induces a one-to-one correspondence between linear QC codes over F of index ℓ and length m , and linear codes over R of length ℓ.

3. Quasi-Cyclic Codes of Index 3

The next Theorem gives a description of QC codes over F of index 3.
Theorem 2.
(1) Let C be a QC code of length 3 m and index 3. Then C is generated by three elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) such that they satisfy the following conditions:
g 11 ( x ) ( x m 1 ) , g 22 ( x ) ( x m 1 ) and g 33 ( x ) ( x m 1 ) , deg g 12 ( x ) < deg g 22 ( x ) , deg g 13 ( x ) < deg g 33 ( x ) , deg g 23 ( x ) < deg g 33 ( x ) , g 11 ( x ) g 22 ( x ) ( x m 1 ) g 12 ( x ) , g 22 ( x ) g 33 ( x ) ( x m 1 ) g 23 ( x ) , g 11 ( x ) g 22 ( x ) g 33 ( x ) ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) .
Moreover, in this case dim C = 3 m deg g 11 ( x ) deg g 22 ( x ) deg g 33 ( x ) .
(2) Let code C be generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , and let C be generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , both satisfying Conditions ( ) . Let g 11 ( x ) , g 22 ( x ) , g 33 ( x ) , g 11 ( x ) , g 22 ( x ) g 33 ( x ) be monic polynomials. Then C = C if and only if g 11 ( x ) = g 11 ( x ) , g 22 ( x ) = g 22 ( x ) , g 33 ( x ) = g 33 ( x ) , g 12 ( x ) = g 12 ( x ) , g 12 ( x ) = g 12 ( x ) , g 23 ( x ) = g 23 ( x ) .
Proof. 
(1) By [8] (Theorem 2.1) we can assume that C is generated by three elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying the conditions g 11 ( x ) ( x m 1 ) , g 22 ( x ) ( x m 1 ) and g 33 ( x ) ( x m 1 ) , deg g 12 ( x ) < deg g 22 ( x ) , deg g 13 ( x ) < deg g 33 ( x ) , deg g 23 ( x ) < deg g 33 ( x ) , and dim C = 3 m deg g 11 ( x ) deg g 22 ( x ) deg g 33 ( x ) . Existence of such generators is equivalent [8] (Theorems 2.1 and 2.2) to the existence of a 3 × 3 polynomial matrix ( a i j ) Mat 3 ( F [ x ] ) such that
a 11 ( x ) a 12 ( x ) a 13 ( x ) 0 a 22 ( x ) a 23 ( x ) 0 0 a 33 ( x ) g 11 ( x ) g 12 ( x ) g 13 ( x ) 0 g 22 ( x ) g 23 ( x ) 0 0 g 33 ( x ) = x m 1 0 0 0 x m 1 0 0 0 x m 1 .
Then
a 11 ( x ) = x m 1 g 11 ( x ) , a 22 ( x ) = x m 1 g 22 ( x ) , a 33 ( x ) = x m 1 g 33 ( x ) ,
a 11 ( x ) g 12 ( x ) + a 12 ( x ) g 22 ( x ) = 0 ,
a 22 ( x ) g 23 ( x ) + a 23 ( x ) g 33 ( x ) = 0 ,
a 11 ( x ) g 13 ( x ) + a 12 ( x ) g 23 ( x ) + a 13 ( x ) g 33 ( x ) = 0 .
Therefore,
a 12 ( x ) = ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , a 23 ( x ) = ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , a 13 ( x ) = ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) .
Since a i j ( x ) F [ x ] , the divisibility conditions from ( ) follow.
(2) Consider the projection mappings P 1 : C R , P 1 a 1 ( x ) , a 2 ( x ) , a 3 ( x ) = a 1 ( x ) , and P 12 : C R 2 , P 12 a 1 ( x ) , a 2 ( x ) , a 3 ( x ) = a 1 ( x ) , a 2 ( x ) . Then
dim C = dim P 1 ( C ) + dim ker P 1 = dim P 1 ( C ) + dim P 12 ( ker P 1 ) + dim ker P 12 dim g 11 ( x ) + dim ( 0 , g 22 ( x ) ) + dim ( 0 , 0 , g 33 ( x ) ) = ( m deg g 11 ( x ) ) + ( m deg g 22 ( x ) ) + ( m deg g 33 ( x ) ) .
Since dim C = ( m deg g 11 ( x ) ) + ( m deg g 22 ( x ) ) + ( m deg g 33 ( x ) ) , we have that
dim P 1 ( C ) = m deg g 11 ( x ) , dim P 12 ( ker P 1 ) = m deg g 22 ( x ) , dim ker P 12 = m deg g 33 ( x ) .
Therefore,
P 1 ( C ) = g 11 ( x ) ,
P 12 ( ker P 1 ) = ( 0 , g 22 ( x ) ) ,
ker P 12 = ( 0 , 0 , g 33 ( x ) ) .
Similar statements are true for C , where C = C . Hence, g 11 ( x ) = g 11 ( x ) , g 22 ( x ) = g 22 ( x ) , g 33 ( x ) = g 33 ( x ) .
Further, if ( 0 , g 22 ( x ) , g 23 ( x ) ) C and ( 0 , g 22 ( x ) , g 23 ( x ) ) C , then g 23 ( x ) g 23 ( x ) is divisible by g 33 ( x ) , thus g 23 ( x ) = g 23 ( x ) . Similarly, if ( g 11 ( x ) , g 12 ( x ) , g 13 ( x ) ) C and ( g 11 ( x ) , g 12 ( x ) , g 13 ( x ) ) C , then g 12 ( x ) g 12 ( x ) is divisible by g 22 ( x ) , thus g 12 ( x ) = g 12 ( x ) . Likewise, g 13 ( x ) = g 13 ( x ) . □
Remark 1.
If gcd ( q , m ) = 1 then x m 1 has no multiple roots, thus the condition g 11 ( x ) g 22 ( x ) ( x m 1 ) g 12 ( x ) is equivalent to the condition gcd g 11 ( x ) , g 22 ( x ) g 12 ( x ) , and the condition g 22 ( x ) g 33 ( x ) ( x m 1 ) g 23 ( x ) is equivalent to the condition gcd g 22 ( x ) , g 33 ( x ) g 23 ( x ) .
Theorem 3.
Let gcd ( q , m ) = 1 . Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is generated by one element if and only if g 11 ( x ) g 22 ( x ) g 11 ( x ) g 33 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
Proof. 
Assume that C is generated by g ( x ) , g ( x ) , g ( x ) . Then there exist a ( x ) , b ( x ) and c ( x ) such that
a ( x ) g ( x ) , g ( x ) , g ( x ) g 11 ( x ) , g 12 ( x ) , g 13 ( x ) ( mod x m 1 ) , b ( x ) g ( x ) , g ( x ) , g ( x ) 0 , g 22 ( x ) , g 23 ( x ) ( mod x m 1 ) , c ( x ) g ( x ) , g ( x ) , g ( x ) 0 , 0 , g 33 ( x ) ( mod x m 1 ) .
Then
b ( x ) g 11 ( x ) b ( x ) · a ( x ) g ( x ) b ( x ) g ( x ) · a ( x ) 0 · a ( x ) 0 ( mod x m 1 ) .
Therefore,
g 11 ( x ) g 22 ( x ) g 11 ( x ) · b ( x ) g ( x ) b ( x ) g 11 ( x ) · g ( x ) 0 · g ( x ) 0 ( mod x m 1 ) .
Further,
c ( x ) g 22 ( x ) c ( x ) · b ( x ) g ( x ) b ( x ) · c ( x ) g ( x ) b ( x ) · 0 0 ( mod x m 1 ) .
Hence,
g 22 ( x ) g 33 ( x ) g 22 ( x ) · c ( x ) g ( x ) c ( x ) g 22 ( x ) · g ( x ) 0 · g ( x ) 0 ( mod x m 1 ) .
W.L.G. we can assume that g ( x ) g 11 ( x ) ( mod x m 1 ) . Then
g 11 ( x ) g 33 ( x ) g ( x ) · c ( x ) g ( x ) c ( x ) g ( x ) · g ( x ) 0 · g ( x ) 0 ( mod x m 1 ) .
Conversely, suppose that g 11 ( x ) g 22 ( x ) g 11 ( x ) g 33 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) . Consider QC code C of length 2 m and index 2, generated by elements g 11 ( x ) , g 12 ( x ) and 0 , g 22 ( x ) . Since g 11 ( x ) g 22 ( x ) 0 ( mod x m 1 ) , by [13] we get that C can be generated by one element g 11 ( x ) , g 12 ( x ) . Therefore, C is generated by three elements of the form g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , 0 , 0 , g 23 ( x ) and 0 , 0 , g 33 ( x ) . By equality (3) we have that g 33 ( x ) g 23 ( x ) , so C is generated by two elements g 11 ( x ) , g 12 ( x ) , g 13 ( x ) and g 3 = 0 , 0 , g 33 ( x ) .
Consider
A = x m 1 g 11 ( x ) · g 11 ( x ) , g 12 ( x ) , g 13 ( x ) = 0 , x m 1 g 11 ( x ) g 12 ( x ) , x m 1 g 11 ( x ) g 13 ( x ) .
Since 0 , g 22 ( x ) , g 23 ( x ) C , by equality (2) we have x m 1 g 11 ( x ) g 12 ( x ) = g 22 ( x ) h , where h R . Since 0 , g 22 ( x ) C = g 11 ( x ) , g 12 ( x ) , we have h R * . Then
h 1 A = 0 , g 22 ( x ) , x m 1 g 11 ( x ) g 13 ( x ) h 1 C .
Consider QC code C of length 2 m and index 2, generated by elements g 22 ( x ) , x m 1 g 11 ( x ) g 13 ( x ) h 1 and 0 , g 33 ( x ) . Since g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) , by [13] we get that C can be generated by one element g 22 ( x ) , x m 1 g 11 ( x ) g 13 ( x ) h 1 + α g 33 ( x ) h 1 = h 1 x m 1 g 11 ( x ) g 12 ( x ) , x m 1 g 11 ( x ) g 13 ( x ) + α g 33 ( x ) for some α R . Therefore, C is generated by one element
g 11 ( x ) , g 12 ( x ) , g 13 ( x ) + α g 11 ( x ) g 33 ( x ) x m 1 ,
which completes the proof (note that g 11 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ). □
Example 1.
Let m = 10 , q = 3 . Then x m 1 = p 0 p 1 p 2 p 3 , where p 0 = x 1 , p 1 = x + 1 , p 2 = x 4 + x 3 + x 2 + x + 1 , p 3 = x 4 + 2 x 3 + x 2 + 2 x + 1 . Let C be a code generated by three elements ( p 0 p 1 p 2 , 0 , p 0 p 1 ( x 3 + x 2 + x ) ) , ( 0 , p 2 p 3 , p 3 ) and ( 0 , 0 , p 0 p 1 p 3 ) . Then they satisfy Conditions (*) and by Theorem 3 it is a one-generator code. Indeed, it is generated by ( p 0 p 1 p 2 , x p 2 p 3 , x 2 ) .
In fact, one part of Theorem 3 is valid without restrictions on the characteristic of the ground field. The proof of Theorem 3 suggests the following:
Proposition 4.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . If C is generated by one element then g 11 ( x ) g 22 ( x ) g 11 ( x ) g 33 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
Theorem 5.
Let gcd ( q , m ) = 1 . Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . If C is generated by one element then gcd g 11 ( x ) , g 22 ( x ) , g 33 ( x ) g 13 ( x ) .
Proof. 
As g c d ( q , m ) = 1 , we can write
g 12 ( x ) = a ( x ) · gcd ( g 11 ( x ) , g 22 ( x ) ) ,
g 23 ( x ) = b ( x ) · gcd ( g 22 ( x ) , g 33 ( x ) ) .
As C is generated by one element, we have
g 11 ( x ) g 22 ( x ) g 11 ( x ) g 33 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
Hence,
g 11 ( x ) g 22 ( x ) = ( x m 1 ) gcd ( g 11 ( x ) , g 22 ( x ) ) .
From (*) we obtain the following:
g 11 ( x ) g 22 ( x ) g 33 ( x ) | ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) ( x m 1 ) gcd ( g 11 ( x ) , g 22 ( x ) ) g 33 ( x ) | ( x m 1 ) ( a ( x ) gcd ( g 11 , g 22 ) b ( x ) gcd ( g 22 , g 33 ) g 13 g 22 ) g 33 ( x ) | a ( x ) b ( x ) gcd ( g 22 ( x ) , g 33 ( x ) ) g 13 ( x ) g 22 ( x ) gcd ( g 11 ( x ) , g 22 ( x ) )
Therefore,
a ( x ) b ( x ) gcd ( g 22 ( x ) , g 33 ( x ) ) g 13 ( x ) g 22 ( x ) gcd ( g 11 ( x ) , g 22 ( x ) ) = c ( x ) g 33 ( x )
g 13 ( x ) g 22 ( x ) gcd ( g 11 ( x ) , g 22 ( x ) ) = a ( x ) b ( x ) gcd ( g 22 ( x ) , g 33 ( x ) ) c ( x ) g 33 ( x )
Note that
g 22 ( x ) gcd ( g 11 ( x ) , g 22 ( x ) ) = x m 1 g 11 ( x ) ,
gcd ( g 22 ( x ) , g 33 ( x ) ) = x m 1 g 11 ( x ) gcd ( g 11 ( x ) , g 22 ( x ) , g 33 ( x ) ) ,
g 33 ( x ) = x m 1 g 11 ( x ) gcd ( g 11 ( x ) , g 33 ( x ) ) .
Now, divide both sides in (4) by (5). Applying (6) and (7), we have
g 13 ( x ) = a ( x ) b ( x ) gcd ( g 11 ( x ) , g 22 ( x ) , g 33 ( x ) ) c ( x ) gcd ( g 11 ( x ) , g 33 ( x ) ) .
As gcd ( g 11 ( x ) , g 22 ( x ) , g 33 ( x ) ) gcd ( g 11 ( x ) , g 33 ( x ) ) , for some polynomial d ( x ) we have
g 13 ( x ) = d ( x ) gcd ( g 11 ( x ) , g 22 ( x ) , g 33 ( x ) )
Hence,
gcd ( g 11 ( x ) , g 22 ( x ) , g 33 ( x ) ) g 13 ( x ) ,
which completes the proof. □

4. Euclidean Duals of Quasi-Cyclic Codes

Let f ( x ) = a 0 + a 1 x + a 2 x + + a k x k be a polynomial of degree k. Then the reciprocal polynomial of a ( x ) is the polynomial
f ( x ) * = x deg f f ( x 1 ) = a k + a k 1 x + + a 0 x k .
Let f ( x ) = a 0 + a 1 x + + a m 1 x m 1 + a m x m , where m is as before, i.e., R = F [ x ] / x m 1 . We define the transpose polynomial  f ( x ) of f ( x ) as
f ( x ) = x m f ( x 1 ) = a m + a m 1 x + + a 2 x m 2 + a 1 x m 1 + a 0 x m .
Lemma 6.
(1) If deg f ( x ) m then
f ( x ) = x m deg f f ( x ) * ,
f ( x ) ( a 0 + a m ) + a m 1 x + + a 2 x m 2 + a 1 x m 1 ( mod x m 1 ) .
(2) If deg f ( x ) h ( x ) m then
x m f ( x ) h ( x ) = f ( x ) h ( x ) ,
f ( x ) h ( x ) f ( x ) h ( x ) ( mod x m 1 ) .
Proof. 
We have
f ( x ) = x m f ( x 1 ) = x m deg f x deg f f ( x 1 ) = x m deg f f ( x ) * ,
x m f ( x ) h ( x ) = x m x m f ( x 1 ) h ( x 1 ) = f ( x ) h ( x ) ,
which proves the lemma. □
We recall the standard inner product on the space R = F [ x ] / x m 1 . Let a ( x ) = a 0 + a 1 x + + a m 1 x m 1 and b ( x ) = b 0 + b 1 x + + b m 1 x m 1 . Then the Euclidean inner product on R is defined as
a ( x ) , b ( x ) e = a 0 b 0 + a 1 b 1 + + a m 1 b m 1 .
It is consistent with the standard dot product between vectors ( a 0 , a 1 , , a m 1 ) and ( b 0 , b 1 , , b m 1 ) .
Lemma 7
([10]). Let a ( x ) , b ( x ) , c ( x ) be polynomials in R. Then
c ( x ) a ( x ) , b ( x ) e = a ( x ) , c ( x ) b ( x ) e .
Proof. 
It is sufficient to prove the statement for c ( x ) = x k . We have to show that
x k a ( x ) , b ( x ) e = a ( x ) , x m k b ( x ) e ,
which is equivalent to the equality
i = 0 m 1 a i k b i = i = 0 m 1 a i b i + k ,
where indices are considered modulo m. □
Remark 2.
Lemma 7 explains why c ( x ) is called the transpose polynomial for c ( x ) . Recall that if φ is an endomorphism of a vector space R, then the adjoint φ of φ is defined by the equation φ ( a ) , b e = a , φ ( b ) e . For symmetric inner products, in the matrix presentation, the adjoint of a matrix is the transpose of the matrix. If we consider the multiplication by c ( x ) as an endomorphism of R, then its adjoint is the multiplication by c ( x ) .
Lemma 8.
For f ( x ) F [ x ] , the following statements hold:
(1) If f ( x ) divides x m 1 , then f ( x ) divides x m ( 1 x m ) .
(2) If f ( x ) divides x m 1 , then
x m 1 f ( x ) = x m ( 1 x m ) f ( x ) .
(3) If deg g 12 ( x ) < deg g 22 ( x ) and g 11 ( x ) g 22 ( x ) divides ( x m 1 ) g 12 ( x ) , then
( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) = x m ( 1 x m ) g 12 ( x ) g 11 ( x ) g 22 ( x ) .
(4) If deg g 12 ( x ) < deg g 22 ( x ) , deg g 23 ( x ) < deg g 33 ( x ) , deg g 13 ( x ) < deg g ( x ) and g 11 ( x ) g 22 ( x ) g 33 ( x ) divides ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) , then
( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) = x m ( 1 x m ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) .
Proof. 
We have
x m 1 f ( x ) = x m ( 1 / x ) m 1 f ( x 1 ) = x m 1 x m x m f ( x 1 ) = x m ( 1 x m ) f ( x ) .
Let h ( x ) · g 11 ( x ) g 22 ( x ) = ( x m 1 ) g 12 ( x ) . Then deg h ( x ) < m and
x m h ( 1 / x ) · x m g 11 ( 1 / x ) x m g 22 ( 1 / x ) = x m x m ( ( 1 / x ) m 1 ) x m g 12 ( 1 / x ) , h ( x ) · g 11 ( x ) g 22 ( x ) = x m ( 1 x m ) g 12 ( x ) .
Let r ( x ) · g 11 ( x ) g 22 ( x ) g 33 ( x ) = ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) . Then deg r ( x ) < m and
x m r ( 1 / x ) · x m g 11 ( 1 / x ) x m g 22 ( 1 / x ) x m g 22 ( 1 / x ) = x m x m ( ( 1 / x ) m 1 ) x m ( g 12 ( 1 / x ) g 23 ( 1 / x ) g 13 ( 1 / x ) g 22 ( 1 / x ) ) , r ( x ) · g 11 ( x ) g 22 ( x ) g 33 ( x ) = x m ( 1 x m ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) .
Thus the lemma follows. □
Remark 3.
If f ( x ) ( x m 1 ) , then f ( x ) * ( x m 1 ) . However, f ( x ) might not divide x m 1 , but it divides x m ( x m 1 ) . For example, let m = 7 , q = 2 . Then x 7 1 = ( x + 1 ) ( x 3 + x 2 + 1 ) ( x 3 + x + 1 ) . Let f ( x ) = x 3 + x + 1 . Then f ( x ) ( x m 1 ) , f ( x ) = x 7 + x 6 + x 4 = x 4 ( x 3 + x 2 + 1 ) ( x m 1 ) , but f ( x ) x m ( x m 1 ) .
The inner product (8) can be naturally extended to QC codes of length n = 3 m and index 3:
a ( x ) , b ( x ) , c ( x ) , a ( x ) , b ( x ) , c ( x ) e = a ( x ) , a ( x ) e + b ( x ) , b ( x ) e + c ( x ) , c ( x ) e .
If C is a code in F n , then its Euclidean dual code is
C e = { u F n u , v = 0 , for all v C } .
The code C is called Euclidean self-orthogonal if C C e , and Euclidean dual-containing if C C e .
Theorem 9.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then its Euclidean dual code C e is generated by three elements
f 1 = x m ( x m 1 ) g 11 ( x ) , 0 , 0 ,
f 2 = x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 ,
f 3 = x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) .
Equivalently, Euclidean dual code C e is generated by three elements
h 3 = ( h 33 , 0 , 0 ) = x m 1 g 11 ( x ) * , 0 , 0 , h 2 = ( h 23 , h 22 , 0 ) = x m + deg g 11 deg g 12 ( x m 1 ) g 12 ( x ) * g 11 ( x ) * g 22 ( x ) * , x m 1 g 22 ( x ) * , 0 ,
h 1 = ( h 13 , h 12 , h 11 ) =       ( x m 1 ) ( x m + deg g 11 deg g 12 + deg g 22 deg g 23 g 12 ( x ) * g 23 ( x ) * x m + deg g 11 deg g 13 g 13 ( x ) * g 22 ( x ) * ) g 11 ( x ) * g 22 ( x ) * g 33 ( x ) * , ( x m 1 ) x m + deg g 22 deg g 23 g 23 ( x ) * g 22 ( x ) * g 33 ( x ) * , x m 1 g 33 ( x ) * .
Proof. 
First of all, we show that two generator sets generate the same code:
x m ( x m 1 ) g 11 ( x ) , 0 , 0 = x m 1 g 11 ( x ) * , 0 , 0 x deg g 11 ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0      x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) x m , x m ( x m 1 ) g 22 ( x ) , 0 ( mod x m 1 )      x m + deg g 11 deg g 12 ( x m 1 ) g 12 ( x ) * g 11 ( x ) * g 22 ( x ) * , x m 1 g 22 ( x ) * , 0 x deg g 22 ( mod x m 1 ) .
x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) x m ,        x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) x m , x m ( x m 1 ) g 33 ( x ) ( mod x m 1 ) ( x m 1 ) ( x m + deg g 11 deg g 12 + deg g 22 deg g 23 g 12 ( x ) * g 23 ( x ) * x m + deg g 11 deg g 13 g 13 ( x ) * g 22 ( x ) * ) g 11 ( x ) * g 22 ( x ) * g 33 ( x ) * ,        ( x m 1 ) x m + deg g 22 deg g 23 g 23 ( x ) * g 22 ( x ) * g 33 ( x ) * , x m 1 g 33 ( x ) * x deg g 33 ( mod x m 1 ) .
Let C be a code generated by elements f 1 , f 2 , and f 3 . We show that C C e . We need to show that a ( x ) g i , b ( x ) f j e = 0 for all a ( x ) , b ( x ) R and i , j = 1 , 2 , 3 . Let us show that a ( x ) g 3 , b ( x ) f 2 e = 0 (other cases are similar). By Lemmas 7 and 8 we have
a ( x ) g 3 , b ( x ) f 2 e =     a ( x ) g 11 , b ( x ) ( x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) ) e + a ( x ) g 12 ( x ) , b ( x ) x m ( x m 1 ) g 22 ( x ) , e =     a ( x ) g 11 ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , b ( x ) e a ( x ) g 12 ( x ) x m 1 g 22 ( x ) , b ( x ) e = 0 .
Thus C C e . We will show now that dim C = dim C e . Note that
dim C e = 3 m dim C = deg g 11 ( x ) + deg g 22 ( x ) + deg g 33 ( x ) .
Generators h 1 , h 2 , h 3 of the code C satisfy conditions of Theorem 2 (by interchanging coordinate positions 1 and 3 of codewords). Indeed, h 11 h 22 ( x m 1 ) h 12 , h 22 h 33 ( x m 1 ) h 23 ( x m 1 ) h 23 , etc. Therefore, by Theorem 2
dim C = 3 m deg h 11 ( x ) deg h 22 ( x ) deg h 33 ( x ) = deg g 11 ( x ) + deg g 22 ( x ) + deg g 33 ( x ) .
Hence, C = C e , and theorem is proved. □
Example 2.
Let m = 13 , q = 3 , Then x m 1 = p 0 p 1 p 2 p 3 , where p 0 = x 1 , p 1 = x 3 + 2 x + 2 , p 2 = x 3 + x 2 + 2 , p 3 = x 3 + x 2 + x + 2 , p 4 = x 3 + 2 x 2 + 2 x + 2 . Let C be a code generated by three elements ( p 0 p 1 , p 0 ( x 2 + x + 2 ) , p 0 3 ( x 2 + x + 2 ) ( x 4 + x 3 + 2 ) ) , ( 0 , p 0 p 2 p 3 p 4 , x 2 p 0 p 2 p 3 p 4 ) and ( 0 , 0 , x m 1 ) . By Theorem 9 the dual code C e is generated by three elements ( p 1 p 3 p 4 , 0 , 0 ) , ( 2 x 3 + x 2 + x , p 2 , 0 ) and ( 2 x 12 + x 11 + 2 x 10 + 2 x 8 + 1 , 2 x 11 , 1 ) .
Now, we investigate conditions for C to be Euclidean self-orthogonal.
Theorem 10.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is Euclidean self-orthogonal if and only if the following conditions hold:
(1) g 11 ( x ) g 11 ( x ) + g 12 ( x ) g 12 ( x ) + g 13 ( x ) g 13 ( x ) 0 ( mod x m 1 ) ;
(2) g 12 ( x ) g 22 ( x ) + g 13 ( x ) g 23 ( x ) 0 ( mod x m 1 ) ;
(3) g 13 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ;
(4) g 22 ( x ) g 22 ( x ) + g 23 ( x ) g 23 ( x ) 0 ( mod x m 1 ) ;
(5) g 23 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ;
(6) g 33 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
Proof. 
Euclidean self-orthogonality of C means that
g 1 , b ( x ) g 1 e = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , b ( x ) g 11 ( x ) , g 12 ( x ) , g 13 ( x ) ) e = 0 ,
g 1 , b ( x ) g 2 e = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , b ( x ) 0 , g 22 ( x ) , g 23 ( x ) ) e = 0 ,
g 1 , b ( x ) g 3 e = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , b ( x ) 0 , 0 , g 33 ( x ) ) e = 0 ,
g 2 , b ( x ) g 2 e = 0 , g 22 ( x ) , g 23 ( x ) , b ( x ) 0 , g 22 ( x ) , g 23 ( x ) ) e = 0 ,
g 2 , b ( x ) g 3 e = 0 , g 22 ( x ) , g 23 ( x ) , b ( x ) 0 , 0 , g 33 ( x ) ) e = 0 ,
g 3 , b ( x ) g 3 e = 0 , 0 , g 33 ( x ) , b ( x ) 0 , 0 , g 33 ( x ) ) e = 0 ,
for any b ( x ) R . This is equivalent to
g 11 ( x ) g 11 ( x ) + g 12 ( x ) g 12 ( x ) + g 13 ( x ) g 13 ( x ) , b ( x ) e = 0 ,
g 12 ( x ) g 22 ( x ) + g 13 ( x ) g 23 ( x ) , b ( x ) e = 0 ,
g 13 ( x ) g 33 ( x ) , b ( x ) e = 0 ,
g 22 ( x ) g 22 ( x ) + g 23 ( x ) g 23 ( x ) , b ( x ) e = 0 ,
g 23 ( x ) g 33 ( x ) , b ( x ) e = 0 ,
g 33 ( x ) g 33 ( x ) , b ( x ) e = 0 ,
for any b ( x ) R , which proves the theorem. □
Example 3.
Let C be the code from Example 2. Then C is an Euclidean self-orthogonal [ 39 , 12 , 15 ] -code (computed by Magma [28]. Its dual is a [ 39 , 27 , 6 ] -code, which has the same parameters as Best Known Linear Code (BKLC) [29] (but the code in [29] has a complicated structure.
Similarly, we can give description of Euclidean dual-containing codes.
Theorem 11.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is Euclidean dual-containing if and only if the following conditions hold:
(1) g 11 ( x ) g 11 ( x ) divides x m ( x m 1 ) ;
(2) g 11 ( x ) g 11 ( x ) g 22 ( x ) divides x m ( x m 1 ) g 12 ( x ) ;
(3) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 33 ( x ) divides x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) ;
(4) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) divides x m ( x m 1 ) ( g 11 ( x ) g 11 ( x ) + g 12 ( x ) g 12 ( x ) ) ;
(5) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) g 33 ( x ) divides x m ( x m 1 ) ( g 12 ( x ) g 12 ( x ) g 23 ( x )
g 13 ( x ) g 12 ( x ) g 22 ( x ) g 11 ( x ) g 11 ( x ) g 23 ( x ) ) ;
(6) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) g 33 ( x ) g 33 ( x ) divides
x m ( x m 1 ) ( g 12 ( x ) g 12 ( x ) g 23 ( x ) g 23 ( x ) g 13 ( x ) g 12 ( x ) g 22 ( x ) g 23 ( x ) g 12 ( x ) g 13 ( x ) g 22 ( x ) g 23 ( x ) + g 13 ( x ) g 13 ( x ) g 22 ( x ) g 22 ( x ) + g 11 ( x ) g 11 ( x ) g 23 ( x ) g 23 ( x ) ) .
Proof. 
C is Euclidean dual-containing if and only if C e is Euclidean self-orthogonal. By Theorem 9 it means that
x m ( x m 1 ) g 11 ( x ) , 0 , 0 , x m ( x m 1 ) g 11 ( x ) , 0 , 0 b ( x ) e = 0 ,
x m ( x m 1 ) g 11 ( x ) , 0 , 0 , x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 b ( x ) e = 0 ,
x m ( x m 1 ) g 11 ( x ) , 0 , 0 ,          x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) b ( x ) e = 0 ,
     x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 , x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 b ( x ) e = 0 ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 ,        x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) b ( x ) e = 0 ,
x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) ,        x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) b ( x ) e = 0 ,
for any b ( x ) R . This is equivalent to
x m ( x m 1 ) g 11 ( x ) x m ( x m 1 ) g 11 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 11 ( x ) x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 11 ( x ) x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) + x m ( x m 1 ) g 22 ( x ) x m ( x m 1 ) g 22 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) + x m ( x m 1 ) g 22 ( x ) x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) g 11 ( x ) g 22 ( x ) g 33 ( x ) x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) + x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
i.e.,
x m ( x m 1 ) g 11 ( x ) · ( x m 1 ) g 11 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 11 ( x ) · ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 11 ( x ) ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) · ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) + x m ( x m 1 ) g 22 ( x ) · ( x m 1 ) g 22 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) + x m ( x m 1 ) g 22 ( x ) ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) + x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ,
which proves the theorem. □
In terms of reciprocal polynomials Theorem 10 can be reformulated as follows.
Corollary 12.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is self-orthogonal if and only if the following conditions hold:
(1) x deg g 12 + deg g 13 g 11 ( x ) g 11 ( x ) * + x deg g 11 + deg g 13 g 12 ( x ) g 12 ( x ) * + x deg g 11 + deg g 12 g 13 ( x ) g 13 ( x ) * 0 ( mod x m 1 ) ;
(2) x deg g 23 g 12 ( x ) g 22 ( x ) * + x deg g 22 g 13 ( x ) g 23 ( x ) * 0 ( mod x m 1 ) ;
(3) g 13 ( x ) g 33 ( x ) * 0 ( mod x m 1 ) ;
(4) x deg g 23 g 22 ( x ) g 22 ( x ) * + x deg g 22 g 23 ( x ) g 23 ( x ) * 0 ( mod x m 1 ) ;
(5) g 23 ( x ) g 33 ( x ) * 0 ( mod x m 1 ) ;
(6) g 33 ( x ) g 33 ( x ) * 0 ( mod x m 1 ) .
Example 4.
Let m = 10 , q = 3 , and let C be a code generated by ( g 11 ( x ) , g 12 ( x ) , g 13 ) ( x ) ) , where g 11 ( x ) = 1 , g 12 ( x ) = x 9 + 2 x 8 + x 7 + x 6 + x 5 + 1 , g 13 = 2 x 9 + 2 x 8 + x 7 + x 6 + x 4 + x 3 + x 2 + 1 . Then C is an Euclidean self-orthogonal [ 30 , 10 , 12 ] -code, and its dual is a [ 30 , 20 , 6 ] -code. The code C e is optimal [29].
Example 5.
Let m = 10 , q = 3 . Then x m 1 = p 0 p 1 p 2 p 3 , where p 0 = x 1 , p 1 = x + 1 , p 2 = x 4 + x 3 + x 2 + x + 1 , p 3 = x 4 + 2 x 3 + x 2 + 2 x + 1 . Let C be a code generated by ( g 11 ( x ) , g 12 ( x ) , g 13 ) ( x ) ) , where g 11 ( x ) = p 0 p 1 , g 12 ( x ) = p 0 p 1 ( x 3 + x 2 + x + 2 ) , g 13 = p 0 2 p 1 ( x 5 + 2 x 3 + 2 x 2 + 2 ) . Then C is an Euclidean self-orthogonal [ 30 , 8 , 15 ] -code, and its dual is a [ 30 , 22 , 5 ] -code. Both codes are optimal [29].
Example 6.
Let m = 14 , q = 3 . Then x m 1 = p 0 p 1 p 2 p 3 , where p 0 = x 1 , p 1 = x + 1 , p 2 = x 6 + x 5 + x 4 + x 3 + x 2 + x + 1 , p 3 = x 6 + 2 x 5 + x 4 + 2 x 3 + x 2 + 2 x + 1 . Let C be a code generated by ( g 11 ( x ) , g 12 ( x ) , g 13 ( x ) ) , where g 11 ( x ) = p 0 , g 12 ( x ) = p 0 x ( x 11 + 2 x 10 + x 8 + 2 x 7 + x 5 + x 3 + x + 1 ) , g 13 = p 0 ( x 2 + 1 ) ( x 5 + x 4 + x 2 + 1 ) . Then C is an Euclidean self-orthogonal [ 42 , 13 , 18 ] code with the same parameters as BKLC, and its dual is a [ 42 , 29 , 6 ] almost BKLC [29].

5. Hermitian Duals of Quasi-Cyclic Codes

In this section we consider codes over the field F q 2 of q 2 elements. Let a ( x ) = a 0 + a 1 x + + a m 1 x m 1 and b ( x ) = b 0 + b 1 x + + b m 1 x m 1 , where a i , b i F q 2 for any 0 i m 1 . For c F q 2 we define c ¯ = c q and
a ¯ ( x ) = a 0 ¯ + a 1 ¯ x + + a m 1 ¯ x m 1 .
Then the Hermitian inner product on R is defined as
a ( x ) , b ( x ) h = a ( x ) , b ¯ ( x ) e = a 0 b 0 ¯ + a 1 b 1 ¯ + + a m 1 b m 1 ¯ .
If C is a code in ( F q 2 ) 2 m , then its Hermitian dual is
C h = { u ( F q 2 ) 2 m u , v h = 0 , for all v C } .
The code C is called Hermitian self-orthogonal if C C h , and Hermitian dual-containing if C C h . We investigate Hermitian codes following a similar pattern to that used for Euclidean codes.
Let f ( x ) = a 0 + a 1 x + + a m 1 x m 1 + a m x m . We define the conjugate transpose polynomial  f ( x ) of f ( x ) as
f ( x ) = x m f ¯ ( x 1 ) = a m ¯ + a m 1 ¯ x + + a 2 ¯ x m 2 + a 1 ¯ x m 1 + a 0 ¯ x m .
Lemma 13.
If deg f ( x ) m , deg h ( x ) m and deg f ( x ) h ( x ) m , then
(1) f ( x ) = x m deg f f ¯ * ( x ) ;
(2) x m f ( x ) h ( x ) = f ( x ) h ( x ) ;
(3) f ( x ) ( a 0 ¯ + a m ¯ ) + a m 1 ¯ x + + a 2 ¯ x m 2 + a 1 ¯ x m 1 ( mod x m 1 ) ;
(4) f ( x ) h ( x ) f ( x ) h ( x ) ( mod x m 1 ) .
Proof. 
It is similar to the proof of Lemma 6. □
The next lemma is an analog of Lemma 7 and it can be proved in the same way.
Lemma 14.
Let a ( x ) , b ( x ) , c ( x ) be polynomials in R. Then
a ( x ) c ( x ) , b ( x ) h = a ( x ) , b ( x ) c ( x ) h .
The inner product (9) can be naturally extended to QC codes of length 3 m and index 3:
a ( x ) , b ( x ) , c ( x ) , a ( x ) , b ( x ) , c ( x ) h = a ( x ) , a ( x ) h + b ( x ) , b ( x ) + c ( x ) , c ( x ) h .
Lemma 15.
(1) If f ( x ) divides x m 1 , then f ( x ) divides x m ( 1 x m ) .
(2) If f ( x ) divides x m 1 , then
x m 1 f ( x ) = x m ( 1 x m ) f ( x ) .
(3) If deg g 12 ( x ) < deg g 22 ( x ) and g 11 ( x ) g 22 ( x ) divides ( x m 1 ) g 12 ( x ) , then
( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) = x m ( 1 x m ) g 12 ( x ) g 11 ( x ) g 22 ( x ) .
(4) If deg g 12 ( x ) < deg g 22 ( x ) , deg g 23 ( x ) < deg g 33 ( x ) , deg g 13 ( x ) < deg g ( x ) and g 11 ( x ) g 22 ( x ) g 33 ( x ) divides ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) , then
( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) = x m ( 1 x m ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) .
Proof. 
It is similar to the proof of Lemma 8. □
Theorem 16.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then its Hermitian dual code C h is generated by three elements
x m ( x m 1 ) g 11 ( x ) , 0 , 0 ,
x m ( x m 1 ) g 12 ( x ) g 11 ( x ) g 22 ( x ) , x m ( x m 1 ) g 22 ( x ) , 0 ,
x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) g 11 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 23 ( x ) g 22 ( x ) g 33 ( x ) , x m ( x m 1 ) g 33 ( x ) .
The next two theorems give characterizations of Hermitian self-orthogonal and Hermitian dual-containing codes.
Theorem 17.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is Hermitian self-orthogonal if and only if the following conditions hold:
(1) g 11 ( x ) g 11 ( x ) + g 12 ( x ) g 12 ( x ) + g 13 ( x ) g 13 ( x ) 0 ( mod x m 1 ) ;
(2) g 12 ( x ) g 22 ( x ) + g 13 ( x ) g 23 ( x ) 0 ( mod x m 1 ) ;
(3) g 13 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
(4) g 22 ( x ) g 22 ( x ) + g 23 ( x ) g 23 ( x ) 0 ( mod x m 1 ) ;
(5) g 23 ( x ) g 33 ( x ) 0 ( mod x m 1 ) ;
(6) g 33 ( x ) g 33 ( x ) 0 ( mod x m 1 ) .
Example 7.
Let m = 7 , q = 2 , F q 2 = F 2 [ w ] . Then x m 1 = p 0 p 1 p 2 , where p 0 = x + 1 , p 1 = x 3 + x + 1 , p 2 = x 3 + x 2 + 1 . Let C be a code generated by ( g 11 ( x ) , g 12 ( x ) , g 13 ) ( x ) ) , where g 11 ( x ) = p 1 , g 12 ( x ) = p 1 ( x + w ) , g 13 = p 0 p 1 ( x + w 2 ) . Then C is a Hermitian self-orthogonal [ 21 , 4 , 14 ] -code, and its dual is a [ 21 , 17 , 3 ] -code. Both codes are optimal [29].
Example 8.
Let m = 7 , q = 2 , F q 2 = F 2 [ w ] . Let C be a code generated by three elements ( 1 , 1 , x 2 + x + w ) , ( 0 , p 0 , x 5 + x 4 + w 2 x 3 + w x 2 + w ) and ( 0 , 0 , p 1 p 2 ) . Then C is a [ 21 , 14 , 5 ] -code, and its Hermitian dual C is a [ 21 , 7 , 11 ] -code. Code C is a BKLC and C is optimal [29].
Theorem 18.
Let C be a QC code of length 3 m and index 3, generated by elements g 1 = g 11 ( x ) , g 12 ( x ) , g 13 ( x ) , g 2 = 0 , g 22 ( x ) , g 23 ( x ) and g 3 = 0 , 0 , g 33 ( x ) , satisfying Conditions ( ) . Then C is Hermitian dual-containing if and only if the following conditions hold:
(1) g 11 ( x ) g 11 ( x ) divides x m ( x m 1 ) ;
(2) g 11 ( x ) g 11 ( x ) g 22 ( x ) divides x m ( x m 1 ) g 12 ( x ) ;
(3) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 33 ( x ) divides x m ( x m 1 ) ( g 12 ( x ) g 23 ( x ) g 13 ( x ) g 22 ( x ) ) .
(4) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) divides x m ( x m 1 ) ( g 11 ( x ) g 11 ( x ) + g 12 ( x ) g 12 ( x ) ) .
(5) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) g 33 ( x ) divides x m ( x m 1 ) ( g 12 ( x ) g 12 ( x ) g 23 ( x )
g 13 ( x ) g 12 ( x ) g 22 ( x ) g 11 ( x ) g 11 ( x ) g 23 ( x ) ) .
(6) g 11 ( x ) g 11 ( x ) g 22 ( x ) g 22 ( x ) g 33 ( x ) g 33 ( x ) divides
x m ( x m 1 ) ( g 12 ( x ) g 12 ( x ) g 23 ( x ) g 23 ( x ) g 13 ( x ) g 12 ( x ) g 22 ( x ) g 23 ( x ) g 12 ( x ) g 13 ( x ) g 22 ( x ) g 23 ( x ) + g 13 ( x ) g 13 ( x ) g 22 ( x ) g 22 ( x ) + g 11 ( x ) g 11 ( x ) g 23 ( x ) g 23 ( x ) ) .

6. Conclusions

In this paper we gave a classification of QC codes of index 3 over finite fields. A QC code of index 3 is generated by at most three elements. We gave a necessary and sufficient condition for a QC code to be generated by one element. We described duals of QC codes with respect to the Euclidean and Hermitian inner products. Moreover, we described self-orthogonal and dual-containing codes with respect to these inner products.

Author Contributions

Investigation, K.A. and R.M.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by UAEU grant G00004233.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kasami, T. A Gilbert-Varshamov bound for quasi-cyclic codes of rate 12. IEEE Trans. Inf. Theory 1974, 20, 679. [Google Scholar] [CrossRef]
  2. Ling, S.; Sole, P. Good self-dual quasi-cyclic codes exist. IEEE Trans. Inf. Theory 2003, 49, 1052–1053. [Google Scholar] [CrossRef]
  3. Ling, S.; Sole, P. On the algebraic structure of quasi-cyclic codes I: Finite fields. IEEE Trans. Inf. Theory 2001, 47, 2751–2760. [Google Scholar] [CrossRef]
  4. Ling, S.; Sole, P. On the algebraic structure of quasi-cyclic codes II: Chain rings. Des. Codes Cryptogr. 2003, 30, 113–130. [Google Scholar] [CrossRef]
  5. Ling, S.; Sole, P. On the algebraic structure of quasi-cyclic codes III: Generator theory. IEEE Trans. Inf. Theory 2005, 51, 2692–2700. [Google Scholar] [CrossRef]
  6. Ling, S.; Niederreiter, H.; Sole, P. On the algebraic structure of quasi-cyclic codes IV: Repeated roots. Des. Codes Cryptogr. 2006, 38, 337–361. [Google Scholar] [CrossRef]
  7. Conan, J.; Seguin, G. Structural properties and enumeration of quasi cyclic codes. AAECC 1993, 4, 25–39. [Google Scholar] [CrossRef]
  8. Lally, K.; Fitzpatrick, P. Algebraic structure of quasicyclic codes. Discret. Appl. Math. 2001, 111, 157–175. [Google Scholar] [CrossRef]
  9. Seguin, G.E. A class of 1-generator quasi-cyclic codes. IEEE Trans. Inf. Theory 2004, 50, 1745–1753. [Google Scholar] [CrossRef]
  10. Galindo, C.; Hernando, F.; Matsumoto, R. Quasi-cyclic constructions of quantum codes. Finite Fields Their Appl. 2018, 52, 261–280. [Google Scholar] [CrossRef]
  11. Guan, C.; Li, R.; Lu, L.; Lu, L.; Yao, Y. New binary quantum codes constructed from quasi-cyclic codes. Int J. Theor. Phys. 2022, 61, 172. [Google Scholar] [CrossRef]
  12. Guan, C.; Li, R.; Lu, L.; Lu, L.; Song, H. On construction of quantum codes with dual-containing quasi-cyclic codes. Quantum. Inf. Process. 2022, 21, 263. [Google Scholar] [CrossRef]
  13. Abdukhalikov, K.; Dzhumadil’daev, A.S.; Ling, S. Quasi-cyclic codes of index 2. arXiv 2025, arXiv:2504.00568. [Google Scholar] [PubMed]
  14. Abdukhalikov, K.; Bag, T.; Panario, D. One-generator quasi-cyclic codes and their dual codes. Discret. Math. 2023, 346, 113369. [Google Scholar] [CrossRef]
  15. Lally, K. Quasicyclic codes of index over Fq viewed as Fq[x]-submodules of Fqℓ[x]/〈xm − 1〉. In Applied Algebra, Algebraic Algorithms and Error-Correcting Codes, Proceedings of the 15th International Symposium, AAECC-15, Toulouse, France, 12–16 May 2003; LNCS 2643; Springer: Berlin, Germany, 2003; pp. 244–253. [Google Scholar]
  16. Ezerman, M.F.; Ling, S.; Özkaya, B.; Tharnnukhroh, J. Spectral bounds for quasi-twisted codes. In Proceedings of the IEEE International Symposium on Information Theory, Paris, France, 7–12 July 2019; pp. 1922–1926. [Google Scholar]
  17. Ezerman, M.F.; Lampos, J.M.; Ling, S.; Ozkaya, B.; Tharnnukhroh, J. A comparison of distance bounds for quasi-twisted codes. IEEE Trans. Inf. Theory 2021, 67, 6476–6490. [Google Scholar] [CrossRef]
  18. Aydin, N.; Siap, I.; Ray-Chaudhuri, D.K. The structure of 1-generator quasi-twisted codes and new linear codes. Des. Codes Cryptogr. 2001, 24, 313–326. [Google Scholar] [CrossRef]
  19. Shi, M.; Li, X.; Krotov, D.S.; Özbudak, F. Quasi-cyclic perfect codes in Doob graphs and special partitions of Galois rings. IEEE Trans. Inf. Theory 2023, 69, 5597–5603. [Google Scholar] [CrossRef]
  20. Dastbasteh, R.; Shivji, K. Polynomial representation of additive cyclic codes and new quantum codes. Adv. Math. Commun. 2025, 19, 49–68. [Google Scholar] [CrossRef]
  21. Semenov, P.; Trifonov, P. Spectral method for quasi-cyclic code analysis. IEEE Comm. Lett. 2012, 16, 1840–1843. [Google Scholar] [CrossRef]
  22. Luo, G.; Ezerman, M.F.; Ling, S.; Özkaya, B. Improved spectral bound for quasi-cyclic codes. IEEE Trans. Inf. Theory 2024, 70, 4002–4015. [Google Scholar] [CrossRef]
  23. Roth, R.M.; Zeh, A. On spectral design methods for quasi-cyclic codes. IEEE Trans. Inf. Theory 2019, 65, 2637–2647. [Google Scholar] [CrossRef]
  24. Zeh, A.; Ling, S. Spectral analysis of quasi-cyclic product codes. IEEE Trans. Inf. Theory 2016, 62, 5359–5374. [Google Scholar] [CrossRef]
  25. Güneri, C.; Özbudak, F. A bound on the minimum distance of quasi-cyclic codes. SIAM J. Discrete Math. 2012, 26, 1781–1796. [Google Scholar] [CrossRef]
  26. Saleh, A.; Soleymani, M.R. Quantum codes derived from one-generator quasi-twisted codes. In Proceedings of the 2024 IEEE International Symposium on Information Theory (ISIT), Athens, Greece, 7–12 July 2024; pp. 2275–2280. [Google Scholar]
  27. Shi, M.; Chu, S.; Özbudak, F. Additive cyclic codes over Fq3. J. Algebra Appl. 2025, 24, 2550339. [Google Scholar] [CrossRef]
  28. Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system I: The user language. J. Symbolic Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef]
  29. Grassl, M. Bounds on the Minimum Distance of Linear Codes and Quantum Codes. Available online: http://www.codetables.de (accessed on 23 September 2025).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Abdukhalikov, K.; Shat, R.M. On Quasi-Cyclic Codes of Index 3. Entropy 2025, 27, 1096. https://doi.org/10.3390/e27111096

AMA Style

Abdukhalikov K, Shat RM. On Quasi-Cyclic Codes of Index 3. Entropy. 2025; 27(11):1096. https://doi.org/10.3390/e27111096

Chicago/Turabian Style

Abdukhalikov, Kanat, and Rasha M. Shat. 2025. "On Quasi-Cyclic Codes of Index 3" Entropy 27, no. 11: 1096. https://doi.org/10.3390/e27111096

APA Style

Abdukhalikov, K., & Shat, R. M. (2025). On Quasi-Cyclic Codes of Index 3. Entropy, 27(11), 1096. https://doi.org/10.3390/e27111096

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop