Skip to content

Tensor Product Ordering

The default tensor-product convention is left-to-right subsystem ordering. If the composite Hilbert space is written

HA⊗HB,\mathcal H_A\otimes\mathcal H_B,

then the first ket label refers to subsystem AA and the second ket label refers to subsystem BB.

Thus

∣ij⟩≡∣i⟩A⊗∣j⟩B\lvert ij\rangle \equiv \lvert i\rangle_A\otimes\lvert j\rangle_B

unless a page explicitly declares another convention.

For two qubits in HA⊗HB\mathcal H_A\otimes\mathcal H_B, the default computational basis order is

∣00⟩,∣01⟩,∣10⟩,∣11⟩.\lvert00\rangle,\quad \lvert01\rangle,\quad \lvert10\rangle,\quad \lvert11\rangle.

A state is represented as

∣Ψ⟩=c00∣00⟩+c01∣01⟩+c10∣10⟩+c11∣11⟩,\lvert\Psi\rangle =c_{00}\lvert00\rangle +c_{01}\lvert01\rangle +c_{10}\lvert10\rangle +c_{11}\lvert11\rangle,

with coefficient column

(c00c01c10c11).\begin{pmatrix} c_{00}\\ c_{01}\\ c_{10}\\ c_{11} \end{pmatrix}.

Equivalently, the left subsystem label changes more slowly than the right subsystem label in the displayed basis order.

An operator acting only on subsystem AA is written

OA⊗IB.O_A\otimes I_B.

An operator acting only on subsystem BB is written

IA⊗OB.I_A\otimes O_B.

In compact prose, pages may say ”OAO_A acts on subsystem AA” after declaring the composite space. In formulas where ambiguity is possible, the identity factors should be shown.

Quantum-circuit libraries sometimes use little-endian or register-specific conventions that differ from the pedagogical order above. Pages about algorithms, circuits, or numerical libraries must declare their ordering before writing state vectors, matrices, or measurement bit strings. Translation between conventions is a permutation of basis labels, not a physical change.

  • Treating ∣01⟩\lvert01\rangle as meaningful without declaring which subsystem is first.
  • Applying O⊗IO\otimes I to the wrong subsystem.
  • Comparing two coefficient vectors from different ordering conventions without permuting entries.
  • Dropping identity factors before the reader can tell which space an operator acts on.
  • Assuming a software bit-string convention matches the mathematical convention on the page.
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  • B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
  1. In the default two-qubit order, write the diagonal of σz⊗I\sigma_z\otimes I.
Solution

The operator σz⊗I\sigma_z\otimes I measures the first subsystem. It gives +1+1 on states whose first label is 00 and −1-1 on states whose first label is 11. In the basis

∣00⟩,∣01⟩,∣10⟩,∣11⟩,\lvert00\rangle,\quad \lvert01\rangle,\quad \lvert10\rangle,\quad \lvert11\rangle,

the diagonal is

(1,1,−1,−1).(1,1,-1,-1).
  1. In the same order, write the diagonal of I⊗σzI\otimes\sigma_z.
Solution

The operator I⊗σzI\otimes\sigma_z measures the second subsystem. The diagonal is

(1,−1,1,−1).(1,-1,1,-1).