Next Article in Journal
Bounded Variation Separates Weak and Strong Average Lipschitz
Previous Article in Journal
Timely Updating on Ber/Geo/1/2 Queue Modeled Status Updating System with Eavesdropper
Previous Article in Special Issue
Upper Bounds for Chebyshev Permutation Arrays
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Symplectic QSD, LCD, and ACD Codes over a Non-Commutative Non-Unitary Ring of Order Nine

1
Department of Mathematics, Central China Normal University, Wuhan 430079, China
2
I2M, (CNRS, University of Aix-Marseille, Centrale Marseille), 13009 Marseilles, France
3
Research Group of Algebraic Structures and Applications, Mathematics Department, King Abdulaziz University, Jeddah 22254, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Entropy 2025, 27(9), 973; https://doi.org/10.3390/e27090973
Submission received: 20 August 2025 / Revised: 14 September 2025 / Accepted: 17 September 2025 / Published: 18 September 2025
(This article belongs to the Special Issue Discrete Math in Coding Theory, 2nd Edition)

Abstract

We introduce quasi self-dual (QSD), linear complementary dual (LCD), and additive complementary dual (ACD) codes for the symplectic inner product over a non-commutative non-unitary ring of order 9. We establish connections with symplectic–self-orthogonal and LCD ternary codes. We characterize right-symplectic ACD codes.

1. Introduction

Codes over non-unitary rings have received significant attention in the last five years [1,2] especially in the context of duality [3,4,5,6]. The notion of quasi self-dual codes (QSD) plays here the role of self-dual codes over unitary rings and finite fields.
Recently, Alahmadi et al. [7] derived a mass formula for self-orthogonal, QSD and self-dual codes of non-unitary rings of four elements. Later, this research was extended to non-unitary rings of the size of the square of an odd prime [5,6]. Furthermore, in [3], the concept of linear complementary dual (LCD) codes was characterized over a non-unitary ring of order four. Additive complementary dual (ACD) codes were introduced in [4]. Kushwaha et al. [8] pushed further, with a study in the characteristic three. These studies were conducted using the Euclidean inner product.
More recently, in a series of papers [9,10,11], we introduced and characterized self-orthogonal and QSD codes over non-unitary rings of the order of four under the symplectic inner product. Later, we classified all distinct symplectic–self-orthogonal and QSD codes over commutative non-unitary rings with four elements [9,11]. Additionally, [10] introduced symplectic LCD and ACD codes over a non-commutative non-unitary ring of size four, in which the authors focused on the study of symplectic left ACD and LCD codes. This motivated us to extend the study of left- and right-symplectic LCD and ACD codes to the non-commutative non-unitary ring of order nine. Therefore, in the present manuscript, we consider the case of a ring of order 9 and E in the notation of Fine [12]. By forgetting the module structure, our codes can be considered as additive codes over F 9 , a viewpoint that allows us, for numerical examples, to use the additive codes Magma package [13]. Moreover, we introduce QSD, right (respectively, left) ACD, nice, and LCD codes for the symplectic inner product over that ring, here denoted by E 3 . We establish connections with ternary symplectic–self-orthogonal and symplectic LCD codes. In particular, we use a multilevel construction from ternary symplectic–self-orthogonal codes to construct symplectic QSD codes. We investigate the right-symplectic LCD codes. Furthermore, we characterize free right-symplectic LCD codes over E 3 in terms of a ternary generator matrix. Since non-trivial left-symplectic ACD codes do not exist, we introduce the concept of a right-symplectic ACD code over E 3 . Additionally, we establish several results for the existence of these codes.
This manuscript is organized as follows: The basic notions and notations used in the remainder of this paper are presented in the next section. Section 3 studies the symplectic QSD and LCD codes over E 3 . Section 4 treats right-symplectic ACD E 3 codes. Section 5 provides the conclusion.

2. Preliminaries

2.1. Ternary Linear Codes

A linear code C having a dimension, k, and length, n, over the ternary field F 3 is an F 3 subspace of F 3 n of the k dimension. Briefly, we say C is an [ n , k ] –code and its elements are known by codewords.
Denote the vector ( x 1 | x 2 ) as the juxtaposition of two vectors, x 1 , x 2 F 3 2 n . Let x = ( x 1 | x 2 ) and y = ( y 1 | y 2 ) , where x 1 = ( x 1 , x 2 , , x n ) , x 2 = ( x n + 1 , x n + 2 , , x 2 n ) F 3 2 n , y 1 = ( y 1 , y 2 , , y n ) , y 2 = ( y n + 1 , y n + 2 , , y 2 n ) F 3 2 n are the vectors of F 3 2 n . The Euclidean and symplectic inner products of x and y are, respectively, defined by
( x , y ) e = i = 1 2 n x i y i and ( x , y ) s = ( x , y Ω n T ) e = ( x 1 , y 2 ) e ( x 2 , y 1 ) e = i = 1 n ( x i y n + i x n + i y i ) ,
where Ω n = 0 n I n I n 0 n with 0 n is the n × n zero matrix and I n is the identity matrix.
Two vectors x and y are symplectic–orthogonals if they satisfy ( x , y ) s = 0 . Moreover, the vector space consists of all vectors of F 3 2 n that are symplectic–orthogonal to each codeword in C, which is known by the symplectic dual of C, denoted by C s .
The code C is said to be symplectic–self-orthogonal (resp. symplectic self-dual) if C C s (resp. C = C s ).

2.2. Non-Commutative Non-Unitary Ring of Nine Elements

Define the ring E 3 on two generators, a and b, under certain relations, such as:
E 3 = a , b | 3 a = 3 b = 0 , a b = a , b a = b , a 2 = a , b 2 = b .
Assume that c = a + 2 b . According to [8], the ring E 3 has characteristic 3 and 9 elements, given by
E 3 = 0 , a , b , c , 2 a , 2 b , 2 c , a + b , a + c .
It is easy to derive the addition table of E 3 and its multiplication table is in Table 1.
Thus, E 3 is a non-commutative ring without identity element with respect to the given multiplication and has a unique maximal ideal J = { 0 , c , 2 c } . So, the ring E 3 is local having a residue class field E 3 / J F 3 .
Every element, r E 3 , has a c-adic decomposition, expressed as r = a u + c v , for unique scalars u , v of F 3 . Furthermore, a x = x , b x = x , and c x = 0 for all x E 3 .
Define a natural action of F 3 on the ring E 3 as
r 0 = 0 r = 0 , r 1 = 1 r = r , and r 2 = 2 r = 2 r .
This action is clearly distributive in the sense that, for any r E 3 and u , v s . F 3 , we have r ( u v ) = r u + r v , where ⊕ is denoted in the addition in F 3 .
The symplectic inner product of the two elements u F 3 2 n and r E 3 2 n , denoted by ( u , r ) s is defined as
( u , r ) s = i = 1 n ( u i r n + i u n + i r i ) .
We define the reduction map modulo J as: α E 3 : E 3 E 3 / J F 3 by
α E 3 ( 0 ) = α E 3 ( c ) = α E 3 ( 2 c ) = 0 , α E 3 ( a ) = α E 3 ( b ) = α E 3 ( a + c ) = 1 , α E 3 ( 2 a ) = α E 3 ( 2 b ) = α E 3 ( a + b ) = 2 .
This map can be extended naturally to a map from E 3 n to F 3 n .

2.3. Linear E 3 Codes

A linear code C over E 3 or a linear E 3 –code of length n is a right E 3 submodule of E 3 n . A linear E 3 –code C is free if it is free as a right E 3 –module.
An additive code over E 3 or an additive E 3 –code of length n is an additive subgroup of E 3 n .
For any linear code C over E 3 , there are the two ternary codes of length n associated with C.
  • The residue code of C is defined as
    res ( C ) = { α E 3 ( r ) | r C } .
The torsion code of C is
tor ( C ) = { u F 3 n | u c C } .
From [2], we have res ( C ) tor ( C ) . We denote k 1 as the dimension of res ( C ) , and k 1 + k 2 as the dimension of tor ( C ) . We say that a linear E 3 code, C, is of type { k 1 , k 2 } and | C | = | res ( C ) | | tor ( C ) | = 3 2 k 1 + k 2 . From [8], C is free if, and only if, k 2 = 0 .
The symplectic inner product between two codewords, x = ( x 1 , x 2 , , x 2 n ) , y = ( y 1 , y 2 , , y 2 n ) C , is defined as
( x , y ) s = i = 1 n ( x i y n + i x n + i y i ) .
Under this symplectic inner product, the duals of an E 3 code, C, are defined as:
(1).
The left-symplectic dual is defined as
C L s = { y E 3 2 n ( y , x ) s = 0 , x C } .
(2).
The right-symplectic dual of C is defined by
C R s = { y E 3 2 n ( x , y ) s = 0 , x C } .
An E 3 code C, is called left-symplectic self-dual if C L s = C . Likewise, C is called right-symplectic self-dual if C R s = C . Then, we set C s = C L s C R s .
If any two codewords, x , y C , satisfy ( x , y ) s = 0 , the code, C, is called a symplectic–self-orthogonal code. It is evident that C is symplectic–self-orthogonal if C C s .
A linear code, C, of length 2 n is called left-symplectic-nice (resp. right-symplectic-nice) if it verifies | C | | C L s |   = 9 2 n (respectively, if | C | | C R s |   = 9 2 n ).
Remark 1. 
In general, the relation “ | C | | C R s |   = 9 2 n ” does not hold. For example, let C be an additive E 3 code of length 4 with (additive) generator matrix, G, where
G = a 2 b 0 0 0 0 a 2 b
Let ( y 1 , y 2 , y 3 , y 4 ) be an arbitrary vector of C R s , then
( ( a , 2 b , 0 , 0 ) , ( y 1 , y 2 , y 3 , y 4 ) ) s = 0 a n d ( ( 0 , 0 , a , 2 b ) , ( y 1 , y 2 , y 3 , y 4 ) ) s = 0 .
These imply that, a y 3 + 2 b y 4 = 0 and 2 a y 1 + b y 2 = 0 . Since a x = x and b x = x for any x E 3 , y 3 + 2 y 4 = 0 and 2 y 2 + y 1 = 0 . So, y 4 = y 3 and y 2 = y 1 . Hence, C R s = { ( y 1 , y 1 , y 3 , y 3 ) | y 1 , y 3 E 3 } .
  • It is easy to derive, | C | = 9 and | C R s |   = 9 2 . Thus, | C | | C R s |   = 9 3 < 9 4 .

3. Symplectic QSD and LCD E 3 Codes

In this section, first we define the notion symplectic QSD codes over the ring E 3 and then prove their multilevel construction from ternary linear codes. Further, we investigate the symplectic LCD codes and characterize free symplectic LCD code over E 3 in term of ternary generator matrix.
A symplectic–self-orthogonal E 3 code with length 2 n and 9 n elements is called symplectic quasi self-dual (symplectic QSD).
In the following result, we establish a necessary and sufficient condition for a linear E 3 code to be self-orthogonal under the symplectic inner product.
Lemma 1. 
A linear E 3 code C is symplectic–self-orthogonal if res ( C ) tor ( C ) s .
Proof. 
Suppose C is symplectic–self-orthogonal. Let x be an arbitrary codeword of res ( C ) , then there exists x a + y c C , such that α E 3 ( x a + y c ) = x . By definition, for any element z tor ( C ) , z c C . From the symplectic–self-orthogonality of C, we have ( x a + y c , z c ) s = ( x , z ) s c = 0 . This implies ( x , z ) s = 0 . This means z res ( C ) s . Hence, tor ( C ) res ( C ) s . So, res ( C ) tor ( C ) s .
For the inverse assertion. Let c , c C . By Theorem 3.5 in [8], there exist x , x res ( C ) and y , y tor ( C ) such that c = x a + y c and c = x a + y c . For an arbitrary linear code, C, over E 3 . Using a procedure similar to that given in [10], obtain tor ( C ) s res ( C ) s as res ( C ) tor ( C ) . Moreover, res ( C ) tor ( C ) s res ( C ) s . This yields
( c , c ) s = ( x a + y c , x a + y c ) s = ( x , x ) s a + ( x , y ) s c = 0 .
Hence, C is symplectic–self-orthogonal over E 3 . □
Next, we state the multilevel construction of symplectic QSD E 3 codes over from ternary linear codes.
Theorem 1. 
Let B be a ternary linear code of length 2 n . If B is a symplectic–self-orthogonal code, then the E 3 code, C, constructed through the relationship C = B a + B s c is symplectic QSD. Furthermore, res ( C ) = B and tor ( C ) = B s .
Proof. 
We begin by proving that C is a linear E 3 code. Using the linearity of B and B s , we note that C is closed under the addition operation. Let c C and e E 3 , then c = b a + b c , where b B , b B s and by c-adic decomposition of e, we have e = r a + r c where r , r F 3 . So, we get
c e = ( b a + b c ) ( r a + r c ) = b a r a + b a r c + b c r a + b c r c = b r a 2 + b r a c + b r c a + b r c 2 = b r a + b r c .
Therefore, b r , b r B since the code B is linear, d B and r , r F 3 . From the symplectic–orthogonality of B , we see that b r B s . We conclude that, c e C . Hence, C is a linear E 3 code.
Let c = b a + b c , c = d a + d c C for some b , d B and b , d B s . Then,
( c , c ) s = ( b a + b c , d a + d c ) s = ( b , d ) s a 2 + ( b , d ) s a c + ( b , d ) s c a + ( b , d ) s c 2 = ( b , d ) s a + ( b , d ) s c = 0 .
The last equality is derived because B is a symplectic–self-orthogonal code. Therefore, we have C = B a + B s c . This implies that | C | = | B | | B s |   = 9 n . Consequently, C is a symplectic QSD code. Thus, the torsion and residue codes can be obtained by applying their definitions. □
The following result demonstrates that Theorem 1 does not hold if B is not a symplectic–self-orthogonal code.
Theorem 2. 
For every E 3 code, C, given by C = B a + B s c where B is a ternary linear code. Then, C is always an additive code over E 3 , but never a linear code over E 3 , unless B is symplectic–self-orthogonal.
Proof. 
First, we have to prove that C is an additive code over E 3 . Let c 1 , c 2 C , then c 1 = b 1 a + b 1 c and c 2 = b 2 a + b 2 c , where b 1 , b 2 B and b 1 , b 2 B s . Thus, c + c = ( b 1 + b 2 ) a + ( b 1 + b 2 ) c . From the linearity of B and B s and the definition of C, it is easy to see that c + c C . Hence, C is an additive code over E 3 .
Now, suppose that C is a linear code over E 3 and there exists a codeword b B . Then, a vector b exists in B s , such that c = b a + b c C . Thus, let e E 3 ; then, e has a c-adic decomposition form e = r a + r c with r , r F 3 . Further,
c e = ( b a + b c ) ( r a + r c ) = b r a 2 + b r a c + b r c a + b r c 2 = ( b r ) a + ( b r ) c .
The last equality derived from c a = c 2 = 0 , a 2 = a , a c = c . Using the linearity of C, we have c e C and b r B s . Since B s is a ternary linear code, we have b r r 1 = b B s , where r 1 denotes the multiplicative inverse of r F 3 . This yields B B s . □
Next, we characterize the symplectic QSD codes over E 3 in terms of their associated ternary codes.
Corollary 1. 
A linear E 3 code, C, of length 2 n is symplectic QSD if res ( C ) = tor ( C ) s .
Proof. 
For the direct statement, suppose C is symplectic QSD; then, | C | = 3 2 k 1 + k 2 = 3 2 n . This means k 1 = 2 n ( k 1 + k 2 ) . So, res ( C ) and tor ( C ) s have the same dimension. Since C is symplectic–self-orthogonal, then by Lemma 1, res ( C ) tor ( C ) s . Hence, res ( C ) = tor ( C ) s .
Conversely, since res ( C ) tor ( C ) , then from the given hypotheses, res ( C ) = tor ( C ) s and tor ( C ) s res ( C ) s . These imply that, res ( C ) is ternary symplectic–self-orthogonal. By Theorem 2 and Theorem 3.5 in [8], the code, C, is symplectic QSD. □
The study of LCD codes with Euclidean inner product over non-unitary ring of order four first appeared in [4]. Further, the authors in [8] established right LCD E 3 codes. In addition, LCD codes under the symplectic inner product were introduced in [10]. In the following results, we extend this notion to codes over E 3 .
A right-symplectic-nice code is said to be right-symplectic linear with complementary dual (right-symplectic LCD) if satisfies: C C R s = { 0 } ; C is right-symplectic LCD if C C R s = E 3 2 n .
Likewise, a left-symplectic-nice code is called left-symplectic linear with complementary dual (left-symplectic LCD) if satisfies C C L s = { 0 } . Moreover, C is a left-symplectic LCD if C C L s = E 3 2 n .
Remark 2. 
Note that non-trivial left-symplectic LCD code does not exist over E 3 . If C { 0 } is a nonzero linear E 3 code of length 2 n . Then, for any y C , y c C . We can see that y c = v c , where v F 3 2 n . Since c is a left zero divisor, we have ( y c , z ) s = 0 for all z C . This shows y c C L s . Thus, C C L s { 0 } . Hence, the desired result achieved.
Henceforward, we consider the right-symplectic LCD codes as symplectic LCD and therefore only the right (symplectic) dual.
Using part (i) of Theorem 4.10 in [8], Proposition 2.1 in [14] and by following Lemma 5 in [10], we state the next Lemma.
Lemma 2. 
For any free linear E 3 code, C, of generator matrix, G, we have the following:
(1). 
C = G 3 a E 3 where G 3 is a ternary matrix.
(2). 
C R s = H 3 Ω a E 3 where H 3 is a ternary parity check matrix related to G 3 .
Proof. 
The proof of (1) is achieved in the proof of Theorem 4.10 in [8].
To prove (2), we have C = G 3 a E 3 for some ternary matrix G 3 . Then, let H 3 be a parity check matrix of the linear code of generator matrix G 3 . By Proposition 2.1 in [14], H 3 Ω is a generator matrix of the symplectic dual of the ternary code whose generator matrix is G 3 . Note that ( G 3 a ) Ω ( H 3 Ω a ) T = a G 3 Ω H 3 T a = 0 . Hence, H 3 Ω a E 3 C R s .
For the converse inclusion, assume z = ( z 1 , z 2 , , z 2 n ) C R s and G 3 is in standard form, i.e., G 3 = [ I k | M ] . Therefore, G 3 a = [ I k | M ] a = r 1 a r 2 a r k a where r 1 , , r k are the rows of G 3 .
Furthermore, for all 0 i k , we have ( r i a , z ) s = 0 . So, for any 1 i k ,
x i 1 a z i 1 + x i 2 a z i 2 + + x i t a z i t = 0 ,
for some 1 t k and x i j are nonzero elements of F 3 . Since a x = x for all x E 3 , we get
x i 1 z i 1 + x i 2 z i 2 + + x i t z i t = 0 .
Further, we obtain the next k equations:
β 1 z n + 1 + 0 + 0 + + 0 + x k + i 1 z k + i 1 + + x i l 1 z i l 1 = 0 , 0 + β 2 z n + 2 + 0 + + 0 + x k + i 2 z k + i 2 + + x i l 2 z i l 2 = 0 , 0 + 0 + + 0 + β k z k + x k + i k z k + i k + + x k + i k z i k = 0
where for each 0 t k ,   β t s are 1 or 2 and the indices k + i t ,   i l t of z correspond to the nonzero positions of r t a . Moreover, there are at most 2 n k free variables in the previous k equations, then there are 9 2 n k solutions of z. This implies that | C R s | 9 2 n k . Since H 3 Ω a E 3 = 9 2 n k and H 3 Ω a E 3 C R s , we conclude that C R s = H 3 Ω a E 3 . □
Proposition 1. 
Let C be a linear E 3 code having length 2 n . Then, C is a free code if it is right-symplectic-nice.
Proof. 
We have C is a linear code over E 3 , then | C | | C R s |   = 3 2 k 1 + k 2 × 9 2 n k 1 = 3 4 n + k 2 . Hence, C is right-symplectic-nice if k 2 = 0 . □
Corollary 2. 
Every symplectic LCD code, C, over E 3 is free.
Proof. 
Using the definition of symplectic LCD code, we found that C is right-symplectic-nice. By Proposition 1 the code, C, is free. □
Now, we construct symplectic LCD codes over E 3 from ternary symplectic LCD codes.
Proposition 2. 
Let B be a symplectic LCD ternary [ 2 n , k ] code having a generator matrix G 3 . Then, the E 3 code C = G 3 a E 3 is a symplectic LCD E 3 code.
Proof. 
We have C = G 3 a E 3 ; then, by statement (2) of Lemma 2, C R s = H 3 Ω a E 3 where H 3 is a parity check matrix of the matrix G 3 and H 3 Ω is a generator matrix of the ternary symplectic dual code related to G 3 .
Further, | C | | C R s |   = 3 2 k × 9 2 n k = 9 2 n . This implies that C is right-symplectic-nice.
To prove that C C R s = { 0 } , assume (if possible) 0 z in C C R s . Then, there are two possibilities:
(1).
Let z = y c where 0 y F 3 2 n and G 3 is in standard form. By investigation of the matrix G 3 a , we conclude that y can be expressed as a sum of scalar multiples of some rows of G 3 . Hence, y B . Likewise, we can prove that y B s .
Consequently, 0 y B B s , this contradicts with B is a ternary symplectic LCD code.
(2).
Suppose z is not a product of a ternary vector by c, then
z = g i a u i and z = g j a v j .
where g j a is a row of G 3 a for some (distinct) i and u i E 3 and g j a is a row of H 3 Ω a for some (distinct) j and v i E 3 . Therefore,
z = g i u i also z = g j v j
where g i is a row of G 3 for some (distinct) i, j and u i , v i E 3 .
From the multiplication table of E 3 , we have z a = g i t and z = g j l , where g i t is a row of G 3 for some distinct i t and g j l is a row of H 3 Ω for some distinct j l .
Therefore, g i t a g j l a = ( g i t g j l ) a = 0 . This implies that, g i t g j l = 0 , so g i t = g j l B B s . This implies that B B s { 0 } , which contradicts the fact that B is a symplectic LCD code.
The example below presents a symplectic LCD E 3 code constructed according to Proposition 2.
Example 1. 
Let B be the ternary [ 4 ,   2 ] code of generator matrix G 3 = 1 0 1 1 0 1 2 1 .
  • Since G 3 Ω G 3 T = 0 1 2 0 is a non-singular matrix over F 3 ; then, by Theorem 1 in [15], B is a ternary symplectic LCD code of length 4. Then, by Proposition 2, G 3 a E 3 is a symplectic LCD E 3 code.
Now, we verify the conditions of the definition of symplectic LCD E 3 code to prove that the code G 3 a E 3 is symplectic LCD over E 3 .
Assume, C = G 3 a E 3 = a 0 a a 0 a 2 a a E 3 . Then, C can be represented by the set
C = { ( a x , a x , a x + 2 a x , a x + a x ) | x , x E 3 } = { ( x , x , x + 2 x , x + x ) | x , x E 3 } .
For any ( y , y , z , z ) C , we have
( ( a , 0 , a , a ) , ( y , y , z , z ) ) s = 0 a n d ( ( 0 , a , 2 a , a ) , ( y , y , z , z ) ) s = 0 .
These imply, a z + 2 a y + 2 a y = 0 and a z + a y + 2 a y = 0 . Thus, z + 2 y + 2 y and z + y + 2 y = 0 . So, z = y + y and z = 2 y + y . Hence,
C R s = { ( y , y , y + y , 2 y + y ) | y , y E 3 } .
Clearly, | C R s |   = 9 2 , | C | = 9 2 . Then, | C | | C R s |   = 9 4 . Furthermore, C C R s = { 0 } . Therefore, C is symplectic LCD E 3 code.
The inverse statement of Proposition 2 is partially true, as the following proposition states.
Proposition 3. 
A free symplectic LCD E 3 code, C, is the E 3 -span by the matrix G a with G is a generator matrix of a ternary symplectic LCD code B .
Proof. 
Since C is free, then by part (1) of Lemma 2, C is the E 3 -span by the matrix G a where G is a generator matrix of the ternary code B . Moreover, from part (2) of Lemma 2, C R s is generated by the matrix H Ω a , where H is a parity check matrix of B . Since C is symplectic LCD, C C R s = { 0 } . Further, suppose ( 0 x ) B B R s , then x a C C R s ; this contradicts C C R s = { 0 } . Therefore, B is a ternary symplectic LCD code. □
Corollary 3. 
For any symplectic LCD code, C, over E 3 , the ternary codes tor ( C ) and res ( C ) are symplectic LCD codes.
Proof. 
Since C is symplectic LCD code, then by Corollary 2, C is free. Then, by Proposition 3, C is the E 3 -span by the matrix G a where G is a generator matrix of ternary symplectic LCD code. From the freeness of C, we have res ( C ) = tor ( C ) and G will be a generator matrix for both res ( C ) and tor ( C ) . □

4. Symplectic ACD Codes

In this section, we introduce the right-symplectic-nice and left-symplectic-nice additive codes, as well as right-symplectic ACD and left-symplectic ACD E 3 codes. We provide some criteria for the existence of the right-symplectic ACD E 3 codes. Moreover, for additive, linear and free E 3 codes, in terms of their torsion and residue codes, we also determine the residue and torsion codes of the right-symplectic dual of such codes. At the end, we show that any linear E 3 code is free if, and only if, its right and left-symplectic duals have the same residue code.
An additive E 3 code of length 2 n is called right-symplectic-nice (respectively, left-symplectic-nice) code if | C | | C R s |   = 9 2 n (respectively, | C | | C L s |   = 9 2 n ).
A right-symplectic-nice additive E 3 code, C, is called right-symplectic additive complementary dual (right-symplectic ACD) if C C R s = { 0 } .
Likewise, a left-symplectic-nice additive E 3 code, C, is called left-symplectic additive complementary dual (left-symplectic ACD) if C C L s = { 0 } .
Lemma 3. 
Let C be an additive E 3 code. Then, the right-symplectic dual of C is a free linear E 3 code and its left-symplectic dual is a non-free linear E 3 code.
Proof. 
Firstly, we have to prove that C R s and C L s are linear codes over E 3 . Let z , z C R s and y C . Then,
( y , z + z ) s = ( y , z ) s + ( y , z ) s = 0 + 0 = 0 .
Hence, z + z C R s . Thus, for any z C R s , u E 3 and y C , we have
( y , z r ) s = ( y , z ) s r = 0 .
So, z r C R s . Further, C R s is a right submodule of E 3 2 n . This shows that C R s is a linear E 3 code.
Next, we prove that C R s is free code. Let z = u c C R s where u F 3 2 n . Then according to multiplication table of E 3 , for any y C , we get ( y , z ) s = ( y , u c ) s = t c = 0 . This implies, t is multiple of 3. Therefore, ( y , u a ) s = ( y , u a ) s = t a = 0 . This means u a C R s . By Theorem 4.12 in [8], consequently C R s is free.
Now, we have to prove C L s is also linear over E 3 . Let x , x C L s and y C . Then,
( x + x , y ) s = ( z , y ) s + ( z , y ) s = 0 + 0 = 0 .
So, x + x C L s . Therefore, let x C R s , y C and let r E 3 , then r = e a + e c where e , e F 3 . Thus,
( x r , y ) s = ( x ( e a + e c ) , y ) s = ( x e a , y ) s + ( x e c , y ) s .
Since ( x a , y ) s = ( x b , y ) s = ( x , y ) s = 0 , we get ( x e a , y ) s + ( x e c , y ) s = ( x e , y ) s + 0 = ( x , y ) s e = 0 . So, ( x r , y ) s = 0 . Hence, x r C L s . Consequently, C L s is a linear E 3 2 n code.
It remains to prove C L s is not a free code. Suppose C L s is free over E 3 . Since c is left zero divisor, we get c I 2 n F 3 C L s . Thus, according to Theorem 4.12 in [8], a I 2 n F 3 C L s . These yield | C L s | 9 n × 9 n = 9 2 n . Since C L s E 3 2 n , we have | C L s | 9 2 n . Hence, C L s = E 3 2 n . This implies that C = { 0 } , which is impossible. Hence, C L s is not a free E 3 code. □
Theorem 3. 
Let C be a linear code over E 3 of length 2 n . Then, C = ( C R s ) R s if C is right-symplectic-nice.
Proof. 
Assume, ( C R s ) R s = C . By Lemma 3, C R s is a free linear E 3 code. Thus, from Proposition 1, C R s is right-symplectic-nice. This yields | C R s | | ( C R s ) R s |   =   | C | | C R s |   = 9 2 n . Hence, C is right-symplectic-nice.
Conversely, assume C is right-symplectic-nice. From Proposition 1, we have C is free. Furthermore, by Lemma 3, C R s is free. Thus, by Lemma 2, for any y C and z C R s , we assume y = l a and z = t a for some l , t F 3 2 n . Then, 0 = ( y , z ) s = ( l a , t a ) s = ( l , t ) s a 2 = ( l , t ) s a = 2 ( t , l ) s a = 2 ( z , y ) s . So, ( z , y ) s = 0 , for any z C R s . Then, y ( C R s ) R s . This shows that C ( C R s ) R s . Furthermore, C, C R s are both right-symplectic-nice, which means | C | | C R s |   =   | ( C R s ) R s | | C R s | . So, ( C R s ) R s |   =   | C | | . This together with C ( C R s ) R s imply that C = ( C R s ) R s . □
The next result characterizes the one-sided duals of a symplectic LCD E 3 code.
Proposition 4. 
Let C be a symplectic LCD E 3 code, then C R s is symplectic LCD but C L s is not.
Proof. 
Suppose C is symplectic LCD code. Then, C is right-symplectic-nice with C C R s = { 0 } . By Theorem 3, ( C R s ) R s = C . Thus, | C R s | | ( C R s ) R s |   =   | C R s | | C | = 9 2 n . Furthermore, C R s ( C R s ) R s = C R s C = 0 . These imply that C R s is a symplectic LCD E 3 code.
Further, from Lemma 3, C L s is non-free linear E 3 code. Hence, by Proposition 1, C L s is not right-symplectic-nice. So, C L s is not symplectic LCD. □
Proposition 5. 
If C is a right-symplectic ACD E 3 code with 3 t elements then t is even.
Proof. 
By Lemma 3, C R s is free. This yields, C R s = 9 k 1 = 3 2 k 1 . Since C is right-symplectic ACD, then | C | | C R s |   = 9 2 n . Thus, | C | = 3 4 n 2 k 1 . Hence, t = 4 n 2 k 1 ; this means t is even. □
Next, we construct the right-symplectic ACD codes over E 3 .
Proposition 6. 
Let C be an additive E 3 code of length 2 n with C C R s = C c C R s = { 0 } and | C R s | | C | < 9 2 n . Then, for any nonzero element y = z + z c C + C c , if y C R s , then z is a multiple of a ternary vector by c, z 0 , z c 0 and z C C c .
Proof. 
Let 0 y = z + z c C + C c , where z , z C . We suppose that y C R s . Then, we get the following cases:
(1).
If z = 0 and z c = 0 , then y = 0 which is not possible.
(2).
If z = 0 and z c 0 , then y = z c C R s . This implies that, 0 y C c C R s = { 0 } which is not possible.
(3).
If z 0 and z c = 0 , then y = z C R s . This shows that 0 y C C R s = 0 which leads to a contradiction.
(4).
If z 0 and z c 0 , then y = z + z c . Suppose, z is not a multiple of a ternary vector by c. So, z c 0 . By Lemma 3, C R s is a free linear E 3 code. This together with y C R s , we obtain y c = ( z + z c ) c = z c C R s . Thus, z c C c C R s = { 0 } which is not possible. Hence, z is a multiple of a ternary vector by c. Further, if z C c , then y C c , also y C c C R s = { 0 } . It again leads to a contradiction. Hence, z C C c .
By (1), (2), (3), and (4), if 0 y = z + z c C R s , then z 0 , z c 0 , z is a multiple of a ternary vector by c, and z C C c . This completes the proof. □
Theorem 4. 
Let C be an additive E 3 code of length 2 n . If | C | | C R s | < 9 2 n and C C R s = C c C R s = { 0 } , then C can be extended to a right-symplectic ACD code over E 3 by adding some elements of C c .
Proof. (1). First, we show that C c C . Suppose B = C E 3 = C a + C c = { z a + z c | z , z C C c } .
  • Since c is a left zero-divisor, we suppose that z and z are not multiples of a ternary vectors by c. Clearly, B is a free linear E 3 code and B R s = C R s . From Lemma 2 and Proposition 2, B is right-symplectic-nice.
    If C c C , according to [8], we define a map π 1 : C B by
    π 1 ( 0 ) = 0 , π 1 ( z ) = z a and π 1 ( z c ) = z c , for any z C C c .
    Note that, for any z , z C , π 1 ( z + z ) = π 1 ( z ) + π 1 ( z ) . It is clear that π 1 is a surjective linear mapping over F 3 . Thus, | C | | B | since π 1 is surjective. Thus, | C | | C R s |   | B | | C R s |   = | B | | B R s |   = 9 2 n . So, | C | | C R s | 9 2 n which contradicts the hypothesis. Hence, C c C . Moreover, C can be extended to a right-symplectic-nice code by adding some codewords of C c .
(2).
Now, we prove that a vector z c exists in C c C such that z + z c C R s for any z C . Assume this is not true, i.e., there is a codeword z of C such that z + z c C R s for any z c C c C . Then, by Proposition 6, a ternary vector y exists such that z = y c and z in C C c .
Suppose for any z 1 c , z 2 c C C c with z 1 c z 2 c , there are z 1 , z 2 C such that z 1 + z 1 c , z 2 + z 2 c C R s .
If possible, let z 1 = z 2 , then ( z 1 + 2 z 2 ) c = ( z 1 + z 1 c ) + 2 ( z 2 + z 2 c ) C R s (since C R s is a linear code over E 3 and z 1 + z 1 c , z 2 + z 2 c C R s ).
Thus, z 1 + 2 z 2 C as z 1 , z 2 C . This yields ( z 1 + 2 z 2 ) c C c . So, ( z 1 + 2 z 2 ) c C c C R s = { 0 } . Therefore, z 1 c = z 2 c which is not possible.
Hence, we have z 1 z 2 . Let us define π 2 : B C . We will discuss the following cases:
(2.1).
For any z C C c , if z c C c C , we define π 2 as
π 2 ( 0 ) = 0 , π 2 ( za ) = z and π 2 ( z c ) = y .
where, y is the given vector satisfies y + z a C R s . For all z , z B , π 2 ( z + z ) = π 2 ( z ) + π 2 ( z ) . Thus, it is easy to see that π 2 is injective linear map over F 3 . Therefore, if π 2 ( z c ) π 2 ( z c ) , then y y , as for z c , z c C c , there exist y , y C such that y + z c , y + z c C R s with y y .
(2.2).
For any z C C c , if z c C c C , we define π 2 by
π 2 ( 0 ) = 0 , π 2 ( za ) = z and π 2 ( z c ) = z c .
For all z , z B , π 2 ( z + z ) = π 2 ( z ) + π 2 ( z ) . Furthermore, π 2 is injective F 3 -linear map.
For both cases, since π 2 is injective, we have | C | | B | . This yields | C | | C R s | | B | | B R s | = 9 2 n . So, | C | | C R s | 9 2 n , this is a contradiction.
Hence, z c C c C such that z + z c C R s for any z C .
At this time, we add z c to C to get a new code D. We can check that, D D R s = { 0 } . If D is right-symplectic-nice, then D is right-symplectic ACD. Otherwise, repeat steps ( 1 ) and ( 2 ) for D. □
The definitions of the associated ternary codes (i.e., residue and torsion codes) of a linear E 3 code can be extended into an additive E 3 code C. Clearly, these codes are linear codes. Consider, dim ( res ( C ) ) = d 1 and dim ( tor ( C ) ) = d 2 .
For a linear E 3 code, C, of generator matrix G in the form given in Corollary 4.11 in [8]. Then, dim ( res ( C ) = k 1 = d 1 and dim ( tor ( C ) ) = k 1 + k 2 = d 1 + k 2 = d 2 , where k 2 is the F 3 -dimension of the set of all codewords of C which are scalar multiples of c E 3 and which can not be obtained from the upper two blocks of G.
For any codeword r of the code, C, we can write it in c-adic decomposition form as r = u a + v c with u , v are ternary vectors, so that α E 3 ( r ) = u .
Theorem 5.
For any additive E 3 code, C, of length 2 n . We have
C R s = res ( C ) s E 3 a n d | C R s | = 9 2 n dim ( res ( C ) ) = 9 2 n d 1 .
Proof. 
For any z C , there exists v res ( C ) such that z a = v a . Let u res ( C ) R s . Then,
( z , u a ) s = ( z a , u a ) s = ( v a , u a ) s = ( v , u ) s a 2 = ( v , u ) s a = 0 .
( z , u b ) s = ( z a , u b ) s = ( v a , u b ) s = ( v b , u b ) s = ( v , u ) s b = 0 .
These show that u a , u b C R s . Hence, res ( C ) s E 3 C R s since a and b are generators of E 3 and u a , u a C R s . Clearly, res ( C ) s E 3 = res ( C ) E 3 R s .
Now, we have to prove C R s res ( C ) s E 3 . Let x res ( C ) , then there exists x a + y c C R s such that α E 3 ( x a + y c ) = x .
Since c is a left-zero divisor, then for any z C R s , we get
( x a , z ) s = ( x a + y c , z ) s = 0 and ( x b , z ) s = ( x a , z ) s = 0 .
This yields z res ( C ) E 3 R s . So, C R s res ( C ) E 3 R s .
Consequently, C R s = res ( C ) s E 3 . Further, | C R s |   =   | res ( C ) s E 3 |   = 9 2 n d 1 . □
The following result derives a sufficient condition for an additive E 3 code to be right-symplectic ACD.
Proposition 7. 
Let C be an additive E 3 code of length 2 n . Then, C is a right-symplectic ACD code if the next statements hold:
(1).
The ternary code res ( C ) is symplectic LCD.
(2).
tor ( C ) c C R s = { 0 } .
(3).
3 d 1 + d 2 × 9 2 n d 1 = 9 2 n (i.e., d 1 = d 2 ).
Proof. 
First, it is clear that, | C | = | res ( C ) | | tor ( C ) | = 3 d 1 + d 2 and by Theorem 5, | C R s |   = 9 2 n d 1 . So, | C | | C R s |   = 9 2 n . This demonstrates that C is a right-symplectic-nice E 3 code. The final step is to show that C C R s = { 0 } . If it is possible, let 0 z = ( z 1 , z 2 , , z 2 n ) C C R s . As tor ( C ) c C R s = { 0 } , z is not a multiple of ternary vector by c. This yields α E 3 ( z ) 0 . Thus, for any y = ( y 1 , y 2 , , y 2 n ) C , we have ( y , z ) s = 0 . As α E 3 is a (ring) morphism, we get
( α E 3 ( y ) , α E 3 ( z ) ) s = i = 1 n ( α E 3 ( y i ) α E 3 ( z n + i ) α E 3 ( y n + i ) α E 3 ( z i ) ) = α E 3 i = 1 n ( y i z n + i y n + i z i ) = α E 3 ( y , z ) s = α E 3 ( 0 ) = 0 .
This derived that α E 3 ( z ) res ( C ) s , which contradicts that res ( C ) is symplectic LCD. Hence, z = 0 . So, C C R s = { 0 } .
Hence, C is a right-symplectic ACD code over E 3 . □
The inverse statement of Corollary 3 is also true, as the corollary below establishes.
Corollary 4. 
Let C be a free linear E 3 code with residue code is ternary symplectic LCD, then C is symplectic LCD.
Proof. 
Since res ( C ) is a symplectic LCD code, then to prove C is symplectic LCD is sufficient to check the conditions ( 2 ) and ( 3 ) of Proposition 7. We have C is an additive E 3 code, then by Theorem 5,
tor ( C ) c C R s = tor ( C ) c res ( C ) s E 3 = res ( C ) c res ( C ) s E 3 = res ( C ) c res ( C ) s c = ( res ( C ) res ( C ) s ) c = { 0 } .
This shows that condition (2) is satisfied. Therefore, from the freeness of C, we get d 1 = d 2 , so 3 d 1 + d 2 × 9 2 n d 1 = 9 d 1 × 9 2 n d 1 = 9 2 n . This yields condition (3) is satisfied.
Hence, C is right-symplectic ACD. Moreover, C is a symplectic LCD code over E 3 . □
We determine the residue and torsion codes of the right-symplectic dual codes of additive E 3 codes as the following theorem shows.
Theorem 6. 
Let C be an additive code over E 3 of length 2 n . Then,
res ( C R s ) = tor ( C R s ) = res ( C ) s .
Proof. 
By Lemma 3, C R s is a free linear code, then res ( C R s ) = tor ( C R s ) . Then, we have to check that res ( C R s ) res ( C ) s . Let x a + y c C R s and x a + y c C where x , x , y , y F 3 2 n . Then, α E 3 ( x a + y c ) = x res ( C R s ) and α E 3 ( x a + y c ) = x res ( C ) . Since α E 3 is a ring morphism and ( x a + y c , x a + y c ) s = 0 , we get
α E 3 ( ( x a + y c , x a + y c ) s ) = ( α E 3 ( x a + y c ) , α E 3 ( x a + y c ) ) s = ( x , x ) s = 0 .
This implies that x res ( C ) s . So, res ( C R s ) res ( C ) s .
To prove that res ( C ) s res ( C R s ) , suppose x is an arbitrary element of res ( C ) s . Let z = y a + y c C where y , y F 3 2 n . Then, α E 3 ( z ) = y res ( C ) . So,
( z , x a ) s = ( y a + y c , x a ) s = ( y a , x a ) s + ( y c , x a ) s = ( y a , x a ) s = ( y , x ) s a + 0 = 0 .
This shows that x a C R s . Thus, x res ( C R s ) as α E 3 ( x a ) = x . Hence, res ( C ) s res ( C R s ) . Therefore, res ( C R s ) = res ( C ) s . □
Corollary 5. 
For any linear E 3 code, C, we have tor ( C ) s tor ( C R s ) . Particularly, if C is free, then tor ( C R s ) = tor ( C ) s .
Proof. 
First we have, res ( C ) tor ( C ) as C is a linear E 3 code, then tor ( C ) s res ( C ) s . By Theorem 6, res ( C R s ) = res ( C ) s tor ( C ) s . According to Lemma 3, C R s is free, so tor ( C R s ) = res ( C R s ) . Hence, tor ( C ) s tor ( C R s ) . Therefore, if C is free, then tor ( C ) = res ( C ) . Thus, tor ( C ) s = res ( C ) s . By Lemma 3 and Theorem 6, tor ( C R s ) = res ( C R s ) = res ( C ) s . Hence, tor ( C R s ) = tor ( C ) s . □
The converse statement of Proposition 7 partially holds.
Proposition 8. 
For an additive E 3 code, C, of length 2 n . We have, tor ( C ) c C R s = { 0 } , res ( C ) is a ternary symplectic LCD code and 3 d 1 + d 2 × 9 2 n d 1 = 9 2 n (i.e., d 1 = d 2 ) if C is a right-symplectic ACD code over E 3 with C c C R s = { 0 } .
Proof. 
Let z tor ( C ) c C R s . Then, z tor ( C ) c ; this means z = t c with t tor ( C ) . By the definition of the torsion code, z C . This together with z C R s imply that z C C R s . Since C is right-symplectic ACD code, z = 0 . Hence, tor ( C ) c C R s = { 0 } .
We have | C | = | res ( C ) | | tor ( C ) | = 3 d 1 + d 2 and by Theorem 5, | C R s |   = 9 2 n d 1 . Therefore, | C | | C R s |   = 3 d 1 + d 2 × 9 2 n d 1 . Since C is right-symplectic-nice, 3 d 1 + d 2 × 9 2 n d 1 = 9 2 n . Hence, d 1 = d 2 . Now, let r res ( C ) res ( C ) s . By Theorem 6, r res ( C ) s = res ( C R s ) . Thus, there are r a + t a C and r a + t a C R s such that α E 3 ( r a + t a ) = α E 3 ( r a + t a ) = r . From the linearity of C R s over E 3 , we get ( r a + t a ) c = r c C R s . Therefore, ( r a + t a ) c = r c C c . So, ( r a + t a ) c C c C R s = { 0 } . Thus, r c = 0 , also r = 0 . Hence, res ( C ) is a ternary symplectic LCD code. □
Proposition 9. 
Let C be an additive code of length 2 n over E 3 . Then, tor ( C L s ) res ( C ) s . Equality holds if C is linear.
Proof. 
Let z = r a + t c C L s where r , t F 3 2 n . Then, α E 3 ( z ) = α E 3 ( r a + t c ) = r is an arbitrary codeword of res ( C L s ) . Therefore, let t tor ( C ) , then t c C . This together with z C L s , we get
0 = ( z , t c ) s = ( r a + t c , t c ) s = ( r a , t c ) s + ( t c , t c ) s = ( r , t ) s c .
This yields ( r , t ) s = 0 . Hence, r tor ( C L s ) . So, tor ( C L s ) res ( C ) s .
Now, suppose that C is a linear code. Then, let z C . By Theorem 3.5 in [8], z = x a + y c for some x res ( C ) and y tor ( C ) . Let y tor ( C ) s , we have res ( C ) tor ( C ) . Then, we obtain
( y a , z ) s = ( y a , y a + y c ) s = ( y a , x a ) s + ( y a , y c ) s = ( y , x ) s a + ( y , y ) s c = 0 + 0 = 0 .
Hence, y a C L s . This implies that, α E 3 ( y a ) = y res ( C L s ) . So, tor ( C ) s res ( C L s ) . Therefore, res ( C L s ) = tor ( C ) s . □
Proposition 10. 
For a linear E 3 code, C, of length 2 n . We have,
C is free if ,   and only if ,   res ( C R s ) = res ( C L s )
Proof. 
Suppose C is a linear E 3 code. By Theorem 6, res ( C R s ) = res ( C ) s ) . According to Proposition 9, res ( C L s ) = tor ( C ) s . Since C is free, res ( C ) = tor ( C ) . Thus, res ( C ) s = tor ( C ) s . Hence, res ( C R s ) = res ( C L s ) .
For the inverse assertion. Assume, C is a linear E 3 code with res ( C R s ) = res ( C L s ) . By Theorem 6 and Proposition 9, tor ( C ) s = res ( C ) s . So, tor ( C ) = res ( C ) . Hence, C is free. □
In what follows, we give an example to describe Theorem 4 and Proposition 7.
Example 2. 
Let C be an additive E 3 code of length 4 and additive generator matrix
G = a 2 b 0 0 0 0 a 2 b
Let ( y , y , z , z ) C R s . Then,
( ( a , 2 b , 0 , 0 ) , ( y , y , z , z ) ) s = 0 a n d ( ( 0 , 0 , a , 2 b ) , ( y , y , z , z ) ) s = 0 .
These imply that a z + 2 b z = 0 and 2 a y + b y = 0 . Since a x = b x = x for any x E 3 , we get z + 2 z = 0 and 2 y + y = 0 . So, z = z and y = y . Hence, C R s = { ( y , y , z , z ) | y , z E 3 } .
It is easy to derive, C C R s = C c C R s = { 0 } . Furthermore, | C |   = 9 and | C R s |   = 9 2 . So, | C | | C R s |   = 9 3 < 9 4 . We add ( a , 2 b , 0 , 0 ) c = ( c , 2 c , 0 , 0 ) and ( 0 , 0 , a , 2 b ) c = ( 0 , 0 , 2 c , c ) to G , then we get G where
G = a 2 b 0 0 0 0 a 2 b c 2 c 0 0 0 0 c 2 c
Let C be the additive E 3 –code of length 4 with an additive generator matrix G . Then, according to Theorem 4, C is right-symplectic ACD over E 3 .
To prove C is right-symplectic ACD, we check is this code satisfies the conditions of Proposition 7. First, we prove that res ( C ) is ternary symplectic LCD code. Let ( z 1 , z 2 , z 3 , z 4 ) res ( C ) s . Then,
( ( y , y , z , z ) , ( 1 , 2 , 0 , 0 ) ) s = 0 a n d ( ( y , y , z , z ) , ( 0 , 0 , 1 , 2 ) ) s = 0 .
Thus, 2 z + z = 0 and 2 y + y = 0 . So, z = z 3 and y = y . Hence, res ( C ) s = { ( y , y , z , z ) | ; z F 3 } . This gives res ( C ) res ( C ) s = { 0 } . Hence, res ( C ) is a ternary symplectic LCD.
Clearly, res ( C ) has the generator matrix G 1 = 1 2 0 0 0 0 1 2 and the generator matrix of tor ( C ) is G 2 = 1 2 0 0 0 0 1 2 . These show that d 1 = d 2 = 2 .
Therefore, tor ( C ) c has generator matrix c 2 c 0 0 0 0 c 2 c .
By Theorem 5, C R s = res ( C ) s E 3 . It is easy to see that, tor ( C ) c C R s = { 0 } .
Hence, C is right-symplectic ACD code over E 3 according to Proposition 7.

5. Conclusions

We have introduced symplectic QSD, LCD, and ACD codes over non-commutative non-unitary local ring E 3 with nine elements. Using symplectic–self-orthogonal ternary linear codes, we have given the multi-level construction of symplectic QSD codes. We have shown the relationship between symplectic LCD E 3 codes and ternary symplectic LCD codes. Further, the right-symplectic ACD E 3 codes were introduced and for the existence of such codes, and several conditions have been stated. We have also characterized the right-symplectic ACD codes over E 3 .
The construction of quantum codes can be achieved by deriving classical codes over finite fields with the symplectic–self-orthogonal property [14,15]. Therefore, these codes could be applied to construct quantum codes over this ring.
Additionally, it will be interesting to derive a mass formula for symplectic QSD and self-dual E 3 codes and classify them in modest lengths. Moreover, the absence of non-trivial symplectic left LCD codes over E 3 makes the study of symplectic left hull codes over this ring a natural direction for future work.

Author Contributions

Conceptualization, S.M., P.S., A.A. and W.B.; Methodology, S.M. and P.S.; Validation, S.M., A.A. and W.B.; Formal analysis, S.M.; Investigation, S.M. and P.S.; Resources, S.M., P.S. and A.A.; Data curation, S.M., P.S. and W.B.; Writing—original draft, S.M.; Writing—review & editing, S.M., P.S., A.A. and W.B.; Visualization, W.B.; Supervision, P.S.; Project administration, P.S. and A.A.; Funding acquisition, P.S., A.A. and W.B. All authors have read and agreed to the published version of the manuscript.

