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] Add ExtractCircuitsPass (#284) #287

Closed bcdonovan closed 3 months ago

bcdonovan commented 3 months ago

This PR adds a new ExtractCircuitsPass. This pass will walk the main function and extract quantum operations into quir.circuits. It is intended to be run after all reordering and merging has been completed. The pass currently requires --enable-circuits=true in order to have effect.

Circuit formation during QUIRGen has been deprecated. This form of circuit generation is now controlled by the --enable-circuits-from-qasm command line option.