qecx.TransversalReadoutCregDecl¶
- class qecx.TransversalReadoutCregDecl(name, source, indices=None, qubits=None, block_index=None, frame=None)¶
Bases:
objectDeclaration of checks read from one classical register holding one bit per block qubit.
For each declared check, the parity of the register’s bits over the check’s support equals the check’s value, whatever its Pauli on each qubit. For a gauge source, the claim holds for each set of declared rows whose product is a stabilizer, with that stabilizer’s value. Several declarations may name one register, for example one per source of a readout in mixed bases.
- Variables:
name (str) – Name of the classical register the declaration reads.
source (SyndromeSource) – Which check-matrix or generator family the declared checks belong to.
indices (tuple[int, ...] | None) – Selection of rows of
sourcethe declaration names, strictly increasing;Nonenames every row; sequence input is normalized to a tuple at construction.qubits (tuple[int, ...] | None) – Block qubit each register bit reads, bit
ireading block qubitqubits[i], the entries distinct;Nonemeans bitireads block qubiti; 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.