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'], *, twirl_gate: str | None = None)[source]¶
Bases:
PreEmitThe basis emit node type used during samplex building.
Attributes Summary
What kind of basis change to use.
Unique identifier of this basis change.
The direction of virtual gates that can interact with this node.
The virtual register type of the basis change.
The subsystems that virtual gates act on.
The gate name used for
UniformLocalC1sampling, orNone.Methods Summary
Summarizes the style of this node when plotted via
plot_graph().Attributes Documentation
- basis_change: Literal['local_clifford', 'pauli_prepare', 'pauli_measure'] = <dataclasses._MISSING_TYPE object>¶
What kind of basis change to use.
- direction: Direction = <dataclasses._MISSING_TYPE object>¶
The direction of virtual gates that can interact with this node.
- register_type: VirtualType = <dataclasses._MISSING_TYPE object>¶
The virtual register type of the basis change.
- 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().