RemoveFinalMeasurements.run

RemoveFinalMeasurements.run(dag)[source]

Run the RemoveFinalMeasurements pass on dag.

Parameters

dag (DAGCircuit) – the DAG to be optimized.

Returns

the optimized DAG.

Return type

DAGCircuit