qiskit.transpiler.passes.CommutativeCancellation.run¶
- CommutativeCancellation.run(dag)[source]¶
Run the CommutativeCancellation pass on dag.
- Paramètres
dag (DAGCircuit) – the DAG to be optimized.
- Renvoie
the optimized DAG.
- Type renvoyé
- Lève
TranspilerError – when the 1-qubit rotation gates are not found