Skip to main content
IBM Quantum Platform

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)

GitHub

Bases: PreNode

The collection node type used during samplex building.

Attributes Summary

Column 1
Column 2
directionThe direction of virtual gates that can interact with this node.
param_idxsThe indices of the template circuit to write the synthesis results to.
subsystemsThe subsystems that virtual gates act on.
synthThe synthesizer to convert virtual to physical gates.
trace_infoDebug 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

Type: Partition[int]

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]])

GitHub

Add subsystems to existing PreCollect node.

get_style

get_style()

GitHub

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

Was this page helpful?
Report a bug, typo, or request content on GitHub.