oqc-community / rasqal

A dynamically executed quantum-classical hybrid runtime.
Other
20 stars 5 forks source link

Add conditional lowering #11

Open chemix-lunacy opened 9 months ago

chemix-lunacy commented 9 months ago

Currently the symbolic executor doesn't attempt to lower conditionals even though the skeletons are there.

Requires:

Initially lowering can be simplistic and only requires a few checks: that the condition of the if is either quantum or a value that has been resolved; that every operation within the if is quantum as well, which should then recurse so we can squash nested if statements in.