Skip to content

Tensor Product Exercises

These exercises practice finite-dimensional tensor products for distinguishable subsystems. They use the two-qubit basis order

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

with subsystem AA written first and subsystem BB second. Identity factors are written explicitly when an operator acts only on one subsystem.

For identical particles, do not use these exercises as the final word: after forming tensor products one must impose exchange symmetry. See the identical-particle and Fock-space pages for that layer.

For qubits, use

I=(1001),X=(0110),I= \begin{pmatrix} 1&0\\ 0&1 \end{pmatrix}, \qquad X= \begin{pmatrix} 0&1\\ 1&0 \end{pmatrix},

and

Y=(0−ii0),Z=(100−1).Y= \begin{pmatrix} 0&-i\\ i&0 \end{pmatrix}, \qquad Z= \begin{pmatrix} 1&0\\ 0&-1 \end{pmatrix}.

Thus

Z∣0⟩=∣0⟩,Z∣1⟩=−∣1⟩.Z\lvert0\rangle=\lvert0\rangle, \qquad Z\lvert1\rangle=-\lvert1\rangle.
  1. Let HA\mathcal H_A have basis {∣0⟩,∣1⟩,∣2⟩}\{\lvert0\rangle,\lvert1\rangle,\lvert2\rangle\} and let HB\mathcal H_B have basis {∣g⟩,∣e⟩}\{\lvert g\rangle,\lvert e\rangle\}. Construct a product basis of HA⊗HB\mathcal H_A\otimes\mathcal H_B and give the dimension.
Solution

Pair every basis vector of AA with every basis vector of BB. With AA listed first, a natural order is

∣0g⟩,∣0e⟩,∣1g⟩,∣1e⟩,∣2g⟩,∣2e⟩.\lvert0g\rangle,\quad \lvert0e\rangle,\quad \lvert1g\rangle,\quad \lvert1e\rangle,\quad \lvert2g\rangle,\quad \lvert2e\rangle.

The dimension is

dim⁡(HA⊗HB)=3⋅2=6.\dim(\mathcal H_A\otimes\mathcal H_B) = 3\cdot2 = 6.
  1. Expand the product state
(α∣0⟩+β∣1⟩)⊗(γ∣0⟩+δ∣1⟩)\bigl(\alpha\lvert0\rangle+\beta\lvert1\rangle\bigr) \otimes \bigl(\gamma\lvert0\rangle+\delta\lvert1\rangle\bigr)

in the standard two-qubit basis order.

Solution

Distribute the tensor product:

∣ψ⟩=αγ∣00⟩+αδ∣01⟩+βγ∣10⟩+βδ∣11⟩.\begin{aligned} \lvert\psi\rangle &= \alpha\gamma\lvert00\rangle +\alpha\delta\lvert01\rangle \\ &\quad +\beta\gamma\lvert10\rangle +\beta\delta\lvert11\rangle. \end{aligned}

In the basis order ∣00⟩,∣01⟩,∣10⟩,∣11⟩\lvert00\rangle,\lvert01\rangle,\lvert10\rangle,\lvert11\rangle, the coordinate column is

(αγαδβγβδ).\begin{pmatrix} \alpha\gamma\\ \alpha\delta\\ \beta\gamma\\ \beta\delta \end{pmatrix}.

The coefficient array factors as cij=aibjc_{ij}=a_i b_j, so it has rank one when written as a 2×22\times2 coefficient matrix.

  1. Decide whether
∣ψ⟩=110(∣00⟩+2∣01⟩+∣10⟩+2∣11⟩)\lvert\psi\rangle = \frac{1}{\sqrt{10}} \bigl( \lvert00\rangle +2\lvert01\rangle +\lvert10\rangle +2\lvert11\rangle \bigr)

is a product state. If it is, factor it.

Solution

The coefficient matrix in the A,BA,B order is

C=110(1212).C = \frac{1}{\sqrt{10}} \begin{pmatrix} 1&2\\ 1&2 \end{pmatrix}.

The two rows are proportional, so the matrix has rank one. Therefore the state is a product state. One factorization is

∣ψ⟩=∣0⟩+∣1⟩2⊗∣0⟩+2∣1⟩5.\lvert\psi\rangle = \frac{\lvert0\rangle+\lvert1\rangle}{\sqrt2} \otimes \frac{\lvert0\rangle+2\lvert1\rangle}{\sqrt5}.

Multiplying the two normalized factors gives the four amplitudes 1/101/\sqrt{10}, 2/102/\sqrt{10}, 1/101/\sqrt{10}, and 2/102/\sqrt{10}.

  1. Compute the matrices of Z⊗IZ\otimes I, I⊗XI\otimes X, and Z⊗ZZ\otimes Z in the standard two-qubit basis order.
Solution

The first operator acts with ZZ on the first qubit:

Z⊗I=(1000010000−10000−1).Z\otimes I = \begin{pmatrix} 1&0&0&0\\ 0&1&0&0\\ 0&0&-1&0\\ 0&0&0&-1 \end{pmatrix}.

The second operator flips the second qubit:

I⊗X=(0100100000010010).I\otimes X = \begin{pmatrix} 0&1&0&0\\ 1&0&0&0\\ 0&0&0&1\\ 0&0&1&0 \end{pmatrix}.

The product operator multiplies the ZZ eigenvalues:

Z⊗Z=(10000−10000−100001).Z\otimes Z = \begin{pmatrix} 1&0&0&0\\ 0&-1&0&0\\ 0&0&-1&0\\ 0&0&0&1 \end{pmatrix}.
  1. Prove that local operators on different subsystems commute:
[A⊗IB, IA⊗B]=0.[A\otimes I_B,\ I_A\otimes B]=0.
Solution

Use the product rule for tensor-product operators:

(A⊗IB)(IA⊗B)=A⊗B.(A\otimes I_B)(I_A\otimes B) = A\otimes B.

In the opposite order,

(IA⊗B)(A⊗IB)=A⊗B.(I_A\otimes B)(A\otimes I_B) = A\otimes B.

The two products are the same, so their difference is zero:

[A⊗IB, IA⊗B]=0.[A\otimes I_B,\ I_A\otimes B]=0.
  1. Compute the commutator
[X⊗I, Z⊗Z].[X\otimes I,\ Z\otimes Z].
Solution

Because the second factor is the identity in the first operator,

[X⊗I, Z⊗Z]=[X,Z]⊗Z.[X\otimes I,\ Z\otimes Z] = [X,Z]\otimes Z.

The Pauli commutator is

[X,Z]=−2iY.[X,Z] = -2iY.

Therefore

[X⊗I, Z⊗Z]=−2i Y⊗Z.[X\otimes I,\ Z\otimes Z] = -2i\,Y\otimes Z.

This shows a local operator need not commute with an interaction operator.

  1. Diagonalize the two-qubit Hamiltonian
H=ωAZ⊗I+ωBI⊗Z+JZ⊗Z.H = \omega_A Z\otimes I +\omega_B I\otimes Z +J Z\otimes Z.
Solution

All three terms are diagonal in the standard product basis, so the product basis vectors are eigenvectors. Let z0=+1z_0=+1 and z1=−1z_1=-1. For ∣ab⟩\lvert ab\rangle,

Eab=ωAza+ωBzb+Jzazb.E_{ab} = \omega_A z_a +\omega_B z_b +J z_a z_b.

Thus

E00=ωA+ωB+J,E01=ωA−ωB−J,E10=−ωA+ωB−J,E11=−ωA−ωB+J.\begin{aligned} E_{00}&=\omega_A+\omega_B+J,\\ E_{01}&=\omega_A-\omega_B-J,\\ E_{10}&=-\omega_A+\omega_B-J,\\ E_{11}&=-\omega_A-\omega_B+J. \end{aligned}

The coupling shifts energies according to whether the two ZZ eigenvalues are aligned or anti-aligned.

  1. The controlled-phase operator has matrix
UCZ=(100001000010000−1).U_{\mathrm{CZ}} = \begin{pmatrix} 1&0&0&0\\ 0&1&0&0\\ 0&0&1&0\\ 0&0&0&-1 \end{pmatrix}.

Show that it cannot be written as a single product A⊗BA\otimes B with diagonal one-qubit matrices AA and BB.

Solution

Suppose

A=(a000a1),B=(b000b1).A= \begin{pmatrix} a_0&0\\ 0&a_1 \end{pmatrix}, \qquad B= \begin{pmatrix} b_0&0\\ 0&b_1 \end{pmatrix}.

Then

A⊗B=diag⁡(a0b0, a0b1, a1b0, a1b1).A\otimes B = \operatorname{diag} (a_0b_0,\ a_0b_1,\ a_1b_0,\ a_1b_1).

Matching the first three diagonal entries of UCZU_{\mathrm{CZ}} requires

a0b0=1,a0b1=1,a1b0=1.a_0b_0=1,\qquad a_0b_1=1,\qquad a_1b_0=1.

These imply b1=b0b_1=b_0 and a1=a0a_1=a_0, hence a1b1=1a_1b_1=1. But the fourth diagonal entry of UCZU_{\mathrm{CZ}} is −1-1. This contradiction shows that controlled phase is not a single product operator.

  • P. A. M. Dirac, The Principles of Quantum Mechanics, 4th ed., Oxford University Press, 1958.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010.