0

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

1 Answers1

0

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.

rhundt
  • 988
  • 4
  • 12