Skip to main content
โ† Back to ๐Ÿ› ๏ธ Simulator Help
Admin QuantonicHQ
Admin QuantonicHQ
ยท in ๐Ÿ› ๏ธ Simulator Help
FAQ: WHICH QUBIT IS WHICH IN THE RESULTS? ๐Ÿ”ข

The #1 source of "my circuit is broken" reports that aren't bugs:

In the results labels, qubit 0 is the LEFTMOST digit. So with two qubits, the outcome "10" means qubit 0 measured 1 and qubit 1 measured 0.

If you put an X gate on qubit 0 only and see "10" instead of "01" โ€” that's not a bug, that's the convention. (Different textbooks and frameworks disagree on this ordering, which is why everyone gets bitten by it once.)

When in doubt: one qubit at a time, flip it with X, and see which digit moves.
๐Ÿค 0 ๐Ÿ’ฌ 0

๐Ÿ’ฌ Comments (0)

No comments yet โ€” be the first to reply.
๐Ÿ’ฌ Sign in to join the conversation.