iqm.benchmarks.utils.set_coupling_map#
- iqm.benchmarks.utils.set_coupling_map(qubits: Sequence[int], backend: IQMBackendBase, physical_layout: Literal['fixed', 'batching'] = 'fixed') CouplingMap #
Set a coupling map according to the specified physical layout.
- Parameters:
qubits (Sequence[int]) – the list of physical qubits to consider.
backend (IQMBackendBase) – the backend from IQM.
physical_layout (Literal["fixed", "batching"]) – the physical layout type to consider. - “fixed” sets a coupling map restricted to the input qubits -> results will be constrained to measure those qubits. - “batching” sets the coupling map of the backend -> results in a benchmark will be “batched” according to final layouts. * Default is “fixed”.
- Returns:
A coupling map according to the specified physical layout.
- Return type:
CouplingMap