PreCollect
class samplomatic.pre_samplex.PreCollect(subsystems: Partition[int], direction: Direction, synth: Synth, param_idxs: ndarray[tuple[int, int], dtype[int64]], *, trace_info: TraceInfo | None = None)
Bases: PreNode
The collection node type used during samplex building.
Attributes Summary
Column 1 | Column 2 |
|---|---|
direction | The direction of virtual gates that can interact with this node. |
param_idxs | The indices of the template circuit to write the synthesis results to. |
subsystems | The subsystems that virtual gates act on. |
synth | The synthesizer to convert virtual to physical gates. |
trace_info | Debug trace information, populated when building with debug=True. |
Methods Summary
Column 1 | Column 2 |
|---|---|
add_subsystems(new_subsystems, new_param_idxs) | Add subsystems to existing PreCollect node. |
get_style() | Summarizes the style of this node when plotted via plot_graph(). |
Attributes Documentation
direction
Type: Direction
Default value: <dataclasses._MISSING_TYPE object>
The direction of virtual gates that can interact with this node.
param_idxs
Type: ndarray[tuple[int, int], dtype[int64]]
Default value: <dataclasses._MISSING_TYPE object>
The indices of the template circuit to write the synthesis results to.
This should be ordered according to subsystems.
subsystems
Default value: <dataclasses._MISSING_TYPE object>
The subsystems that virtual gates act on.
synth
Type: Synth
Default value: <dataclasses._MISSING_TYPE object>
The synthesizer to convert virtual to physical gates.
trace_info
Type: TraceInfo | None
Default value: None
Debug trace information, populated when building with debug=True.
Methods Documentation
add_subsystems
add_subsystems(new_subsystems: Partition[int], new_param_idxs: ndarray[tuple[int, int], dtype[int64]])
Add subsystems to existing PreCollect node.