qecx.model.operations.LogicalMeasurementSet¶
- class qecx.model.operations.LogicalMeasurementSet(entries)¶
Bases:
Mapping[PauliProductOperator,Mapping[tuple[Operand, …],VariantGroup[LogicalMeasurementVariant]]]Logical-measurement variants addressed by observable and operand signature.
Holds
LogicalMeasurementVariantgroups keyed byPauliProductOperatorobservable, then by canonical operand signature; registered under theoperations_key"logical_measurement".- find(observable, operands)¶
Return the logical-measurement variant registered for a signature, or
None.Resolves the observable
observableand the operand signatureoperandsto the default variant of the matching group, matching the signature up to block-label renaming.- Parameters:
observable (PauliProductOperator) – The measured observable.
operands (tuple[Operand, ...]) – The operand signature to look up.
- Returns:
The matching group’s default variant, or
Nonewhen no group matches.- Return type: