French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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é

DAGCircuit

Lève

TranspilerError – when the 1-qubit rotation gates are not found