qiskit.transpiler.passes.SabreSwap.run¶
- SabreSwap.run(dag)[source]¶
Run the SabreSwap pass on dag.
- Paramètres
dag (DAGCircuit) – the directed acyclic graph to be mapped.
- Renvoie
A dag mapped to be compatible with the coupling_map.
- Type renvoyé
- Lève
TranspilerError – if the coupling map or the layout are not
compatible with the DAG, or if the coupling_map=None –