We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here are two QASM files. I expect them to produce the same final states, but they don't. Could you please comment on them?
This file produces the correct state:
OPENQASM 2.0; include "qelib1.inc"; qreg ctrl[1]; qreg q[1]; x ctrl[0]; h q[0]; rz((pi/4)+(pi/2)) q[0];
Its result is:
>> Final state: 0 0 0.707107 -0.5 + 0.5i
But, this file doesn't.
OPENQASM 2.0; include "qelib1.inc"; qreg ctrl[1]; qreg q[1]; x ctrl[0]; ch ctrl[0], q[0]; crz((pi/4)+(pi/2)) ctrl[0], q[0];
>> Final state: 0 0 0.270598 - 0.653281i 0.270598 + 0.653281i
Well, it is almost correct -- the probabilities are correct. The phases of the state seem to be wrong.
The second file basically uses the ctrl[0] to control the other qubit. Since the ctrl[0] is 1, the two circuits should be deemed identical.
ctrl[0]
The text was updated successfully, but these errors were encountered:
Thanks! Related to #70 , we ended up implementing rz as described in #70, but didn't do this for crz. will modify and document shortly
rz
crz
Sorry, something went wrong.
c300c50
@DevelopDaily Fixed, please let me know if there are still problems with it.
Hooray! Like a charm.
Thanks.
No branches or pull requests
Here are two QASM files. I expect them to produce the same final states, but they don't. Could you please comment on them?
This file produces the correct state:
Its result is:
But, this file doesn't.
Its result is:
Well, it is almost correct -- the probabilities are correct. The phases of the state seem to be wrong.
The second file basically uses the
ctrl[0]
to control the other qubit. Since thectrl[0]
is 1, the two circuits should be deemed identical.The text was updated successfully, but these errors were encountered: