qecx.model.operations.LogicalGateSet¶
- class qecx.model.operations.LogicalGateSet(entries)¶
Bases:
Mapping[str,Mapping[tuple[Operand, …],VariantGroup[LogicalGateVariant]]]Logical-gate variants addressed by gate name and operand signature.
Holds
LogicalGateVariantgroups keyed by gate name, then by canonical operand signature; registered under theoperations_key"logical_gates".- find(gate, operands)¶
Return the logical-gate variant registered for a signature, or
None.Resolves gate
gateand the operand signatureoperandsto the default variant of the matching group, matching the signature up to block-label renaming.- Parameters:
- Returns:
The matching group’s default variant, or
Nonewhen no group matches.- Return type: