Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Multiple qubits and tensor products

Combining two systems creates four amplitudes, with an ordering convention that matters.

12 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Compute a two-qubit product state numerically.
  • Use the site’s most-significant-bit ordering convention.

For ∣a⟩=(a0,a1)T\lvert a\rangle=(a_0,a_1)^T and ∣b⟩=(b0,b1)T\lvert b\rangle=(b_0,b_1)^T,

∣a⟩⊗∣b⟩=(a0b0a0b1a1b0a1b1).\lvert a\rangle\otimes\lvert b\rangle= \begin{pmatrix}a_0b_0\\a_0b_1\\a_1b_0\\a_1b_1\end{pmatrix}.

Our basis order is ∣00⟩,∣01⟩,∣10⟩,∣11⟩\lvert00\rangle,\lvert01\rangle,\lvert10\rangle,\lvert11\rangle. The leftmost qubit, q0, is the most significant bit. Other frameworks may display bitstrings differently; check before comparing results.

Take ∣a⟩=∣+⟩\lvert a\rangle=\lvert+\rangle and ∣b⟩=∣1⟩\lvert b\rangle=\lvert1\rangle. Their joint vector is

12(0101)=∣01⟩+∣11⟩2.\frac1{\sqrt2}\begin{pmatrix}0\\1\\0\\1\end{pmatrix} =\frac{\lvert01\rangle+\lvert11\rangle}{\sqrt2}.

Measuring gives 01 or 11 equally often. The second qubit is always 1; the first is equally likely to be 0 or 1.

An n-qubit pure state has 2n2^n complex amplitudes. A general classical statevector simulation therefore needs exponential memory. This describes the cost of storing an arbitrary statevector, not a claim that a quantum device lets you read all those amplitudes in one shot.

Some structured states and circuits admit much more efficient classical simulation. Exponential state-space dimension alone is not evidence of useful quantum advantage.

In the gate playground, apply H to q0 and X to q1. Verify the expected 01/11 distribution. Then change X to q0 instead: explain the result by tracing the ordering rather than guessing from the bitstring labels.

Reference: IBM Quantum — Multiple systems.

ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.