iqm.iqm_client.models.serialize_qubit_mapping

iqm.iqm_client.models.serialize_qubit_mapping#

iqm.iqm_client.models.serialize_qubit_mapping(qubit_mapping: dict[str, str]) list[SingleQubitMapping]#

Serializes a qubit mapping dict into the corresponding IQM data transfer format.

Parameters:

qubit_mapping (dict[str, str]) – mapping from logical to physical qubit names

Returns:

data transfer object representing the mapping

Return type:

list[SingleQubitMapping]