PreZ2Collect

class samplomatic.pre_samplex.PreZ2Collect(subsystems: Partition[int], clbit_idxs: dict[str, list[int]], subsystems_idxs: dict[str, list[int]])[source]

Bases: PreNode

The Z2-collection node type used during samplex building.

Attributes Summary

clbit_idxs

A dictionary from classical register names to indices this node writes to.

direction

The direction of virtual gates that cat interact with this node.

subsystems

The subsystems that virtual gates act on.

subsystems_idxs

A dictionary from classical register names to subsystem indices from which to collect.

Methods Summary

get_style()

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().