qiskit.transpiler.CouplingMap.reduce¶
- CouplingMap.reduce(mapping)[ソース]¶
Returns a reduced coupling map that corresponds to the subgraph of qubits selected in the mapping.
- パラメータ
mapping (list) – A mapping of reduced qubits to device qubits.
- 戻り値
A reduced coupling_map for the selected qubits.
- 戻り値の型
- 例外
CouplingError – Reduced coupling map must be connected.