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 LogicalMeasurementVariant groups keyed by PauliProductOperator observable, then by canonical operand signature; registered under the operations_key "logical_measurement".

find(observable, operands)

Return the logical-measurement variant registered for a signature, or None.

Resolves the observable observable and the operand signature operands to the default variant of the matching group, matching the signature up to block-label renaming.

Parameters:
Returns:

The matching group’s default variant, or None when no group matches.

Return type:

LogicalMeasurementVariant | None

to_dict()

Return the operation set as its serialized container.

Returns:

The logical-addressing operation container, ready to embed under the set’s operations_key in a document dict.

Return type:

dict[str, Any]