-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support QASM -> Blocks #9
Comments
I wonder what advantage would a macro have than a method. Since the qasm output is just a list, it's fairly simple to convert it back to blocks? |
so what you actually want to have in the macro is to generate a new julia function that returns a block, when you see Or you won't be able to support subroutines defined by QASM. |
Though I am still not clear about how this macro should work, I am assuming something on the lines of https://github.com/QuantumBFS/YaoTargetQASM.jl/blob/master/src/frontend.jl??? |
The YaoTargetQASM implementation should be similiar to this one except that you don't need to support classical function and control flows, which makes things a lot simpler. I'm expecting when you see a |
currently missing QASM -> Blocks pass, you will need to define a
qasm_str
macro to support the syntax that YaoLang has.The text was updated successfully, but these errors were encountered: