qecx.SyndromeCregDecl¶
- class qecx.SyndromeCregDecl(name, source, indices=None, block_index=None, frame=None)¶
Bases:
objectDeclaration of one syndrome classical register.
- Variables:
name (str) – Name of the classical register whose bits hold the declared checks.
source (SyndromeSource) – Which check-matrix or generator family the syndrome bits capture.
indices (tuple[int, ...] | None) – Selection of rows or elements of
source;Nonemeans all rows or elements in natural order; sequence input is normalized to a tuple at construction.block_index (int | None) – Operand block label of the block whose checks the register holds;
Nonewhen the declaration names no block.frame (CheckFrame | None) – Frame the checks are named in;
Nonewhen the key is absent, the declaring variant’s operation kind then supplying its default where it has one.