iqm.error_reduction_tools.readout_characterization.topologies.get_subset_positions

iqm.error_reduction_tools.readout_characterization.topologies.get_subset_positions#

iqm.error_reduction_tools.readout_characterization.topologies.get_subset_positions(topology, qubit_labels)#

Get positions for a subset of qubits from a topology.

Useful when running characterization on a subset of qubits but still wanting to visualize them on the full QPU layout.

Parameters:
Returns:

Dictionary mapping qubit indices to (x, y) positions.

Return type:

dict[int, tuple[int, int]]

Example

>>> topology = topology_from_qc(client)  # obtain from a connected quantum computer
>>> subset = ["QB1", "QB2", "QB5", "QB6"]
>>> positions = get_subset_positions(topology, subset)