# Why are these circuits not producing the expected output?

This circuit was created on the Quirk platform. I'm trying to implement a basic case of phase estimation. For some reason, I'm getting this strange result.

When the Inverse QFT is broken down, it seems to yield the expected answer:

I have no idea why this is happening. I tried playing around with the endian-ness of the qubits, but it didn't seem to work.

• Except the outputted result from that circuit is $|10\rangle$, while the expected output is $|01\rangle$. Why does that happen? – Jack Ceroni Dec 5 '18 at 21:55