qiskit.transpiler.passes.GateDirection.run¶
- GateDirection.run(dag)[source]¶
Run the GateDirection pass on dag.
Flips the cx nodes to match the directed coupling map. Modifies the input dag.
- Paramètres
dag (DAGCircuit) – DAG to map.
- Renvoie
The rearranged dag for the coupling map
- Type renvoyé
- Lève
TranspilerError – If the circuit cannot be mapped just by flipping the cx nodes.