I have this quantum circuit:

and from the IBM quantum composer I get this state amplitudes:

I wanted to flip the target qubit and keep only its pure state however this is not what I am getting.I am also getting the control qubit to be in state $|1>$ which I dont think is correct since the measurement gate doesnt do that.Is this a bug on the IBM quantum composer or is it due to how it treats a quantum circuit?

  • $\begingroup$ What do you mean by measurement gate? $\endgroup$
    – FDGod
    Dec 17, 2023 at 9:25
  • $\begingroup$ The irreversible gate of measurement. $\endgroup$ Dec 17, 2023 at 14:47

1 Answer 1


Its a bug.Thats why you never simulate qubits on a classical computer.It translates the measurement gate into 1 or at least it shows only the 1:

It is 100% pure state so it is correct.


Your Answer

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

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