PreCollect¶
- class samplomatic.pre_samplex.PreCollect(subsystems: Partition[int], direction: Direction, synth: Synth, param_idxs: ndarray[tuple[int, int], dtype[int64]])[source]¶
Bases:
PreNodeThe collection node type used during samplex building.
Attributes Summary
The direction of virtual gates that cat interact with this node.
The indices of the template circuit to write the synthesis results to.
The subsystems that virtual gates act on.
The synthesizer to convert virtual to physical gates.
Methods Summary
add_subsystems(new_subsystems, new_param_idxs)Add subsystems to existing
PreCollectnode.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 cat interact with this node.
- param_idxs: ndarray[tuple[int, int], dtype[int64]] = <dataclasses._MISSING_TYPE object>¶
The indices of the template circuit to write the synthesis results to.
This should be ordered according to
subsystems.
- subsystems: Partition[int] = <dataclasses._MISSING_TYPE object>¶
The subsystems that virtual gates act on.
- synth: Synth = <dataclasses._MISSING_TYPE object>¶
The synthesizer to convert virtual to physical gates.
Methods Documentation
- add_subsystems(new_subsystems: Partition[int], new_param_idxs: ndarray[tuple[int, int], dtype[int64]])[source]¶
Add subsystems to existing
PreCollectnode.
- get_style()[source]¶
Summarizes the style of this node when plotted via
plot_graph().