qiskit.transpiler.passes.CXDirection.run¶
- CXDirection.run(dag)¶
Run the GateDirection pass on dag.
Flips the cx nodes to match the directed coupling map. Modifies the input dag.
- 매개변수
dag (DAGCircuit) – DAG to map.
- 반환
The rearranged dag for the coupling map
- 반환 형식
- 예외 발생
TranspilerError – If the circuit cannot be mapped just by flipping the cx nodes.