RemoveFinalMeasurements¶
- class RemoveFinalMeasurements(*args, **kwargs)[source]¶
Remove final measurements and barriers at the end of a circuit.
This pass removes final barriers and final measurements, as well as the ClassicalRegisters they are connected to if the ClassicalRegister is unused. Measurements and barriers are considered final if they are followed by no other operations (aside from other measurements or barriers.)
Attributes
Check if the pass is an analysis pass.
Check if the pass is a transformation pass.
Methods
Return the name of the pass.
Run the RemoveFinalMeasurements pass on dag.