RemoveDiagonalGatesBeforeMeasure.run¶
- RemoveDiagonalGatesBeforeMeasure.run(dag)[source]¶
Run the RemoveDiagonalGatesBeforeMeasure pass on dag.
- Parameters
dag (DAGCircuit) – the DAG to be optimized.
- Returns
the optimized DAG.
- Return type
Run the RemoveDiagonalGatesBeforeMeasure pass on dag.
dag (DAGCircuit) – the DAG to be optimized.
the optimized DAG.