Add support for switch
statements in qasm3_to_qir converter
#80
Labels
enhancement
New feature or request
pyqir
Interfacing with QIR python bindings
qasm3
Related to OpenQASM 3 conversions
unitary-hack
Issues tagged with Unitary Hack '24
Feature Description
Implementation (Optional)
The
pyqir._native
module does have a definition of theSwitch
construct but it is not entirely clear how that can be incorporated into the converter. A good starting point would be thepyqir._native
definition and the openqasm switch referenceIt would be good to have a handler for the switch, like the
_visit_branching_statement
. Sinceswitch
is also a type of branching instruction, we can either expand this method or create a new handler.The text was updated successfully, but these errors were encountered: