PrePropagateKey

class samplomatic.pre_samplex.PrePropagateKey(mode: InstructionMode, operation_name: str, direction: Direction, is_parameterized: bool)[source]

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

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

direction: Direction = <dataclasses._MISSING_TYPE object>

The direction of the PrePropagate node.

is_parameterized: bool = <dataclasses._MISSING_TYPE object>

Whether or not the operation is parameterized.

mode: InstructionMode = <dataclasses._MISSING_TYPE object>

The mode of the PrePropagate node.

operation_name: str = <dataclasses._MISSING_TYPE object>

The name of the operation of the PrePropagate node.