PreChangeBasis
class samplomatic.pre_samplex.PreChangeBasis(subsystems: Partition[int], direction: Direction, register_type: VirtualType, basis_ref: str, basis_change: Literal['local_clifford', 'pauli_prepare', 'pauli_measure'], *, trace_info: TraceInfo | None = None, twirl_gate: str | None = None)
Bases: PreEmit
The basis emit node type used during samplex building.
Attributes Summary
Column 1 | Column 2 |
|---|---|
basis_change | What kind of basis change to use. |
basis_ref | Unique identifier of this basis change. |
direction | The direction of virtual gates that can interact with this node. |
register_type | The virtual register type of the basis change. |
subsystems | The subsystems that virtual gates act on. |
trace_info | Debug trace information, populated when building with debug=True. |
twirl_gate | The gate name used for gate-dependent sampling, or None. |
Methods Summary
Column 1 | Column 2 |
|---|---|
get_style() | Summarizes the style of this node when plotted via plot_graph(). |
Attributes Documentation
basis_change
Type: Literal['local_clifford', 'pauli_prepare', 'pauli_measure']
Default value: <dataclasses._MISSING_TYPE object>
What kind of basis change to use.
basis_ref
direction
Type: Direction
Default value: <dataclasses._MISSING_TYPE object>
The direction of virtual gates that can interact with this node.
register_type
Type: VirtualType
Default value: <dataclasses._MISSING_TYPE object>
The virtual register type of the basis change.
subsystems
Default value: <dataclasses._MISSING_TYPE object>
The subsystems that virtual gates act on.
trace_info
Type: TraceInfo | None
Default value: None
Debug trace information, populated when building with debug=True.
twirl_gate
Methods Documentation