qiskit.transpiler.passes.CommutativeCancellation.run¶
- CommutativeCancellation.run(dag)[source]¶
Run the CommutativeCancellation pass on dag.
- প্যারামিটার
dag (DAGCircuit) -- the DAG to be optimized.
- রিটার্নস
the optimized DAG.
- রিটার্ন টাইপ
- রেইজেস
TranspilerError -- when the 1-qubit rotation gates are not found