CouplingMap.reduce¶
- CouplingMap.reduce(mapping)[source]¶
Returns a reduced coupling map that corresponds to the subgraph of qubits selected in the mapping.
- Parameters
mapping (list) – A mapping of reduced qubits to device qubits.
- Returns
A reduced coupling_map for the selected qubits.
- Return type
- Raises
CouplingError – Reduced coupling map must be connected.