exa.core.experiment.utils.parallel_utils.process_components_to_pairs#
- process_components_to_pairs(components, chip_topology, options, allow_both=True)#
Processes the run arg components into a list of parallelly runnable lists of pairs of a qubit and a computational resonator or two qubits.
If no components are provided, all connected pairs will be colored into parallelly runnable partitions.
If the counter readout is used, the returned subscribed_components are the pairwise readout groups. Otherwise, a flat list of all the active qubits are returned.
- Parameters:
components (ComponentGrouping) – the components which can be a list, list of tuples or a list of lists of tuples (already colored). If an already colored partitioning is provided, it assumed to be correctly colored.
chip_topology (ChipTopology) – The chip topology.
options (ExperimentOptions) – The experiment options.
allow_both (bool) – If True, allows both qubit-qubit and qubit-resonator pairs. If False, allows only qubit-resonator pairs.
- Returns:
Run components (colored list of parallelly runnable sets of pairs) and the subscribed components.
- Raises:
ValueError – if the inputted components do not have any qubit-computational resonator or qubit-qubit pairs
connected via a coupler. –
- Return type: