-
Suppose I have a kernel with high-level gates (that may not adhere to target QPU's basis gates and qubit connectivity). I want to get a QPU-compatible version of the kernel in OpenQASM2 format. For example, I was trying to compile the following code for IQM Adonis QPU.
The
The I tried to manually run the From browsing the source code, one can see pipelines of optimization passes and tools for this conversion.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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:
|
Beta Was this translation helpful? Give feedback.
-
Filed an issue: #2176 |
Beta Was this translation helpful? Give feedback.
-
Thanks! To add to your answer, I found the following is needed to address basis conversion and routing on a restricted qubit connectivity.
|
Beta Was this translation helpful? Give feedback.
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: