Skip to main content
IBM Quantum Platform

PrePropagateKey

class samplomatic.pre_samplex.PrePropagateKey(mode: InstructionMode, operation_name: str, direction: Direction, is_parameterized: bool, commutant_twirl: bool = False)

GitHub

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_twirlWhether this operation should be twirled with its commutant.
directionThe direction of the PrePropagate node.
is_parameterizedWhether or not the operation is parameterized.
modeThe mode of the PrePropagate node.
operation_nameThe name of the operation of the PrePropagate node.

Attributes Documentation

commutant_twirl

Type: bool

Default value: False

Whether this operation should be twirled with its commutant.

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.

Was this page helpful?
Report a bug, typo, or request content on GitHub.