2
$\begingroup$

I am "brand new" to IBM quantum computing. Just created an account and tried my first circuit with a Hadamard applied to $|0 \rangle$ which should lead to $(|0\rangle + | 1 \rangle)/\sqrt{2}$ and hence $50$ percent probability for $|0\rangle$ and $|1\rangle$ each. However, as shown in the screenshot of my screen, I am getting probabilities for $``00"$. Is it possible to talk in terms of probabilities of $|0\rangle$ and $|1\rangle$?

enter image description here

$\endgroup$
1

1 Answer 1

1
$\begingroup$

You are totally right. For 1 qubit there should be 50% on |1⟩ and 50% on |0⟩.

As in the picture shown you get the probabilities of 1 qubit, 50/50. Therefore you need to press the Inspector, to run that simulation. (As in the picture shown)

Result:

Press Inspector

$\endgroup$
4
  • 1
    $\begingroup$ But why should there be a second Hadamard when I am dealing with only one? In the youtube tutorial youtube.com/watch?v=7WkHEov3wwI, they use only one Hadamard $\endgroup$
    – Zubin
    Commented Jul 21, 2021 at 11:24
  • 1
    $\begingroup$ You are right. I had a mistake in reasoning. You need to run the Inspector. I updated my answer $\endgroup$ Commented Jul 21, 2021 at 11:39
  • 1
    $\begingroup$ Thanks, it works! $\endgroup$
    – Zubin
    Commented Jul 21, 2021 at 11:43
  • 1
    $\begingroup$ You are welcome, sometimes the missing piece is simpler than quantum computing ;) $\endgroup$ Commented Jul 21, 2021 at 11:46

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.