AutoQASM is an experimental module offering a new quantum-imperative programming experience in Python for developing quantum programs.
15
stars
9
forks
source link
AutoQASM generates OpenQASM which assumes subroutine access to input variables #7
Open
ajberdy opened 11 months ago
The following code is technically against the OpenQASM spec, as you can only close over global const variables (https://openqasm.com/language/scope.html#subroutine-and-gate-scope)
We may want to choose to interpret this as inputs allowed, since it's ambiguous whether those can change at runtime (be overwritten)
Note that the generated
rx_alpha
subroutine references thealpha
input variable, which is defined only at global scope.