PreZ2Collect¶
- class samplomatic.pre_samplex.PreZ2Collect(subsystems: Partition[int], clbit_idxs: dict[str, list[int]], subsystems_idxs: dict[str, list[int]])[source]¶
Bases:
PreNodeThe Z2-collection node type used during samplex building.
Attributes Summary
A dictionary from classical register names to indices this node writes to.
The direction of virtual gates that cat interact with this node.
The subsystems that virtual gates act on.
A dictionary from classical register names to subsystem indices from which to collect.
Methods Summary
Summarizes the style of this node when plotted via
plot_graph().Attributes Documentation
- clbit_idxs: dict[str, list[int]] = <dataclasses._MISSING_TYPE object>¶
A dictionary from classical register names to indices this node writes to.
- direction: Direction = <dataclasses._MISSING_TYPE object>¶
The direction of virtual gates that cat interact with this node.
- subsystems: Partition[int] = <dataclasses._MISSING_TYPE object>¶
The subsystems that virtual gates act on.
- subsystems_idxs: dict[str, list[int]] = <dataclasses._MISSING_TYPE object>¶
A dictionary from classical register names to subsystem indices from which to collect.
Methods Documentation
- get_style()[source]¶
Summarizes the style of this node when plotted via
plot_graph().