PreCollect

class samplomatic.pre_samplex.PreCollect(subsystems: Partition[int], direction: Direction, synth: Synth, param_idxs: ndarray[tuple[int, int], dtype[int64]])[source]

Bases: PreNode

The collection node type used during samplex building.

Attributes Summary

direction

The direction of virtual gates that cat 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.

Methods Summary

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: 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 PreCollect node.

get_style()[source]

Summarizes the style of this node when plotted via plot_graph().