Tensor Product Ordering
The default tensor-product convention is left-to-right subsystem ordering. If the composite Hilbert space is written
then the first ket label refers to subsystem and the second ket label refers to subsystem .
Thus
unless a page explicitly declares another convention.
Two-Qubit Basis Order
Section titled “Two-Qubit Basis Order”For two qubits in , the default computational basis order is
A state is represented as
with coefficient column
Equivalently, the left subsystem label changes more slowly than the right subsystem label in the displayed basis order.
Local Operators
Section titled “Local Operators”An operator acting only on subsystem is written
An operator acting only on subsystem is written
In compact prose, pages may say ” acts on subsystem ” after declaring the composite space. In formulas where ambiguity is possible, the identity factors should be shown.
Quantum Circuits and Software Conventions
Section titled “Quantum Circuits and Software Conventions”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.
Common Mistakes
Section titled “Common Mistakes”- Treating as meaningful without declaring which subsystem is first.
- Applying 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.
References
Section titled “References”- 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.
Exercises
Section titled “Exercises”- In the default two-qubit order, write the diagonal of .
Solution
The operator measures the first subsystem. It gives on states whose first label is and on states whose first label is . In the basis
the diagonal is
- In the same order, write the diagonal of .
Solution
The operator measures the second subsystem. The diagonal is