qecx.SyndromeCregDecl

class qecx.SyndromeCregDecl(name, source, indices=None, block_index=None, frame=None)

Bases: object

Declaration 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; None means 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; None when the declaration names no block.

  • frame (CheckFrame | None) – Frame the checks are named in; None when the key is absent, the declaring variant’s operation kind then supplying its default where it has one.