qiskit.transpiler.passes.BasicSwap.run¶
- BasicSwap.run(dag)[소스]¶
Run the BasicSwap pass on dag.
- 매개변수
dag (DAGCircuit) – DAG to map.
- 반환
A mapped DAG.
- 반환 형식
- 예외 발생
TranspilerError – if the coupling map or the layout are not
compatible with the DAG, or if the coupling_map=None. –