openqasm / qe-compiler

An MLIR based compiler dynamic circuit compiler for real-time control systems supporting OpenQASM 3
Other
46 stars 15 forks source link

Add MergeCircuitMeasuresPass #255

Closed bcdonovan closed 7 months ago

bcdonovan commented 7 months ago

Adds a MergeCircuitMeasuresPass to merge quir.measures inside circuits. Based on MergeMeasuresTopologicalPass.

Adds pass and test.

Updates MergeCircuitsPass so that a ParallelControlFlowOp will block a merge.

The PR restores performance of merging measurements when circuits are enabled.