iqm.qrisp_iqm.iqm_converter.get_coupling_map

iqm.qrisp_iqm.iqm_converter.get_coupling_map#

iqm.qrisp_iqm.iqm_converter.get_coupling_map(dqa: DynamicQuantumArchitecture) → list[tuple[int, int]]#

Extract the coupling map from DQA.

Parameters:

dqa (DynamicQuantumArchitecture) – Describes the gates and loci available with a given calibration set.

Returns:

The coupling map as a list of pairs of dqa.qubits indices that have the CZ gate available.

Raises:

ValueError – If the device uses computational resonators, which are not yet supported by the Qrisp-IQM connector.

Return type:

list[tuple[int, int]]