qiskit.transpiler.passes.CommutativeCancellation.run¶
- CommutativeCancellation.run(dag)[código fonte]¶
Run the CommutativeCancellation pass on dag.
- Parâmetros
dag (DAGCircuit) – the DAG to be optimized.
- Retorno
the optimized DAG.
- Tipo de retorno
- Levanta
TranspilerError – when the 1-qubit rotation gates are not found