"Source: Text/Code/QECC.text";
"Line: 314";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Code/QECC.text, line: 314
// Example: H171E4 ()
print "Example: H171E4";
ei := GetEchoInput();
SetEchoInput(true);
F<w> := GF(4);
M := Matrix(F, 3, 7, [1,w,w,w,0,0,1, w,0,1,0,w^2,0,1, 0,w^2,w,w^2,w,0,0]);
C := AdditiveCode(GF(2),M);
C;
IsSymplecticSelfOrthogonal(C);
assert $1;
IsLinear(C);
assert not $1;
{* Weight(v) mod 2 : v in C *};
Q := QuantumCode(C);
MinimumWeight(Q);
assert $1 eq 1;
Q;
SetEchoInput(ei);
