Skip to content

Exporting a kernel into QPU compatible OpenQASM2 file #2005

Answered by annagrin
ashsaki asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you ashsaki for the example, that discovered an issue with our current pipeline (some missing opts in conversion to OpenQASM2).

Here is a workaround that works for this concrete example, please let us know if you have any other failing ones:

cudaq-quake iqm_simple.cpp | cudaq-opt --pass-pipeline="builtin.module(func.func(memtoreg{quantum=0}),cc-loop-unroll)" | cudaq-translate --convert-to=openqasm2

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by annagrin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants