iqm.error_reduction_tools.utils.topology_utils.uses_move_gates

iqm.error_reduction_tools.utils.topology_utils.uses_move_gates#

iqm.error_reduction_tools.utils.topology_utils.uses_move_gates(client)#

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

IQM QPUs that include computational resonators use MOVE gates rather than direct CZ gates between qubits. The PMPT implementation only handles prx and cz operations and will raise a ValueError if it encounters a move instruction, so twirling cannot be applied to circuits compiled for these QPUs.

This function detects such QPUs directly by checking whether the chip topology reports any computational resonators, which is the authoritative indicator that MOVE gates are present.

Parameters:

client (Pulla) – Client instance for connecting to the quantum computer.

Returns:

True if the QPU has computational resonators (and therefore uses MOVE gates), False otherwise or if the topology cannot be retrieved.

Return type:

bool