iqm.error_reduction_tools.utils.topology_utils

iqm.error_reduction_tools.utils.topology_utils#

Utility functions for resolving QPU topology from remote quantum computer.

Provides helpers that convert chip topology objects into the QPUTopology used by readout-twirling string generation, and detection of IQM Star QPUs where circuit twirling is not supported because those QPUs use MOVE gates and computational resonators rather than direct qubit-qubit CZ gates, which are not handled by the PMPT implementation.

Functions

compute_crystal_layout(couplers, qubits)

Compute a square-grid layout for IQM Crystal architecture QPUs.

operational_qubits_from_qc(client)

Operational qubit names on the remote quantum computer.

topology_from_qc(client)

QPU topology representing a remote quantum computer.

uses_move_gates(client)

Detect whether a QPU uses MOVE gates, which makes circuit twirling unsupported.