"Source: Text/Code/QECC.text";
"Line: 649";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Code/QECC.text, line: 649
// Example: H171E12 ()
print "Example: H171E12";
ei := GetEchoInput();
SetEchoInput(true);
F<w> := GF(4);
v4 := RSpace(F, 21) ! [w^2,w^2,1,w,0,0,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0];
v2 := RSpace(GF(2),21) ! [1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0];
Q := QuantumCyclicCode(v4,v2);
MinimumWeight(Q);
assert $1 eq 8;
Q:Minimal;
v4 := RSpace(F, 21) ! [w,0,w^2,w^2,w,w^2,w^2,0,w,1,0,0,1,0,0,0,0,1,0,0,1];
v2 := RSpace(GF(2), 21) ! [1,0,1,1,1,0,0,1,0,1,1,1,0,0,1,0,1,1,1,0,0];
Q := QuantumCyclicCode(v4,v2);
MinimumWeight(Q);
assert $1 eq 6;
Q:Minimal;
SetEchoInput(ei);
