You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PHIR pasted below expresses the following logic:
Initialize one qubit register "q", classical registers "a" and "t", all of size 1.
If t[0] == 0, apply R1XY(0.6366197723675814*pi, 0) to q[0].
Apply R1XY(3.3633802276324185*pi, 0) to q[0].
Measure q[0] to a[0].
Since t[0] == 0 initially, and 0.6366197723675814 + 3.3633802276324185 = 4, both R1XY gates should be applied and should cancel, so the final measurement in a[0] should be zero.
However, when run 100 times with the statevector simulator the result is a mixture of 0s and 1s.
The angles used here are (in radians) 2 and 4*pi - 2. When 1.9 and 4*pi - 1.9 are used, the results are as expected (all zero).
The PHIR pasted below expresses the following logic:
Since t[0] == 0 initially, and 0.6366197723675814 + 3.3633802276324185 = 4, both R1XY gates should be applied and should cancel, so the final measurement in a[0] should be zero.
However, when run 100 times with the statevector simulator the result is a mixture of 0s and 1s.
The angles used here are (in radians)
2
and4*pi - 2
. When1.9
and4*pi - 1.9
are used, the results are as expected (all zero).The text was updated successfully, but these errors were encountered: