iqm.error_reduction_tools.readout_characterization.topologies.get_qubits_by_control_line#
- iqm.error_reduction_tools.readout_characterization.topologies.get_qubits_by_control_line(topology, line_indices=None)#
Get qubit labels grouped by control lines.
Useful for selecting qubits that share readout infrastructure.
- Parameters:
topology (QPUTopology) –
QPUTopologyinstance.line_indices (list[int] | None) – Optional list of control line indices to include. If
None, returns all qubits.
- Returns:
List of qubit labels from the specified control lines.
- Return type:
Example
>>> topology = topology_from_qc(client) # obtain from a connected quantum computer >>> # Get qubits from first two control lines >>> qubits = get_qubits_by_control_line(topology, [0, 1])