0
$\begingroup$

I expected |110> since we do

a -> a 
b -> b
c -> ab + c (mod 2)

since x 0 -> 1 and 1+1 = 0 mod 2 we get 110. Why is qiskit returning 011?

enter image description here

$\endgroup$
1

1 Answer 1

0
$\begingroup$

This is just because of the qubit ordering. The 0 in the result $|011\rangle$ is the most significant qubit and corresponds to q_2 in the circuit diagram.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.