Closed TheGupta2012 closed 3 months ago
Hi there! I've started work on this issue and added a draft PR (#110). I'd be very interested in feedback if possible, especially regarding remaining looping features that I haven't yet been able to figure out - instantiating the loop range using a BitstringLiteral
or ArrayLiteral
seem to run into issues where these types cannot be evaluated in BasicQasmVisitor._evaluate_expression()
. I looked into while
loops as well before opening the PR, but I can't easily see how to generalize the branching logic from BasicQasmVisitor._visit_branching_statement()
as that seems to apply to specific comparisons with specific argument types (e.g. x < 5
doesn't appear to be allowed). Any tips on where I can focus next would be much appreciated :)
Thanks for merging my PR! It would be very helpful for UnitaryHack if you could assign this issue to me if you're satisfied that this is resolved :)
Closed through PR #110
Feature Description
qasm3
converter and generate equivalent qir representationImplementation (Optional)
Example
A minimum reproducible example would be the following -
QASM
Expected QIR
An advice would be to start from the simpler cases and then build up iteratively.