openqasm / qe-compiler

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

[Backport 3.8] Extract Circuits Performance Improvement (#291) #293

Closed bcdonovan closed 3 months ago

bcdonovan commented 3 months ago

This PR improves the performance of the ExtractCircuitsPass by replacing insertArguments with getBody().addArugment.

Also fixes a bug by inserting call_circuit after location of last operation in circuit rather than the first.