qiskit.transpiler.CouplingMap.reduce¶
- CouplingMap.reduce(mapping)[Quellcode]¶
Returns a reduced coupling map that corresponds to the subgraph of qubits selected in the mapping.
- Parameter
mapping (list) – A mapping of reduced qubits to device qubits.
- Rückgabe
A reduced coupling_map for the selected qubits.
- Rückgabetyp
- Verursacht
CouplingError – Reduced coupling map must be connected.