PreEdge

class samplomatic.pre_samplex.PreEdge(subsystems: Partition[int], direction: Direction, force_register_copy: bool = False)[source]

Bases: object

Edge data on a samplex builder’s graph.

Attributes Summary

direction

Whether the edge is moving forwards or backwards in circuit-time.

force_register_copy

Whether the edge should force the receiving node to get a copy of the register.

subsystems

The subsystems that virtual gates act on.

Methods Summary

add_subsystems(new_subsystems)

Add subsystems to an existing PreEdge

get_style()

Summarizes the style of this node when plotted via plot_graph().

Attributes Documentation

direction: Direction = <dataclasses._MISSING_TYPE object>

Whether the edge is moving forwards or backwards in circuit-time.

force_register_copy: bool = False

Whether the edge should force the receiving node to get a copy of the register.

subsystems: Partition[int] = <dataclasses._MISSING_TYPE object>

The subsystems that virtual gates act on.

Methods Documentation

add_subsystems(new_subsystems: Partition[int])[source]

Add subsystems to an existing PreEdge

get_style() EdgeStyle[source]

Summarizes the style of this node when plotted via plot_graph().