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

search upward for parameters #320

Closed bcdonovan closed 2 months ago

bcdonovan commented 2 months ago

This PR adjusts the ParameterInitialValueAnalysis so that it will search the current module for parameter definitions and then search parent modules if parameters are not found.

mbhealy commented 2 months ago

There doesn't appear to be an existing test that calls this pass directly. Do we have some test that exercises this code? If not can we add one in this repo?

bcdonovan commented 2 months ago

Added a test with: 48af563