PreEmit

class samplomatic.pre_samplex.PreEmit(subsystems: Partition[int], direction: Direction, register_type: GroupMode, *, twirl_gate: str | None = None)[source]

Bases: PreNode

The emission node type used during samplex building.

Attributes Summary

direction

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

register_type

The type and distribution of virtual gates to emit.

subsystems

The subsystems that virtual gates act on.

twirl_gate

The gate name used for UniformLocalC1 sampling, or None.

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 can interact with this node.

register_type: GroupMode = <dataclasses._MISSING_TYPE object>

The type and distribution of virtual gates to emit.

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

The subsystems that virtual gates act on.

twirl_gate: str | None = None

The gate name used for UniformLocalC1 sampling, or None.

Methods Documentation

get_style()[source]

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