PrePropagate¶
- class samplomatic.pre_samplex.PrePropagate(subsystems: Partition[int], direction: Direction, operation: Gate, partition: Partition[int], spec: InstructionSpec)[source]¶
Bases:
PreNodeThe propagation node type used during samplex building.
Attributes Summary
The direction of virtual gates that cat interact with this node.
The operation to propagate through.
A partition of subsystem indices, each of which is propagated jointly.
Specification for how the operation acts on virtual gates.
The subsystems that virtual gates act on.
Methods Summary
Summarizes the style of this node when plotted via
plot_graph().Attributes Documentation
- direction: Direction = <dataclasses._MISSING_TYPE object>¶
The direction of virtual gates that cat interact with this node.
- partition: Partition[int] = <dataclasses._MISSING_TYPE object>¶
A partition of subsystem indices, each of which is propagated jointly.
For example, a CX gate propagates pairs of single-qubit subsystems jointly. In this case, a partition would be a list of pairs of subsystem indices, where pairs are disjoint from each other.
- spec: InstructionSpec = <dataclasses._MISSING_TYPE object>¶
Specification for how the operation acts on virtual gates.
- subsystems: Partition[int] = <dataclasses._MISSING_TYPE object>¶
The subsystems that virtual gates act on.
Methods Documentation
- get_style()[source]¶
Summarizes the style of this node when plotted via
plot_graph().