char_vec
: a length2n
vector with elements in theZ/(2p)
ifchracteristic(field(C1))
is 2 andZ/(p)
otherwise. The firstn
elements specify the exponents of theX
phases and secondn
the exponents of theZ
phases; a missing argument will be set to the all-zero vector
Notes
- A
+1
phase should be entered as0
since the character vector stores the exponents. - Stabilizer signs are automatically computed given the character vector.
- The orthogonality of the stabilizers are automatically checked and will error upon failure.
assumed to be in symplectic form over the base field.
- This is intended to be a simple function wrapper for
typeof(S)
since the
constructor for SubsystemCode
automatically returns a SubsystemCodeCSS
if possible. Manually changing the elements of the struct S
without using the helper functions provided here is therefore not recommended.