In Chapter 3, we represented a state as a weighted sum of configurations and updated it step by step by multiplying weights along paths and summing amplitudes at each endpoint. As the number of configurations and steps grows, tracking individual paths by hand quickly becomes unwieldy.
How do path calculations become a geometry of states, and what happens when we observe a quantum system?
Representing states as column vectors and transition rules as matrices turns multi-step path sums into standard matrix multiplication and gives amplitudes a geometric meaning in terms of lengths and angles.
Once states and transitions are expressed in the language of vectors and matrices, we can state the physical postulates that govern quantum states, reversible evolution, measurement, and composite systems.
Reading guide · preparation, aims, and assumptions
Use state vectors and inner products to describe transition amplitudes and geometry, then express operations as matrices and calculate measurement outcomes.
Before you begin
The prerequisites are the ket notation for states and arrow weights, complex amplitudes, normalization, path sums, the cross-sum condition, and complete configuration labels developed in Chapter 3. This chapter turns kets into vectors and steps into matrices, and adds the state update after measurement.
What you should be able to do
Write states as vectors and interpret inner products as final-state amplitudes.
Represent operations as matrices and use adjoints to test unitarity.
Compute projective measurement probabilities and conditional states in the computational and rotated bases.
Explain how tensor products describe composite systems and allow entangled pure states.
The example to follow
Compare state vectors by their inner products, then predict how the same preparation responds to Z and X measurements and follow the conditional state update.
Scope and assumptions
The main text treats finite-dimensional pure states and projective measurements. Mixed states and general measurements are in Appendix D.
4.1
Vectors and Matrices
In this section, we translate the path bookkeeping of Chapter 3 into linear algebra: states become column vectors, transition amplitudes between states become inner products, and the arrow weights of a step become the entries of a transition matrix.
In Chapter 3, we wrote the state of a register as a weighted sum of its configurations, where each configuration \(i\) carries a complex amplitude \(v_i\) with \(\sum_i |v_i|^2 = 1\). Naming the complete state \(\ket{\psi}\) (read “ket psi”), we write
\[\ket{\psi} = \sum_i v_i\ket{i}.\]
Our two rules for combining ket sums—adding the weights of matching configurations and multiplying all weights by a common factor—are the defining operations of a vector space. We therefore view \(\ket{\psi}\) as a state vector. For a system with two distinguishable configurations, \(0\) and \(1\), any state takes the form \(\ket{\psi} = v_0\ket{0} + v_1\ket{1}\). A weighted combination of configurations is called a superposition, and a two-state quantum system is called a qubit (short for quantum bit).
Fixing the natural order of configurations—\(0\) first, \(1\) second—lets us write the amplitudes as a vertical column of numbers. Each configuration ket becomes the column with \(1\) in its own row and \(0\) elsewhere:
An ordered column of numbers is a vector, its entries \(v_0, v_1\) are its coordinates, and the reference kets \(\ket{0}\) and \(\ket{1}\) form the computational basis.
In column form, adding two vectors and multiplying a vector by a number \(c\) act coordinate by coordinate:
These two operations are vector addition and scalar multiplication. Note that while any two-entry column is a vector, only columns whose coordinates satisfy the normalization condition \(|v_0|^2 + |v_1|^2 = 1\) represent physical states of a qubit. For instance, in the decomposition \(\ket{\psi} = v_0\ket{0} + v_1\ket{1}\), the scaled basis vectors \(v_0\ket{0} = \binom{v_0}{0}\) and \(v_1\ket{1} = \binom{0}{v_1}\) are unnormalized component vectors whose sum is the normalized state vector \(\ket{\psi}\).
When the amplitudes are real, we can picture \(\ket{\psi} = (3/5)\ket{0} + (4/5)\ket{1}\) as an arrow in a plane with coordinates \(3/5\) and \(4/5\) along the perpendicular basis directions \(\ket{0}\) and \(\ket{1}\). Complex amplitudes obey the same coordinate algebra.
In the real-amplitude example above, the coordinates \(3/5\) and \(4/5\) yield outcome probabilities \((3/5)^2 = 9/25\) for \(0\) and \((4/5)^2 = 16/25\) for \(1\), which sum to \(1\). The two coordinates belong to a single state vector \(\ket{\psi}\) rather than describing two separate systems.
For a system with \(N\) configurations ordered from \(0\) to \(N-1\), a state vector is a column of \(N\) complex coordinates, while ket notation writes only the nonzero terms explicitly.
Problems
Write \(\tfrac1{\sqrt3}\ket0+i\sqrt{\tfrac23}\ket1\) as a column vector, and check that its coordinates satisfy the condition for a state vector.
Show solutionHide solution
The vector is \(\bigl(1/\sqrt3,\;i\sqrt{2/3}\bigr)^T\). The squared magnitudes are \(1/3\) and \(|i|^2\cdot2/3=2/3\), which add to \(1\).
With the two-qubit configurations ordered \(00,01,10,11\), write \((\ket{00}-\ket{11})/\sqrt2\) as a column vector, and give the probability of each configuration.
Show solutionHide solution
The vector is \((1/\sqrt2,\,0,\,0,\,-1/\sqrt2)^T\). The configurations \(00\) and \(11\) each have probability \(1/2\); \(01\) and \(10\) have probability \(0\).
Find numbers \(a\) and \(b\) with \(\ket0=a\,\tfrac{\ket0+\ket1}{\sqrt2}+b\,\tfrac{\ket0-\ket1}{\sqrt2}\). Relative to which basis is \((\ket0+\ket1)/\sqrt2\) a superposition, and relative to which is it not?
Show solutionHide solution
Comparing coordinates: \((a+b)/\sqrt2=1\) and \((a-b)/\sqrt2=0\), so \(a=b=1/\sqrt2\). The state \((\ket0+\ket1)/\sqrt2\) is a superposition of \(\ket0\) and \(\ket1\), but in the basis \(\{(\ket0+\ket1)/\sqrt2,(\ket0-\ket1)/\sqrt2\}\) it is a single basis vector, while \(\ket0\) becomes a superposition. Whether a state is a superposition depends on the basis.
inner product · transition amplitude · bra · conjugate symmetry
To keep track of several state vectors at once, we label the coordinates of \(\ket{\psi}\) as \(\psi_i\) and those of \(\ket{\phi}\) as \(\phi_i\). Just as \(\bra{j}S\ket{i}\) denotes the amplitude to reach configuration \(j\) from \(i\) in one step \(S\), we write \(\braket{j}{\psi}\) for the amplitude of finding state \(\ket{\psi}\) in basis configuration \(j\):
\[\braket{j}{\psi} = \psi_j.\]
When \(\ket{\psi}\) is itself a basis state \(\ket{i}\), its only nonzero coordinate is \(1\) at position \(i\), so
Now suppose we ask for the transition amplitude \(\braket{\phi}{\psi}\) from an initial state \(\ket{\psi} = \sum_j \psi_j\ket{j}\) to a target state \(\ket{\phi} = \sum_j \phi_j\ket{j}\). Every route from \(\ket{\psi}\) to \(\ket{\phi}\) passes through some basis configuration \(j\), leaving \(\ket{\psi}\) into \(j\) with amplitude \(\braket{j}{\psi}\) and entering \(\ket{\phi}\) from \(j\) with amplitude \(\braket{\phi}{j}\). By the product and sum rules,
Each route from \(\ket{\psi}\) to \(\ket{\phi}\) multiplies the amplitude \(\braket{j}{\psi}\) leaving \(\ket{\psi}\) through configuration \(j\) by the amplitude \(\braket{\phi}{j}\) entering \(\ket{\phi}\) from \(j\). When the target is \(\ket{0}\) (right), only the route through \(0\) has nonzero weight.
How is the incoming amplitude \(\braket{\phi}{j}\) related to the coordinate \(\phi_j = \braket{j}{\phi}\)? A normalized state \(\ket{\psi}\) must have total transition amplitude \(1\) to remain in itself, \(\braket{\psi}{\psi} = 1\). Since normalization requires \(\sum_j |\psi_j|^2 = \sum_j \psi_j^*\psi_j = 1\), matching \(\sum_j \braket{\psi}{j}\braket{j}{\psi}\) with \(\sum_j \psi_j^*\psi_j\) fixes the incoming amplitude to be the complex conjugate of the outgoing amplitude:
Substituting \(\braket{\phi}{j} = \phi_j^*\) gives the general formula for the inner product of \(\ket{\phi}\) and \(\ket{\psi}\) (read “bra phi ket psi”):
\[\braket{\phi}{\psi} = \sum_j \phi_j^*\psi_j.\]
Without complex conjugation, the normalized state \((\ket{0}+i\ket{1})/\sqrt{2}\) would yield \(\tfrac{1}{2} + \tfrac{i^2}{2} = 0\) with itself instead of \(1\).
In matrix notation, the conjugated row vector paired with \(\ket{\phi}\) is called its bra, written \(\bra{\phi}\):
Reversing the direction of a transition therefore preserves the magnitude \(|\braket{\phi}{\psi}|\) and reverses the phase; for real vectors, \(\braket{\psi}{\phi} = \braket{\phi}{\psi}\).
Problems
Compute \(\braket\phi\psi\) for \(\ket\phi=(\ket0+i\ket1)/\sqrt2\) and \(\ket\psi=(\ket0-i\ket1)/\sqrt2\). Are the two states orthogonal?
Show solutionHide solution
\[\braket\phi\psi=\tfrac12\bigl(1\cdot1+(i)^*(-i)\bigr)=\tfrac12\bigl(1+(-i)(-i)\bigr)=0.\] They are orthogonal. Without the conjugate, the sum would be \(\tfrac12(1+1)=1\), wrongly suggesting the two states are equal.
For \(\ket\psi=(\sqrt3/2)\ket0+(i/2)\ket1\), find the amplitudes \(\braket0\psi\) and \(\braket1\psi\), their probabilities, and the norm of \(\ket\psi\).
Show solutionHide solution
The final-state amplitudes are \(\sqrt3/2\) for \(\ket0\) and \(i/2\) for \(\ket1\). Their squared magnitudes are \(3/4\) and \(1/4\). Since they sum to one, \(\|\psi\|=1\).
Use conjugate symmetry with \(\ket\phi=\ket\psi\) to show that \(\braket\psi\psi\) is real. Then use the coordinate formula to show that it is never negative, and zero only for the zero vector.
Show solutionHide solution
Conjugate symmetry with \(\ket\phi=\ket\psi\) gives \(\braket\psi\psi=\bigl(\braket\psi\psi\bigr)^*\), so the number equals its own conjugate and is real. In coordinates, \(\braket\psi\psi=\sum_j\psi_j^*\psi_j=\sum_j|\psi_j|^2\), a sum of nonnegative terms. It is zero only when every \(\psi_j\) is zero, that is, for the zero vector. This is why \(\sqrt{\braket\psi\psi}\) can serve as a length.
Normalized states satisfy \(\|\psi\| = 1\) and are therefore unit vectors. Two vectors \(\ket{\phi}\) and \(\ket{\psi}\) are orthogonal (perpendicular) when their inner product vanishes, \(\braket{\phi}{\psi} = 0\). A set of unit vectors that are mutually orthogonal is called orthonormal; the computational basis \(\{\ket{j}\}\) is orthonormal because \(\braket{j}{i}\) equals \(1\) for \(j=i\) and \(0\) for \(j\ne i\).
Given any unit vector \(\ket{\phi}\), we can split a state \(\ket{\psi}\) into a component along \(\ket{\phi}\) and a remainder \(\ket{\psi_\perp}\) orthogonal to \(\ket{\phi}\):
Splitting a unit vector \(\ket{\psi}\) relative to \(\ket{\phi}\): the projection \(\braket{\phi}{\psi}\,\ket{\phi}\) lies along \(\ket{\phi}\), and \(\ket{\psi_\perp}\) is perpendicular to \(\ket{\phi}\).
Because the two pieces are orthogonal, their squared lengths obey the Pythagorean relation
For two unit vectors (\(\|\psi\|=\|\phi\|=1\)), \(|\braket{\phi}{\psi}|^2 = 1 - \|\psi_\perp\|^2\) always lies between \(0\) and \(1\): it equals \(1\) when \(\ket{\psi_\perp}=0\) (so \(\ket{\psi}\) and \(\ket{\phi}\) differ only by a global phase) and \(0\) when \(\ket{\psi}\) and \(\ket{\phi}\) are orthogonal. When both unit vectors have real coordinates separated by an angle \(\theta\) in the plane, \(\braket{\phi}{\psi} = \cos\theta\).
For example, if \(\ket{\psi} = (\sqrt{3}/2)\ket{0} + (1/2)\ket{1}\) and \(\ket{\phi} = \ket{0}\), then \(\ket{\psi}\) makes a \(30^\circ\) angle with \(\ket{0}\), its projection along \(\ket{0}\) has amplitude \(\braket{0}{\psi} = \cos 30^\circ = \sqrt{3}/2\) (squared length \(3/4\)), and the orthogonal remainder \((1/2)\ket{1}\) has squared length \(1/4\).
Interactive figure. This state-plane viewer projects \(\ket{\psi}\) onto \(\ket{\phi}\) and computes the transition probability \(|\braket{\phi|\psi}|^2\). Drag \(\ket{\psi}\) through \(30^\circ\), \(45^\circ\), \(90^\circ\), and \(180^\circ\) relative to \(\ket{\phi}\) to observe how projection length sets the Born probability.
An amplitude as a component
In the real state plane, \(\ket{\psi}\) and \(\ket{\phi}\) are unit vectors. The orange projection of \(\ket{\psi}\) along \(\ket{\phi}\) has signed length \(\braket{\phi}{\psi} = \cos\theta\), and the dashed segment is the orthogonal remainder \(\ket{\psi_\perp}\).What to observe
At separation angle \(\theta\), the transition probability is \(\cos^2\theta\): \(3/4\) at \(30^\circ\), \(1/2\) at \(45^\circ\), and \(0\) at \(90^\circ\) where the states are orthogonal. At \(180^\circ\), the inner product is \(-1\) and the probability returns to \(1\).
Problems
Find the norm of \(\ket v=3\ket0+4i\ket1\), and the unit vector pointing in the same direction.
Show solutionHide solution
\(\braket vv=|3|^2+|4i|^2=9+16=25\), so \(\|v\|=5\). Dividing by the norm gives the unit vector \(\tfrac35\ket0+\tfrac{4i}5\ket1\), whose squared magnitudes \(\tfrac9{25}\) and \(\tfrac{16}{25}\) add to one.
For the real unit vectors \(\ket\phi=\cos\alpha\ket0+\sin\alpha\ket1\) and \(\ket\psi=\cos\beta\ket0+\sin\beta\ket1\), show that \(\braket\phi\psi=\cos(\alpha-\beta)\). For which angles are the two states orthogonal?
Show solutionHide solution
\(\braket\phi\psi=\cos\alpha\cos\beta+\sin\alpha\sin\beta=\cos(\alpha-\beta)\), by the angle-difference formula. The states are orthogonal when \(\cos(\alpha-\beta)=0\), that is, when their directions differ by a right angle, \(\alpha-\beta=\pm\pi/2\) up to multiples of \(\pi\).
Let \(\ket\phi=(\ket0+\ket1)/\sqrt2\) and \(\ket\psi=\ket0\). Find the component \(\braket\phi\psi\,\ket\phi\) and the orthogonal remainder. Check that their squared norms add to one.
Show solutionHide solution
\(\braket\phi\psi=1/\sqrt2\), so the component along \(\ket\phi\) is \((\ket0+\ket1)/2\). Subtracting it from \(\ket0\) leaves \(\ket{\psi_\perp}=(\ket0-\ket1)/2\). Its inner product with \(\ket\phi\) is zero. Both components have squared norm \(1/2\), giving total one.
With states written as column vectors, we can represent any single-step transition rule \(U\) as a rectangular array of numbers—a transition matrix (or simply a matrix)—whose entry in row \(j\) and column \(i\) is the arrow weight from initial configuration \(i\) to final configuration \(j\):
\[U_{ji} = \bra{j}U\ket{i}.\]
The column index \(i\) on the right names the starting configuration, and the row index \(j\) on the left names the destination configuration. Consequently, column \(i\) of \(U\) is the column vector \(U\ket{i} = \sum_j \bra{j}U\ket{i}\,\ket{j}\) formed by the outgoing arrow weights from configuration \(i\).
Translating a transition diagram into a matrix: arrows leaving configuration \(0\) form column \(0\), arrows leaving \(1\) form column \(1\), and destination configurations index the rows, so \(U_{ji} = \bra{j}U\ket{i}\).
When \(U\) acts on a general state \(\ket{\psi} = \sum_i v_i\ket{i}\), the updated coordinate \(v'_j = \sum_i U_{ji}v_i\) is given by multiplying row \(j\) of \(U\) into the column vector \(\ket{\psi}\):
Because matrix–vector multiplication distributes over vector addition and scalar multiplication, every matrix operation obeys linearity: for any states \(\ket{\phi}, \ket{\psi}\) and complex scalars \(a, b\),
A linear operation is therefore completely specified by its columns \(U\ket{i}\). For example, the single-qubit operations from Chapter 3—bit-flip \(X\), phase-flip \(Z\), and Hadamard \(H\)—have the transition matrices
Geometrically, \(U\ket{\psi} = v_0 U\ket{0} + v_1 U\ket{1}\) combines the transformed basis vectors \(U\ket{0}\) and \(U\ket{1}\) using the original coordinates \(v_0\) and \(v_1\). For the real matrix
By linearity, \(U\) transforms the basis vectors \(\ket{0}\) and \(\ket{1}\) into the columns \(U\ket{0}\) and \(U\ket{1}\), and the original coordinates \(3/5\) and \(4/5\) weight those columns to produce \(U\ket{\psi} = \ket{1}\).
When a step \(U\) is followed by a second step \(V\), the two-step sum rule across intermediate configurations \(j\),
is the matrix product \(VU\), with the rightmost matrix \(U\) acting first. Two Hadamard steps multiply to the identity matrix \(I = \begin{pmatrix}1 & 0\\ 0 & 1\end{pmatrix}\), which leaves every vector unchanged: \(HH = I\).
Problems
An operation \(U\) has weights \(\bra0U\ket0=0\), \(\bra1U\ket0=i\), \(\bra0U\ket1=-i\), and \(\bra1U\ket1=0\). Write its matrix, and apply it to \(\ket0\) and \(\ket1\).
Show solutionHide solution
With \(U_{ji}=\bra jU\ket i\), the matrix is \(\begin{pmatrix}0&-i\\i&0\end{pmatrix}\). Its columns give \(U\ket0=i\ket1\) and \(U\ket1=-i\ket0\).
Compute the matrices \(XH\) and \(HX\), and apply each to \(\ket0\). Can the outputs differ by only a global phase?
Show solutionHide solution
\(XH=\tfrac1{\sqrt2}\begin{pmatrix}1&-1\\1&1\end{pmatrix}\) and \(HX=\tfrac1{\sqrt2}\begin{pmatrix}1&1\\-1&1\end{pmatrix}\). Their first columns give \(XH\ket0=\ket+\) and \(HX\ket0=\ket-\). These states are orthogonal, so they do not differ by a global phase. A measurement in the \(\pm\) basis distinguishes them with certainty.
A proposed rule sends \(\alpha\ket0+\beta\ket1\) to \(\alpha\ket0+2\beta\ket1\), rescaled so that the squared magnitudes add to \(1\). Show that the rule is not linear by comparing its action on \(\ket0\), \(\ket1\), and \((\ket0+\ket1)/\sqrt2\).
Show solutionHide solution
The rule sends \(\ket0\) and \(\ket1\) to themselves after normalization. A linear map with those actions would be the identity. On \((\ket0+\ket1)/\sqrt2\), the rule instead gives \((\ket0+2\ket1)/\sqrt5\). It is therefore nonlinear and cannot describe deterministic closed-system evolution.
Which matrices preserve total probability for every input state, and how can such a transition be reversed? In Section 3.4.2, we found that a step \(U\) preserves normalization across all superpositions if and only if its outgoing weights from each basis configuration are normalized (\(\sum_j |U_{ji}|^2 = 1\)) and the cross sums between distinct inputs vanish (\(\sum_j U_{ji}^* U_{jk} = 0\) for \(i\ne k\)). In the geometric language of Section 4.1.3, these two conditions state simply that the columns of \(U\) are orthonormal:
\[\sum_j U_{ji}^* U_{jk} = \delta_{ik},\]
where \(\delta_{ik}\) is \(1\) when \(i=k\) and \(0\) when \(i\ne k\).
As we saw with return and cross paths in Section 3.4.2, this condition also tells us immediately how to invert \(U\): reverse every transition arrow and take the complex conjugate of its weight. For any matrix \(A\), this operation defines the adjoint (or conjugate transpose), written \(A^\dagger\) (read “A dagger”):
In matrix form, column \(i\) of \(A\) becomes the conjugated row \(i\) of \(A^\dagger\).
Constructing the adjoint \(U^\dagger\): reverse each arrow \(i\to j\) into \(j\to i\) and conjugate its amplitude, turning column \(i\) of \(U\) into conjugated row \(i\) of \(U^\dagger\).
Now multiply \(U^\dagger\) by \(U\). The \((i,k)\) entry of the product \(U^\dagger U\) is the inner product of column \(i\) and column \(k\) of \(U\):
Thus the columns of a square matrix \(U\) are orthonormal if and only if
\[U^\dagger U = I \qquad\bigl(\text{and hence } UU^\dagger = I\bigr).\]
A square matrix satisfying \(U^\dagger U = I\) is called unitary. Every unitary matrix is reversible, with its inverse given directly by its adjoint, \(U^{-1} = U^\dagger\).
Applying \(U\) followed by \(U^\dagger\): because the columns of \(U\) are orthonormal, return paths reinforce to \(a^*a + b^*b = 1\) while cross paths cancel to \(c^*a + d^*b = 0\), giving \(U^\dagger U = I\).
For instance, the square root of NOT from Section 3.4.1 has \(a = (1+i)/2\) and \(b = (1-i)/2\); reversing its arrows without conjugation leaves the matrix unchanged and gives \(\sqrt{X}\sqrt{X} = X\), whereas conjugating the weights gives \((\sqrt{X})^\dagger\) with \(a^* = (1-i)/2\) and \(b^* = (1+i)/2\), so return paths add to \(|a|^2+|b|^2 = 1\) and switch paths cancel. Gates such as \(X\), \(Z\), and \(H\) satisfy \(U^\dagger = U\), so they are their own inverses.
For any matrix \(A\), the definition of \(A^\dagger\) implies \(\bra{\phi}A\ket{\psi} = \braket{A^\dagger\phi}{\psi}\). When \(U\) is unitary, applying \(U\) to any two states \(\ket{\chi}\) and \(\ket{\psi}\) therefore preserves their inner product:
the columns of \(A\) are not orthogonal, neither \(A\) nor \(A^\dagger\) preserves vector lengths, and neither \(A^\dagger A\) nor \(AA^\dagger\) restores \(\ket{\psi} = (3/5)\ket{0} + (4/5)\ket{1}\):
A non-unitary shear \(A\) (orange) and its adjoint \(A^\dagger\) (green) acting on \(\ket{\psi} = (3/5)\ket{0} + (4/5)\ket{1}\) (blue): both alter its length and tilt it by different angles.
Neither \(AA^\dagger\ket{\psi}\) (orange) nor \(A^\dagger A\ket{\psi}\) (green) returns the non-unitary shear to the initial vector \(\ket{\psi}\) (blue).
Interactive figure. This geometric viewer compares a linear transformation \(A\) and its conjugate transpose \(A^\dagger\) acting on \(\ket{\psi}\). Switch between the non-unitary shear and the unitary rotation to compare \(AA^\dagger\ket{\psi}\) and \(A^\dagger A\ket{\psi}\).
Both orders of \(A\) and \(A^\dagger\) for any real \(A\)
With scripting enabled, this figure draws \(AA^\dagger\ket\psi\) and \(A^\dagger A\ket\psi\) for an adjustable real matrix \(A\).
Blue shows the initial unit vector \(\ket{\psi}\), orange traces \(AA^\dagger\ket{\psi}\), and green traces \(A^\dagger A\ket{\psi}\). Select the rotation preset to see a unitary matrix: both \(A^\dagger A\ket{\psi}\) and \(AA^\dagger\ket{\psi}\) land back on \(\ket{\psi}\).What to observe
For the non-unitary shear, \(AA^\dagger\) and \(A^\dagger A\) rotate \(\ket{\psi}\) by different angles and alter its norm. For the unitary rotation, \(A^\dagger A=AA^\dagger=I\), so \(A^\dagger\) acts as the exact inverse of \(A\).
Problems
Find the adjoints of \(\operatorname{diag}(1,i)\) and of \(\begin{pmatrix}1&2\\0&1\end{pmatrix}\). Which of the two matrices is unitary?
Show solutionHide solution
\(\operatorname{diag}(1,i)^\dagger=\operatorname{diag}(1,-i)\), and their product is \(\operatorname{diag}(1,(-i)i)=I\), so the first is unitary. For the second, the adjoint is \(\begin{pmatrix}1&0\\2&1\end{pmatrix}\), and \(A^\dagger A=\begin{pmatrix}1&2\\2&5\end{pmatrix}\neq I\), so it is not.
For \(U=\tfrac1{\sqrt2}\begin{pmatrix}1&i\\i&1\end{pmatrix}\), find \(U^\dagger\) and compute \(U^\dagger U\). Interpret the four entries as transition amplitudes for the two-step process.
Show solutionHide solution
\(U^\dagger=\tfrac1{\sqrt2}\begin{pmatrix}1&-i\\-i&1\end{pmatrix}\). Their product has diagonal entries \((1+(-i)i)/2=1\) and off-diagonal entries \((i-i)/2=0\), so \(U^\dagger U=I\). After the two steps, the amplitude to return to the initial configuration is one, and the amplitude to reach the other configuration is zero.
Using \(\braket\phi{A\psi}=\braket{A^\dagger\phi}\psi\), prove that \((AB)^\dagger=B^\dagger A^\dagger\). Conclude that the product of two unitaries is unitary.
Show solutionHide solution
For all \(\ket\phi,\ket\psi\): \(\braket\phi{AB\psi}=\braket{A^\dagger\phi}{B\psi}=\braket{B^\dagger A^\dagger\phi}\psi\). This is the defining property of \((AB)^\dagger\), so \((AB)^\dagger=B^\dagger A^\dagger\). For unitaries \(U,V\): \((UV)^\dagger UV=V^\dagger U^\dagger UV=V^\dagger V=I\).
4.2
Postulates
With vectors, inner products, and unitary matrices in place, we can state the four physical postulates that link this mathematical formalism to experiment: how physical states are represented, how isolated systems evolve, what happens when a system is measured, and how subsystems combine.
State postulate. The state of an isolated finite-dimensional quantum system is represented by a unit vector \(\ket{\psi}\) in a complex vector space with inner product \(\braket{\phi}{\psi} = \sum_j \phi_j^*\psi_j\). Two unit vectors that differ only by a global phase factor \(e^{i\theta}\) represent the same physical state.
For a single qubit, \(\ket{\psi} = v_0\ket{0} + v_1\ket{1}\), normalization (\(|v_0|^2 + |v_1|^2 = 1\)) lets us write \(|v_0| = \cos(\theta/2)\) and \(|v_1| = \sin(\theta/2)\) for an angle \(0 \le \theta \le \pi\). Factoring out the global phase of \(v_0\) leaves a single relative phase \(\phi\) on \(\ket{1}\), so every pure one-qubit state can be written in terms of two angles \((\theta,\phi)\):
Evolution postulate. Over any interval during which a quantum system remains isolated from outside interaction or measurement, its state vector evolves by a unitary operator \(U\):
\[\ket{\psi} \longmapsto U\ket{\psi},\qquad U^\dagger U = I.\]
As established in Section 4.1.5, unitary evolution is reversible (\(U^{-1} = U^\dagger\)) and preserves the inner product \(\braket{U\chi}{U\psi} = \braket{\chi}{\psi}\) between every pair of states. In the real state plane, unitary steps act as rigid rotations \(U(\delta) = \begin{pmatrix}\cos\delta & -\sin\delta\\ \sin\delta & \cos\delta\end{pmatrix}\) or reflections on the unit circle:
Unitary evolution on the unit circle: a rotation \(U\) carries \(\ket{\psi}\) to \(U\ket{\psi}\) and \(\ket{\chi}\) to \(U\ket{\chi}\), preserving their unit lengths and the angle \(\gamma\) between them.
Problems
Normalize \(\ket0+2i\ket1\), and give the probabilities of a computational-basis measurement.
Show solutionHide solution
The squared norm is \(1+|2i|^2=5\), so the state is \((\ket0+2i\ket1)/\sqrt5\). The probabilities are \(1/5\) and \(4/5\).
Write the state \((i\ket0-\ket1)/\sqrt2\) in the form \(\cos\tfrac\theta2\ket0+e^{i\phi}\sin\tfrac\theta2\ket1\), after removing a global phase.
Show solutionHide solution
Multiply by the global phase \(-i\): \(-i(i\ket0-\ket1)/\sqrt2=(\ket0+i\ket1)/\sqrt2\). Now the first coordinate is real and positive, \(\cos\tfrac\theta2=1/\sqrt2\), so \(\theta=\pi/2\), and \(e^{i\phi}=i\), so \(\phi=\pi/2\).
Show that \(\ket\psi\) and \(e^{i\gamma}\ket\psi\) give the same probabilities for every sequence of operations followed by a computational-basis measurement. Then show that \((\ket0+\ket1)/\sqrt2\) and \((\ket0-\ket1)/\sqrt2\) do not differ by a global phase.
Show solutionHide solution
A sequence of operations is a matrix \(V\), and \(V(e^{i\gamma}\ket\psi)=e^{i\gamma}V\ket\psi\) by linearity. Every coordinate is multiplied by \(e^{i\gamma}\), which has magnitude \(1\), so every probability is unchanged. If \(\ket0-\ket1=e^{i\gamma}(\ket0+\ket1)\), comparing coordinates would give \(e^{i\gamma}=1\) and \(e^{i\gamma}=-1\) at once, which is impossible.
Whereas closed evolution transforms a superposition reversibly, observing a quantum system—performing a measurement—returns a single classical outcome and updates the state to match the observed outcome.
Measurement postulate. Given a system in the normalized state \(\ket{\psi}\) and any orthonormal basis \(\{\ket{b_j}\}\), an ideal measurement in that basis yields outcome \(j\) with probability
\[p(j) = |\braket{b_j}{\psi}|^2.\]
Conditional on observing outcome \(j\), the state of the system immediately becomes \(\ket{b_j}\).
When the chosen basis is the computational basis \(\{\ket{0},\ket{1}\}\) of a qubit in state \(\ket{\psi} = v_0\ket{0} + v_1\ket{1}\), outcome \(j\) occurs with probability \(|\braket{j}{\psi}|^2 = |v_j|^2\) and leaves the system in \(\ket{j}\). For example, measuring \(\ket{\psi} = (\sqrt{3}/2)\ket{0} + (1/2)\ket{1}\) yields \(0\) with probability \(3/4\) (leaving \(\ket{0}\)) and \(1\) with probability \(1/4\) (leaving \(\ket{1}\)). Because the state after outcome \(1\) is \(\ket{1}\), repeating the same measurement immediately afterward yields \(1\) with certainty.
Measuring \(\ket{\psi} = (\sqrt{3}/2)\ket{0} + (1/2)\ket{1}\) in the computational basis yields \(0\) with probability \(3/4\) and \(1\) with probability \(1/4\); an immediate repeat measurement reproduces the observed outcome with probability \(1\).
This postulate also gives the operational meaning of the general transition amplitude \(\braket{\phi}{\psi}\) from Section 4.1.2: when \(\ket{\psi}\) is measured in any orthonormal basis containing \(\ket{\phi}\), the outcome corresponding to \(\ket{\phi}\) appears with probability \(|\braket{\phi}{\psi}|^2\). Geometrically, measurement projects \(\ket{\psi}\) onto the chosen basis directions and renormalizes the selected component. Writing the projector onto \(\ket{b_j}\) as the outer product \(P_j = \ketbra{b_j}{b_j}\), which acts by \(P_j\ket{\psi} = \ket{b_j}\braket{b_j}{\psi}\) (so \(\ketbra{0}{0} = \begin{pmatrix}1\\0\end{pmatrix}\begin{pmatrix}1 & 0\end{pmatrix} = \begin{pmatrix}1 & 0\\ 0 & 0\end{pmatrix}\)), we have
gives probabilities \(|\braket{b_0}{\psi}|^2 = \cos^2(\alpha-\beta)\) and \(|\braket{b_1}{\psi}|^2 = \sin^2(\alpha-\beta)\). Setting \(\beta = 0^\circ\) measures in the computational (\(Z\)) basis \(\{\ket{0},\ket{1}\}\); setting \(\beta = 45^\circ\) measures in the diagonal (\(X\)) basis \(\{\ket{+},\ket{-}\}\), where \(\ket{\pm} = (\ket{0}\pm\ket{1})/\sqrt{2}\).
Interactive figure. This measurement simulator compares repeated projective measurements on fresh copies of \((\sqrt{3}/2)\ket{0}+(1/2)\ket{1}\) against repeated measurements on the same post-measurement qubit. Draw 100 fresh samples, then re-measure a single collapsed state.
One state, different measurements
For \(\ket+\), the Z-basis probabilities are \((1/2,1/2)\); the X-basis probabilities are \((1,0)\). For \(\ket-\), the Z-basis probabilities are also \((1/2,1/2)\), while the X-basis probabilities are \((0,1)\).
Blue shows the current state vector; teal and orange show its orthogonal projections onto the chosen measurement basis. Selecting a measurement projects onto one basis vector and renormalizes it to unit length.What to observe
Across 100 fresh copies, outcome \(1\) appears about \(25\pm 4\) times in accordance with \(|1/2|^2=1/4\). Re-measuring the same qubit after outcome \(1\) yields \(1\) deterministically because the first measurement projected the state onto \(\ket{1}\).
Unlike unitary evolution, a projective measurement is irreversible: both \(\ket{0}\) and \(\ket{+}\) can yield outcome \(0\) in the \(Z\) basis and collapse to the same post-measurement state \(\ket{0}\), erasing the distinction between them. If a qubit is measured in the \(Z\) basis between two Hadamard steps starting from \(\ket{0}\), the measurement projects \(\ket{+}\) onto \(\ket{0}\) or \(\ket{1}\) with probability \(1/2\) each, eliminating the second branch so the final Hadamard produces \(0\) or \(1\) at random instead of returning to \(\ket{0}\).
A quantum run alternates reversible unitary evolution between observations (blue curves) with projective state updates at measurement times (vertical orange steps).
Problems
Measure \((\ket0+2i\ket1)/\sqrt5\) in the computational basis. Give the probability of each outcome and the state after it.
Show solutionHide solution
Outcome \(0\) has probability \(1/5\) and leaves \(\ket0\); outcome \(1\) has probability \(4/5\) and leaves \(\ket1\).
A qubit in \((\sqrt3/2)\ket0+(1/2)\ket1\) is measured twice in a row. Find the probabilities of the four sequences of outcomes \(00\), \(01\), \(10\), and \(11\).
Show solutionHide solution
The first measurement gives \(0\) with probability \(3/4\) and leaves \(\ket0\), after which the second gives \(0\) for certain. Likewise for \(1\). So \(P(00)=3/4\), \(P(11)=1/4\), and \(P(01)=P(10)=0\).
Start from \(\ket0\). Apply \(H\), measure, apply \(H\), and measure again. Find the probabilities of the four pairs of outcomes, and compare with applying \(H\) twice and measuring once.
Show solutionHide solution
\(H\ket0=(\ket0+\ket1)/\sqrt2\), so the first measurement gives \(0\) or \(1\) with probability \(1/2\) each and leaves \(\ket0\) or \(\ket1\). Applying \(H\) to either gives an equal superposition, so the second measurement is again \(0\) or \(1\) with probability \(1/2\). All four pairs have probability \(1/4\). Without the middle measurement, \(HH\ket0=\ket0\), and the outcome is \(0\) with certainty. The measurement leaves a definite configuration, and the two paths can no longer interfere.
How do we form the state vector of a system made of multiple qubits? As we saw with two-bit configurations in Section 3.4.4, a configuration of a pair of qubits \(A\) and \(B\) specifies a bit for each qubit simultaneously, giving four joint basis configurations: \(00, 01, 10, 11\). Ordering them lexicographically turns a two-qubit state into a four-component column vector:
Each pairing \((i,j)\) of a basis state of qubit \(A\) with a basis state of qubit \(B\) defines one joint configuration \(\ket{ij}\) with amplitude \(c_{ij}\).
When qubit \(A\) is prepared independently in \(\ket{\psi} = a\ket{0} + b\ket{1}\) and qubit \(B\) in \(\ket{\phi} = c\ket{0} + d\ket{1}\), the product rule assigns amplitude \(c_{ij} = \psi_i\phi_j\) to each joint configuration \(\ket{ij}\). This operation is the tensor product, written \(\ket{\psi}\otimes\ket{\phi}\):
Any composite state that factors into a tensor product \(\ket{\psi}\otimes\ket{\phi}\) of individual subsystem states is called a product state.
Composite-state postulate. The state space of a composite quantum system is the tensor product of the state spaces of its subsystems. If the subsystems have orthonormal bases \(\{\ket{i}\}\) and \(\{\ket{j}\}\), the composite system has the orthonormal basis \(\{\ket{ij} = \ket{i}\otimes\ket{j}\}\), and every normalized vector in this space is a valid physical state.
Combining subsystems of dimensions \(m\) and \(n\) produces a state space of dimension \(mn\); for \(n\) qubits, the state vector has \(2^n\) coordinates. Because any normalized superposition of the joint basis states is permitted, a composite state need not be a product state. For example, the state
which we produced in Section 3.4.4 by applying \(H\) on the first qubit followed by CNOT, cannot be written as \((a\ket{0}+b\ket{1})\otimes(c\ket{0}+d\ket{1})\): matching \(ac = 1/\sqrt{2}\) and \(bd = 1/\sqrt{2}\) forces \(a,b,c,d\) to be nonzero, which makes \(ad = 0\) and \(bc = 0\) impossible. A composite state that cannot be factored into a product state is entangled, and this property is called entanglement. In Chapter 5, we combine these four postulates into the circuit model of quantum computation, and in Chapter 6 we study multi-qubit gates and entangled states in detail.
Problems
If system A has two basis states and system B has three, how many basis states does their composite have?
Show solutionHide solution
There are \(2\times3=6\) basis states, one for each pair of local labels: \(00,01,02,10,11,12\).
Expand \((\ket0+\ket1)/\sqrt2\otimes\ket1\) in the joint basis and give its computational-basis outcome probabilities.
Show solutionHide solution
The state is \((\ket{01}+\ket{11})/\sqrt2\). Outcomes \(01\) and \(11\) each have probability \(1/2\); the other two have probability zero.
Why can \((\ket{00}+\ket{11})/\sqrt2\) not be written as a product of two pure qubit states?
Show solutionHide solution
A product would have amplitudes \(ac,ad,bc,bd\). Nonzero amplitudes for both \(00\) and \(11\) require all four factors to be nonzero, contradicting the zero amplitudes required for \(01\) and \(10\).
States are vectors. The weighted sum \(\ket\psi=\sum_iv_i\ket i\) becomes a column of amplitudes, and its bookkeeping rules become vector addition and multiplication by a number. The kets \(\ket0,\ket1\) form the computational basis.
Inner products are transition amplitudes. The amplitude for finding a normalized state \(\ket\phi\), given \(\ket\psi\), is \(\braket\phi\psi=\sum_j\phi_j^*\psi_j\), and its squared magnitude is the probability. Normalization reads \(\braket\psi\psi=1\), and orthogonal states have zero overlap.
Operations are matrices. The entry \(U_{ji}=\bra jU\ket i\) is the arrow weight from \(i\) to \(j\), so matrix–vector multiplication performs the path sums, and the matrix product \(VU\) is the two-step sum rule, with the rightmost matrix acting first.
Probability-preserving operations are unitary. Outgoing normalization and the cross-sum condition say that the columns are orthonormal, \(U^\dagger U=I\). The adjoint, which reverses each arrow and conjugates its amplitude, is then the inverse; for a general matrix it is not.
The postulates. A pure state is a unit vector, up to global phase, and closed systems evolve unitarily. An ideal measurement in an orthonormal basis gives outcome \(j\) with probability \(|\braket{b_j}\psi|^2\) and leaves the state \(\ket{b_j}\). These are physical assumptions, not consequences of the path arithmetic.
Measurement is not unitary. It keeps one projected component, which is why a measurement between two Hadamard steps spoils their return to \(\ket0\). Changing the measurement basis changes the question asked, not the prepared state.
Composite systems use the tensor product. Dimensions multiply, and independent preparations give product states. A joint state such as \((\ket{00}+\ket{11})/\sqrt2\), whose amplitudes do not factor, is entangled.
Questions and worked problems
Attempt each question before opening a hint. Explain your reasoning, then compare it with the solution.
For \(\ket\psi=\tfrac35\ket0+\tfrac45\ket1\), compute the amplitudes \(\braket{+}{\psi}\) and \(\braket{-}{\psi}\), where \(\ket\pm=(\ket0\pm\ket1)/\sqrt2\). Find the two probabilities and check that they add to one. Why must they?
Hint 1
\(\braket{\pm}{\psi}=\frac{1}{\sqrt2}(\psi_0\pm\psi_1)\) for real coordinates.
Hint 2
\(\ket+\) and \(\ket-\) form an orthonormal basis.
Worked solution
\(\braket{+}{\psi}=\frac{1}{\sqrt2}\big(\frac35+\frac45\big)=\frac{7}{5\sqrt2}\), with probability \(\frac{49}{50}\). \(\braket{-}{\psi}=\frac{1}{\sqrt2}\big(\frac35-\frac45\big)=-\frac{1}{5\sqrt2}\), with probability \(\frac{1}{50}\). They add to \(1\). The vectors \(\ket+\) and \(\ket-\) are orthonormal, so \(\ket\psi=\braket{+}{\psi}\ket++\braket{-}{\psi}\ket-\) and its squared length, \(1\), is the sum of the two squared components. In the computational basis the same state gives \(\frac{9}{25}\) and \(\frac{16}{25}\): different tests, different probabilities, one state.
Is \(U=\frac{1}{\sqrt2}\begin{pmatrix}1&1\\i&-i\end{pmatrix}\) unitary? Check that its columns have unit length and are orthogonal, then compute \(U\ket0\) and \(U\ket1\).
Hint 1
Column \(0\) is \((1,i)/\sqrt2\) and column \(1\) is \((1,-i)/\sqrt2\).
Hint 2
Conjugate the first column’s entries when computing the overlap.
Worked solution
Each column has squared length \(\frac12(1+1)=1\). Their overlap is \(\frac12\big(1^*\cdot1+i^*\cdot(-i)\big)=\frac12\big(1+(-i)(-i)\big)=\frac12(1-1)=0\). So the columns are orthonormal and \(U\) is unitary. The columns are the images: \(U\ket0=(\ket0+i\ket1)/\sqrt2\) and \(U\ket1=(\ket0-i\ket1)/\sqrt2\). These are two orthogonal states with equal computational-basis probabilities; they differ only in relative phase.
Which pairs describe the same physical state? (a) \((\ket0+i\ket1)/\sqrt2\) and \((i\ket0-\ket1)/\sqrt2\); (b) \((\ket0+i\ket1)/\sqrt2\) and \((\ket0-i\ket1)/\sqrt2\); (c) \(\ket1\) and \(-\ket1\). For the pair that differs, compute the inner product.
Hint 1
Look for a single factor \(e^{i\gamma}\) that converts one vector into the other.
Hint 2
Conjugate the left vector’s coordinates in the inner product.
Worked solution
(a) Same: \(i(\ket0+i\ket1)=i\ket0-\ket1\), a global phase \(i\). (c) Same: a global phase \(-1\). (b) Different: no common factor works, because the first coordinates would require the factor \(1\) and the second would then require \(i=-i\). Their inner product is \(\frac12\big(1\cdot1+(-i)(-i)\big)=\frac12(1-1)=0\), so they are orthogonal: a test along one direction never reports the other. A relative phase can make two states with identical computational-basis probabilities perfectly distinguishable.
Let \(U=\frac15\begin{pmatrix}4&-3\\3&4\end{pmatrix}\). Starting from \(\ket0\): (a) apply \(U\) twice and then measure, giving both probabilities; (b) apply \(U\), measure, apply \(U\), and measure, giving the probability that the final outcome is \(0\). Explain the difference.
In (b), sum over the two possible intermediate outcomes, each followed by \(U\) from a definite state.
Worked solution
(a) \(U^2\ket0=\frac{1}{25}(7\ket0+24\ket1)\), so outcome \(0\) has probability \(\frac{49}{625}\approx0.078\) and outcome \(1\) has \(\frac{576}{625}\approx0.922\). (b) After the first \(U\), the measurement gives \(0\) with probability \(\frac{16}{25}\) and \(1\) with \(\frac{9}{25}\), leaving \(\ket0\) or \(\ket1\). From \(\ket0\), \(U\) gives outcome \(0\) with probability \(\frac{16}{25}\); from \(\ket1\), with probability \(\frac{9}{25}\). So \(p(0)=\frac{16}{25}\cdot\frac{16}{25}+\frac{9}{25}\cdot\frac{9}{25}=\frac{337}{625}\approx0.539\). Without the measurement, the two routes to \(0\) have amplitudes \(\frac{16}{25}\) and \(-\frac{9}{25}\), which partly cancel. The intermediate measurement keeps one route per run, so probabilities add instead of amplitudes.
For \(U=\frac{1}{\sqrt2}\begin{pmatrix}1&1\\i&-i\end{pmatrix}\), compute \(U^\dagger\) and verify \(U^\dagger U=I\). Then use the adjoint to find the state \(\ket\psi\) with \(U\ket\psi=\ket0\), and check your answer by applying \(U\).
Hint 1
\((U^\dagger)_{ij}=U_{ji}^*\): transpose and conjugate.
Hint 2
If \(U\ket\psi=\ket0\), then \(\ket\psi=U^\dagger\ket0\).
Worked solution
Transposing and conjugating gives \(U^\dagger=\frac{1}{\sqrt2}\begin{pmatrix}1&-i\\1&i\end{pmatrix}\). Then \(U^\dagger U=\frac12\begin{pmatrix}1+(-i)(i)&1+(-i)(-i)\\1+i\cdot i&1+i(-i)\end{pmatrix}=\frac12\begin{pmatrix}2&0\\0&2\end{pmatrix}=I\). Since \(U\) is unitary, \(U^\dagger\) undoes it: \(\ket\psi=U^\dagger\ket0=\frac{1}{\sqrt2}(\ket0+\ket1)\), the first column of \(U^\dagger\). Check: \(U\frac{1}{\sqrt2}(\ket0+\ket1)=\frac12\big((1+1)\ket0+(i-i)\ket1\big)=\ket0\). The adjoint gives the inverse without solving equations, but only because \(U\) is unitary.
Write \(\ket\psi=\tfrac12\ket0+\tfrac{\sqrt3}{2}e^{i\pi/3}\ket1\) in the form \(\cos\frac\theta2\ket0+e^{i\phi}\sin\frac\theta2\ket1\). Then find the state of the same form that is orthogonal to it, and check the orthogonality. What happens to \(\theta\) and \(\phi\) when \(Z\) is applied to \(\ket\psi\)?
Hint 1
\(\cos\frac\theta2=\frac12\) gives \(\theta\).
Hint 2
Try \(\sin\frac\theta2\ket0-e^{i\phi}\cos\frac\theta2\ket1\) for the orthogonal state.
Worked solution
\(\cos\frac\theta2=\frac12\) gives \(\theta=\frac{2\pi}{3}\), and then \(\sin\frac\theta2=\frac{\sqrt3}{2}\) and \(\phi=\frac\pi3\). Take \(\ket{\psi^\perp}=\frac{\sqrt3}{2}\ket0-e^{i\pi/3}\frac12\ket1\). Then \(\braket{\psi^\perp}{\psi}=\frac{\sqrt3}{2}\cdot\frac12+\big(-e^{-i\pi/3}\tfrac12\big)\big(\tfrac{\sqrt3}{2}e^{i\pi/3}\big)=\frac{\sqrt3}{4}-\frac{\sqrt3}{4}=0\). In the standard form, \(\ket{\psi^\perp}\) has \(\theta'=\pi-\theta=\frac\pi3\) and \(\phi'=\phi+\pi\). Applying \(Z\) multiplies the \(\ket1\) amplitude by \(-1=e^{i\pi}\): \(\theta\) stays \(\frac{2\pi}{3}\) and \(\phi\) becomes \(\frac{4\pi}{3}\). \(Z\) changes only the relative phase, so computational-basis probabilities are unchanged.
Show that a two-qubit state \(\sum_{ij}c_{ij}\ket{ij}\) is a product state only if \(c_{00}c_{11}=c_{01}c_{10}\). Apply the test to (a) \(\frac12(\ket{00}+\ket{01}+\ket{10}-\ket{11})\); (b) \(\frac12(\ket{00}+i\ket{01}+\ket{10}+i\ket{11})\). For the product state, find the factors.
Hint 1
For a product, \(c_{ij}=a_ib_j\), so both sides equal \(a_0a_1b_0b_1\).
Hint 2
In (b), try factoring out \(\ket0+\ket1\) on the first qubit.
Worked solution
If \(c_{ij}=a_ib_j\), then \(c_{00}c_{11}=a_0b_0a_1b_1=c_{01}c_{10}\). (a) \(c_{00}c_{11}=-\frac14\) but \(c_{01}c_{10}=\frac14\): the test fails, so the state is entangled, even though every computational-basis outcome has probability \(\frac14\). (b) \(c_{00}c_{11}=\frac i4=c_{01}c_{10}\), and indeed the state is \(\frac{\ket0+\ket1}{\sqrt2}\otimes\frac{\ket0+i\ket1}{\sqrt2}\). Expanding the product reproduces all four amplitudes. Uniform probabilities do not reveal whether a state is entangled; the relations among the amplitudes do. (The converse also holds: when the condition is met, the state factors.)
A student says: “The state \((\ket0+\ket1)/\sqrt2\) means the qubit is really \(0\) or really \(1\), each with probability \(\frac12\); we just don’t know which.” Propose an experiment that distinguishes the superposition from a qubit prepared as \(\ket0\) or \(\ket1\) by a fair coin, and compute its predictions for both.
Hint 1
Apply \(H\) before measuring.
Hint 2
For the coin preparation, average the results for \(\ket0\) and \(\ket1\).
Worked solution
Apply \(H\) and then measure in the computational basis. The superposition gives \(H\frac{\ket0+\ket1}{\sqrt2}=\ket0\): outcome \(0\) with certainty. For the coin preparation, \(H\ket0\) and \(H\ket1\) each give outcome \(0\) with probability \(\frac12\), so the average is \(\frac12\). A computational-basis measurement alone cannot tell the two preparations apart, but the Hadamard step reveals the difference, because the superposition has a definite relative phase between its amplitudes and the coin preparation has none. A superposition is a definite state, not a description of our ignorance.
Prove that a unitary preserves inner products: \(\braket{U\phi}{U\psi}=\braket\phi\psi\). Deduce that no unitary can map \(\ket0\) and \(\ket+\) to two orthogonal states. Explain why this means that no measurement, even after any closed-system evolution, distinguishes \(\ket0\) from \(\ket+\) with certainty.
Hint 1
Use \(\braket{U\phi}{U\psi}=\bra\phi U^\dagger U\ket\psi\).
Hint 2
\(\braket0+=1/\sqrt2\).
Worked solution
By the defining property of the adjoint, \(\braket{U\phi}{U\psi}=\bra\phi U^\dagger U\ket\psi=\braket\phi\psi\), since \(U^\dagger U=I\). For \(\ket0\) and \(\ket+\), the overlap is \(1/\sqrt2\), and so is the overlap of \(U\ket0\) and \(U\ket+\) for every unitary \(U\): the images are never orthogonal. A computational-basis measurement that always gave one outcome for the first state and the other outcome for the second would require the two evolved states to lie along different basis directions, which are orthogonal. So no sequence of unitary steps followed by such a measurement separates \(\ket0\) from \(\ket+\) perfectly. Nonorthogonal states can be told apart only with some probability of error, a limit that Quantum Information develops in detail.
Count the real parameters needed to specify (a) a general pure state of \(n\) qubits and (b) a product of \(n\) one-qubit pure states, after removing normalization and global phase. Evaluate both for \(n=2\) and \(n=10\). What does the comparison suggest about how common entangled states are?
Hint 1
A general state has \(2^n\) complex amplitudes; normalization and global phase remove two real parameters.
Hint 2
Each qubit in a product needs two real parameters, \(\theta\) and \(\phi\).
Worked solution
(a) \(2^n\) complex amplitudes are \(2\cdot2^n\) real numbers. Normalization removes one and global phase another, leaving \(2^{n+1}-2\). (b) Each qubit needs \(\theta\) and \(\phi\), so a product needs \(2n\). For \(n=2\): \(6\) against \(4\). For \(n=10\): \(2046\) against \(20\). Product states form a thin subset of all pure states, and the gap grows exponentially. A randomly chosen pure state of many qubits is therefore almost never a product. This is also why a classical description of a general \(n\)-qubit state needs exponentially many numbers, while a product state needs only \(2n\).