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?
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.
Sign up to join this communityI 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?
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.