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 –