qiskit.transpiler.passes.SabreSwap.run¶
- SabreSwap.run(dag)[ソース]¶
Run the SabreSwap pass on dag.
- パラメータ
dag (DAGCircuit) – the directed acyclic graph to be mapped.
- 戻り値
A dag mapped to be compatible with the coupling_map.
- 戻り値の型
- 例外
TranspilerError – if the coupling map or the layout are not
compatible with the DAG, or if the coupling_map=None –