-
Notifications
You must be signed in to change notification settings - Fork 196
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
[WIP] [runtime] adding mx and my support for qarrays #2231
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All Contributors have signed the CLA. |
I have read the Contributor License Agreement and I hereby accept the Terms. |
runtime/cudaq/qis/qubit_qis.h
Outdated
std::vector<measure_result> my(QubitRange &q) { | ||
std::vector<measure_result> b; | ||
for (auto &qq : q) { | ||
r1(-M_PI_2, qq); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I think you don't want the basis change operations, since you are calling the single qubit my
which will apply the basis change already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do; thanks for the tip!
Thanks for looking into this issue @cabreraam . Would you mind also adding a test to |
Also while you're here, there are other |
I will do this!
Sounds good; I'll look into it. |
Command Bot: Processing... |
0d0fda8
to
76fdd9a
Compare
Added a couple of Additionally, #2219 wants to lower to OpenQASM 2.0. However, I'm not sure of a corresponding OQ2 instruction that measures with respect to
I will address the other With all of that being said, what more needs to be done to land this PR? |
Command Bot: Processing... |
Description
This is a work in progress, but I wanted to go ahead and try to address issue #2219.
Upon testing this, I found that the issue arises here:
So, I implemented support for
mx
andmy
. I'm posting this before adding any test cases just to see if I'm on the right track, here.Feedback appreciated!