Mitiq Calibrator
not working correctly due to incorrect qubit ordering
#2806
sanketsharma
started this conversation in
General
Replies: 1 comment
-
Thanks a lot for raising this. Looks like a bug to me. I've opened #2813 to try to address it. Feel free to leave any more details if you think I missed anything there, or give it a review! Only one line change needed, I think. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I provide the circuit to the
Calibrator
, it adds a classical register m0 into which the qubits are read but not in order. I think this has got something to do with how Cirq handles circuits internally. The following program should reproduce thisHere is the output it produced
I've highlighted the lines in the output where it shows that the qubits are not being read into the classical bits with the same indices, which is causing incorrect result being returned and the calibration not working properly.
Note: This doesn't happen every time. You might need to run the program multiple time to reproduce this.
Beta Was this translation helpful? Give feedback.
All reactions