Funding

The Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia has funded this project, under grant no. (KEP-PhD-66-130-42).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

This project was funded by the Deanship of Scientific Research (DSR) at King Abdulaziz University (KAU), Jeddah, Saudi Arabia under grant no. (KEP-PhD-66-130-42). The authors, therefore, acknowledge with thanks DSR technical and financial support.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alahmadi, A.; Altassan, A.; Basaffar, W.; Shoaib, H.; Solé, P. Quasi Type IV codes over a non-unital ring. Appl. Algebra Eng. Commun. Comput. 2021, 32, 217–228. [Google Scholar] [CrossRef]
  2. Alahmadi, A.; Altassan, A.; Basaffar, W.; Shoaib, H.; Bonnecaze, A.; Solé, P. Type IV codes over a non-unital ring. J. Algebra Appl. 2022, 21, 2250142. [Google Scholar] [CrossRef]
  3. Alahmadi, A.; Melaibari, A.; Solé, P. Duality of Codes Over Non-Unital Rings of Order Four. IEEE Access 2023, 11, 53120–53133. [Google Scholar] [CrossRef]
  4. Shi, M.; Li, S.; Kim, J.L.; Solé, P. LCD and ACD codes over a noncommutative non-unital ring with four elements. Cryptogr. Commun. 2022, 14, 627–640. [Google Scholar] [CrossRef]
  5. Alahmadi, A.; Alshuhail, A.; Betty, R.A.; Galvez, L.; Solé, P. The Mass Formula for Self-Orthogonal and Self-Dual Codes over a Non-Unitary Non-Commutative Ring. Mathematics 2024, 15, 862. [Google Scholar] [CrossRef]
  6. Alahmadi, A.; Alshuhail, A.; Solé, P. The mass formula for self-orthogonal and self-dual codes over a non-unitary commutative ring. AIMS Math. 2023, 8, 24367–24378. [Google Scholar] [CrossRef]
  7. Alahmadi, A.; Alshuhail, A.; Betty, R.A.; Galvez, L.; Solé, P. Mass formula for self-orthogonal and self-dual codes over non-unital rings of order four. Mathematics 2023, 11, 4736. [Google Scholar] [CrossRef]
  8. Kushwaha, A.; Yadav, S.; Prakash, S. The Quasi self-dual, Right LCD and ACD codes over a noncommutative non-unital ring. J. Algebra Comb. Discrete Struct. Appl. 2024, 11, 207–225. [Google Scholar] [CrossRef]
  9. Manseri, S.; Betty, R.A.; Galvez, L.; Solé, P. Symplectic codes over a non-unitary ring. J. Algebra Appl. 2025, in press. [Google Scholar] [CrossRef]
  10. Manseri, S.; Solé, P. Symplectic ACD codes over a non-commutative non-unitary ring. Comput. Appl. Math. 2025, 44, 140. [Google Scholar] [CrossRef]
  11. Manseri, S.; Alahmadi, A.; Basaffar, W.; Betty, R.A.; Galvez, L.; Solé, P. Symplectic-QSD codes over a non-unital non-local ring. J. Algebra Appl. 2025. submitted. [Google Scholar]
  12. Fine, B. Classification of Finite rings of Order p2. Math. Mag. 1993, 66, 248–252. [Google Scholar] [CrossRef]
  13. Bosma, W.; Cannon, J.; Playoust, C. The Magma algebra system I: The user language. J. Symb. Comput. 1997, 24, 235–265. [Google Scholar] [CrossRef]
  14. Li, Y.; Zhu, S. On symplectic hulls of linear codes and related applications. J. Appl. Math. Comput. 2024, 70, 2603–2622. [Google Scholar] [CrossRef]
  15. Xu, H.Q.; Du, W. Constructions of symplectic LCD MDS codes. Bull. Malays. Math. Sci. Soc. 2021, 44, 3377–3390. [Google Scholar] [CrossRef]
Table 1. Multiplication table for E 3 .
Table 1. Multiplication table for E 3 .
×0abc 2 a 2 b 2 c a + b a + c
0000000000
a0abc 2 a 2 b 2 c a + b a + c
b0abc 2 a 2 b 2 c a + b a + c
c000000000
2 a 0 2 a 2 b 2 c abc a + c a + b
2 b 0 2 a 2 b 2 c abc a + c a + b
2 c 000000000
a + b 0 2 a 2 b 2 c abc a + c a + b
a + c 0abc 2 a 2 b 2 c a + b a + c
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

Manseri, S.; Solé, P.; Alahmadi, A.; Basaffar, W. Symplectic QSD, LCD, and ACD Codes over a Non-Commutative Non-Unitary Ring of Order Nine. Entropy 2025, 27, 973. https://doi.org/10.3390/e27090973

AMA Style

Manseri S, Solé P, Alahmadi A, Basaffar W. Symplectic QSD, LCD, and ACD Codes over a Non-Commutative Non-Unitary Ring of Order Nine. Entropy. 2025; 27(9):973. https://doi.org/10.3390/e27090973

Chicago/Turabian Style

Manseri, Sarra, Patrick Solé, Adel Alahmadi, and Widyan Basaffar. 2025. "Symplectic QSD, LCD, and ACD Codes over a Non-Commutative Non-Unitary Ring of Order Nine" Entropy 27, no. 9: 973. https://doi.org/10.3390/e27090973

APA Style

Manseri, S., Solé, P., Alahmadi, A., & Basaffar, W. (2025). Symplectic QSD, LCD, and ACD Codes over a Non-Commutative Non-Unitary Ring of Order Nine. Entropy, 27(9), 973. https://doi.org/10.3390/e27090973

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