Qubit order and bit strings: the mistake that mirrors your results

Qiskit writes qubit 0 on the right, this site and Cirq write it on the left. How to read results correctly in each.

7 min read · reviewed December 2026

Two conventions

A result such as “100” can mean “qubit 0 is 1” or “qubit 2 is 1”, depending on the tool. This site, Cirq and PennyLane list qubit 0 first, so the first character is qubit 0, a convention called big-endian. Qiskit lists qubit 0 last, called little-endian, so the same physical outcome appears reversed.

The same outcome in each tool. This site lists qubit 0 first.
Outcome here (q0 q1 q2)Qiskit counts keyCirq integerPennyLane index
10000144
01111033
11001166
00110011

Where it bites

  • Counts dictionaries in Qiskit have keys with qubit 0 on the right.
  • A circuit with an X on qubit 0 only gives “001” in Qiskit and “100” here and in Cirq.
  • Matrices for multi-qubit gates are written with the other ordering in Qiskit, which matters if you compare unitaries.

A simple check

Build a circuit with a single X gate on qubit 0. Run it. If the printed result has the 1 on the left, the tool is big-endian. If it has the 1 on the right, it is little-endian. The Bit order tab of the lab lets you convert any outcome by hand.

What the converter does about it

It does not change the circuit. Gate-for-gate the circuit is identical, and the code comment in the Qiskit output reminds you to reverse the strings. Every probability table in the lab uses this site’s order.

Try it

Questions

Is one convention correct?

Neither is. They are conventions. Each is consistent within its own tool.

Why did Qiskit choose little-endian?

The usual explanation is that it matches the way bits are numbered in a binary number, where bit 0 is the least significant, which makes integer arithmetic on registers natural.

Does it affect the physics?

No. Only the labels on the outcomes change.

Read next

Sources and further reading

Check the original sources for exact citations.