PreChangeBasis

class samplomatic.pre_samplex.PreChangeBasis(subsystems: Partition[int], direction: Direction, register_type: VirtualType, basis_ref: str)[source]

Bases: PreEmit

The basis emit node type used during samplex building.

Attributes Summary

basis_ref

Unique identifier of this basis change.

direction

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

register_type

The type of virtual gates to emit.

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

basis_ref: str = <dataclasses._MISSING_TYPE object>

Unique identifier of this basis change.

direction: Direction = <dataclasses._MISSING_TYPE object>

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

register_type: VirtualType = <dataclasses._MISSING_TYPE object>

The type of virtual gates to emit.

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

The subsystems that virtual gates act on.

Methods Documentation

get_style() NodeStyle[source]

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