Closed rmshaffer closed 5 months ago
I would like to work on this issue as part of unitary hack. Not sure about this, but this would require changes in oqpy module not in autoqasm right?
I would like to work on this issue as part of unitary hack. Not sure about this, but this would require changes in oqpy module not in autoqasm right?
I expect that it could be addressed in autoqasm, for example, if any kwargs correspond to subroutine parameters, convert them to positional args before calling into the oqpy subroutine.
Summary
Arguments to AutoQASM subroutines can't be passed by keyword. For example, if I have an
@aq.subroutine
defined asdef test(a: int, b: int)
, I can successfully call it with positional args liketest(0, 1)
, but I cannot call it with keyword args liketest(a=0, b=1)
.Repro Steps
Expected Result
This should succeed and print the serialized program.
Actual Result
It fails with the following error: