PrePropagateKey
class samplomatic.pre_samplex.PrePropagateKey(mode: InstructionMode, operation_name: str, direction: Direction, is_parameterized: bool, commutant_twirl: bool = False)
Bases: object
A key used to identify the “type” of PrePropagate nodes for clustering purposes.
The key includes only properties of the node for which a difference between two nodes would make the nodes unmergeable. This, however, doesn’t automatically mean that a matching key makes nodes mergable. Other considerations in determining the mergeability include the subsystems and predecessor nodes.
Attributes Summary
Column 1 | Column 2 |
|---|---|
commutant_twirl | Whether this operation should be twirled with its commutant. |
direction | The direction of the PrePropagate node. |
is_parameterized | Whether or not the operation is parameterized. |
mode | The mode of the PrePropagate node. |
operation_name | The name of the operation of the PrePropagate node. |
Attributes Documentation
commutant_twirl
direction
Type: Direction
Default value: <dataclasses._MISSING_TYPE object>
The direction of the PrePropagate node.
is_parameterized
Type: bool
Default value: <dataclasses._MISSING_TYPE object>
Whether or not the operation is parameterized.
mode
Type: InstructionMode
Default value: <dataclasses._MISSING_TYPE object>
The mode of the PrePropagate node.
operation_name
Type: str
Default value: <dataclasses._MISSING_TYPE object>
The name of the operation of the PrePropagate node.