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:
topology (QPUTopology) –
QPUTopologyinstance.qubit_labels (list[str]) – List of qubit labels to get positions for.
- Returns:
Dictionary mapping qubit indices to (x, y) positions.
- Return type:
Example
>>> topology = topology_from_qc(client) # obtain from a connected quantum computer >>> subset = ["QB1", "QB2", "QB5", "QB6"] >>> positions = get_subset_positions(topology, subset)