This is the primitive operation of measurement for error-correcting codes; it takes a list of errors on a subset of the primal lattice of the code and translates it into syndromes on a subset of the dual lattice.
Parameters: |
|
---|
subclass of py_qcode.ErrorCheck, takes anything that can be cast to a qecc.Pauli instead of a rule, and uses commutation to determine the syndrome.
Wraps a bunch of parity checks.
Parameters: | parity_check_list (list) – A list of py_qcode.ErrorCheck objects, which can be a mix of any subclass of py_qcode.ErrorCheck. |
---|
Evaluates all the parity checks.
Uses a few convenience functions to produce the toric code on a set of square lattices.
Uses a few convenience functions to produce the concatenated toric/[[4,2,2]] code on a set of square lattices.