In coding theory, the hexacode is a length 6 linear code of dimension 3 over the Galois field G F ( 4 ) = { 0 , 1 , ω , ω 2 } {\displaystyle GF(4)=\{0,1,\omega ,\omega ^{2}\}} of 4 elements defined by
It is a 3-dimensional subspace of the vector space of dimension 6 over G F ( 4 ) {\displaystyle GF(4)} . Then H {\displaystyle H} contains 45 codewords of weight 4, 18 codewords of weight 6 and the zero word. The full automorphism group of the hexacode is 3. A 6 {\displaystyle 3.A_{6}} . The hexacode can be used to describe the Miracle Octad Generator of R. T. Curtis.