qiskit.transpiler.passes.BIPMapping.run¶
-
BIPMapping.
run
(dag)[source]¶ Run the BIPMapping pass on dag, assuming the number of virtual qubits (defined in dag) and the number of physical qubits (defined in coupling_map) are the same.
- Parameters
dag (DAGCircuit) – DAG to map.
- Returns
- A mapped DAG. If there is no 2q-gate in DAG or it fails to map,
returns the original dag.
- Return type
- Raises
TranspilerError – if the number of virtual and physical qubits are not the same.
AssertionError – if the final layout is not valid.