PrePropagate

class samplomatic.pre_samplex.PrePropagate(subsystems: Partition[int], direction: Direction, operation: Gate, partition: Partition[int], spec: InstructionSpec)[source]

Bases: PreNode

The propagation node type used during samplex building.

Attributes Summary

direction

The direction of virtual gates that cat interact with this node.

operation

The operation to propagate through.

partition

A partition of subsystem indices, each of which is propagated jointly.

spec

Specification for how the operation acts on virtual gates.

subsystems

The subsystems that virtual gates act on.

Methods Summary

get_style()

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.

operation: Gate = <dataclasses._MISSING_TYPE object>

The operation to propagate through.

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().