Education / Quantum Computing

Quantum Computing · Chapter 04

Quantum States and Measurement

Presentation slides 23 slides · Fullscreen presentation or print to PDF

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.

In this chapter · 2 sections · 8 topics
  1. 4.1 Vectors and Matrices
    Topics in this section
    1. 4.1.1 State vectors and ket notation
    2. 4.1.2 Inner products and transition amplitudes
    3. 4.1.3 Geometric view
    4. 4.1.4 Transition matrices
    5. 4.1.5 Reversibility of transitions
  2. 4.2 Postulates
    Topics in this section
    1. 4.2.1 State and evolution postulates
    2. 4.2.2 The measurement postulate
    3. 4.2.3 The composite-state postulate
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

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.

4.1.1 State vectors and ket notation§

qubitketsuperpositionstate vector

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:

\[\ket{0} = \begin{pmatrix}1\\0\end{pmatrix},\qquad \ket{1} = \begin{pmatrix}0\\1\end{pmatrix},\qquad \ket{\psi} = v_0\ket{0} + v_1\ket{1} = v_0\begin{pmatrix}1\\0\end{pmatrix} + v_1\begin{pmatrix}0\\1\end{pmatrix} = \begin{pmatrix}v_0\\v_1\end{pmatrix}.\]

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:

\[\begin{pmatrix}a_0\\a_1\end{pmatrix} + \begin{pmatrix}b_0\\b_1\end{pmatrix} = \begin{pmatrix}a_0+b_0\\a_1+b_1\end{pmatrix},\qquad c\begin{pmatrix}a_0\\a_1\end{pmatrix} = \begin{pmatrix}ca_0\\ca_1\end{pmatrix}.\]

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}\).

A ket as a vector in the standard basisThe standard basis vectors ket zero and ket one are perpendicular unit vectors. A blue arrow represents ket psi equals three fifths ket zero plus four fifths ket one. Dashed lines mark its coordinates v zero equals three fifths horizontally and v one equals four fifths vertically. The same ket is the column vector with entries three fifths and four fifths. This real-amplitude drawing represents state space, not physical space.A ket and its standard-basis coordinates|1⟩|0⟩|ψ⟩v₁=4/5v₀=3/50Standard basis|0⟩=beginpmatrix1\0endpmatrix|1⟩=beginpmatrix0\1endpmatrix|ψ⟩=3/5|0⟩+4/5|1⟩|ψ⟩=beginpmatrix3/5\4/5endpmatrixA real-amplitude example.|ψ⟩=v₀|0⟩+v₁|1⟩: the coefficients are coordinates.
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
  1. 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\).

  2. 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\).

  3. 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.

4.1.2 Inner products and transition amplitudes§

inner producttransition amplitudebraconjugate 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

\[\braket{j}{i} = \begin{cases}1, & j=i,\\ 0, & j\ne i.\end{cases}\]

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,

\[\braket{\phi}{\psi} = \sum_j \braket{\phi}{j}\,\braket{j}{\psi}.\]

Paths from an initial state to a final stateThe arrow into configuration j carries ⟨j|ψ⟩, and the arrow from j into the final state carries ⟨φ|j⟩. Each path multiplies the two and the paths add, giving ⟨φ|ψ⟩. For the final state |0⟩, only the path through 0 contributes, because ⟨0|0⟩=1 and ⟨0|1⟩=0. |ψ⟩ → 0 (weight ⟨0|ψ⟩); |ψ⟩ → 1 (weight ⟨1|ψ⟩); 0 → |φ⟩ (weight ⟨φ|0⟩); 1 → |φ⟩ (weight ⟨φ|1⟩). |ψ⟩ → 0 (weight ⟨0|ψ⟩); |ψ⟩ → 1 (weight ⟨1|ψ⟩); 0 → |0⟩ (weight ⟨0|0⟩=1); 1 → |0⟩ (weight ⟨0|1⟩=0).Paths from an initial state to a final stateinitialconfigurationfinal⟨0|ψ⟩⟨1|ψ⟩⟨φ|0⟩⟨φ|1⟩|ψ⟩01|φ⟩initialconfigurationfinal⟨0|ψ⟩⟨1|ψ⟩⟨0|0⟩=1⟨0|1⟩=0|ψ⟩01|0⟩
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:

\[\braket{\phi}{j} = \braket{j}{\phi}^* = \phi_j^*.\]

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}\):

\[\ket{\phi} = \begin{pmatrix}\phi_0\\\phi_1\end{pmatrix},\qquad \bra{\phi} = \begin{pmatrix}\phi_0^* & \phi_1^*\end{pmatrix},\qquad \braket{\phi}{\psi} = \begin{pmatrix}\phi_0^* & \phi_1^*\end{pmatrix}\begin{pmatrix}\psi_0\\\psi_1\end{pmatrix} = \phi_0^*\psi_0 + \phi_1^*\psi_1.\]

Swapping the two states conjugates every term in the sum, giving conjugate symmetry:

\[\braket{\psi}{\phi} = \bigl(\braket{\phi}{\psi}\bigr)^*.\]

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
  1. 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.

  2. 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\).

  3. 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.

4.1.3 Geometric view§

normunit vectororthogonalorthonormalcomponentangle

The inner product equips our space of state vectors with geometric notions of length, angle, and perpendicular projection.

The norm (or length) of a vector \(\ket{\psi}\) is defined as

\[\|\psi\| = \sqrt{\braket{\psi}{\psi}} = \sqrt{\sum_j |\psi_j|^2}.\]

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}\):

\[\ket{\psi} = \braket{\phi}{\psi}\,\ket{\phi} + \ket{\psi_\perp},\qquad \braket{\phi}{\psi_\perp} = 0.\]

Splitting a state along a directionIn a real state-vector plane, the unit vector phi points at 15 degrees and the unit vector psi at 75 degrees, so the angle between them is 60 degrees. The component of psi along phi, the inner product of phi and psi times phi, has length one half and lies along phi. The remainder psi perp runs from the end of that component to the tip of psi, at a right angle to phi, with length root three over two. The squared lengths one quarter and three quarters add to one.Splitting a state along a direction|φ⟩|ψ⟩θ⟨φ|ψ⟩ |φ⟩|ψ_(perp)⟩|ψ⟩=⟨φ|ψ⟩ |φ⟩+|ψ_(perp)⟩⟨φ|ψ_(perp)⟩=01=|⟨φ|ψ⟩|²+|ψ_(perp)|²Here θ=60°: ⟨φ|ψ⟩=1/21=1/4+3/4
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

\[\|\psi\|^2 = |\braket{\phi}{\psi}|^2 + \|\psi_\perp\|^2.\]

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

Inner product: amplitude along the final directionA real state-vector plane shows the final unit vector phi equals ket zero and the initial unit vector psi equals square root three over two ket zero plus one half ket one. Their angle is pi over six. The component of psi along phi has coefficient bra phi ket psi equals square root three over two, so the probability of the final-state outcome is three quarters. The dashed line selects the projection. These are state-vector directions, not directions in physical space.Amplitude as a component of the initial vector|1⟩θ0initial |ψ⟩final |φ⟩=|0⟩⟨φ|ψ⟩=√3/2⟨φ|φ⟩=⟨ψ|ψ⟩=1θ=π/6|⟨φ|ψ⟩|²=3/4For real unit vectors: ⟨φ|ψ⟩=cosθ.
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
  1. 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.

  2. 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\).

  3. 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.

4.1.4 Transition matrices§

matrixmatrix productidentity matrixlinearity

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\).

Transition amplitudes and matrix entriesTwo input nodes and two output nodes show one step. From input 0, the arrows to outputs 0 and 1 have weights a and b; these form matrix column 0. From input 1, the arrows to outputs 0 and 1 have weights c and d; these form column 1. Output 0 selects row 0, containing a and c. Output 1 selects row 1, containing b and d. Thus U equals the matrix with rows a,c and b,d, and U ji is the weight of i to j.One-step transition graphMatrix of the same transitionInput iOutput jabcd0101from 0from 1to 0to 1U=abcdRows: destinations. Columns: sources.Uⱼᵢ=⟨j|U|i⟩, U=beginpmatrixa&c\b&dendpmatrix
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}\):

\[\ket{\psi'} = U\ket{\psi} = \sum_i v_i\,U\ket{i}.\]

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\),

\[U(a\ket{\phi} + b\ket{\psi}) = aU\ket{\phi} + bU\ket{\psi}.\]

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

\[X = \begin{pmatrix}0 & 1\\ 1 & 0\end{pmatrix},\qquad Z = \begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix},\qquad H = \frac{1}{\sqrt{2}}\begin{pmatrix}1 & 1\\ 1 & -1\end{pmatrix}.\]

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

\[U = \frac{1}{5}\begin{pmatrix}4 & -3\\ 3 & 4\end{pmatrix},\]

acting on \(\ket{\psi} = (3/5)\ket{0} + (4/5)\ket{1}\) gives \((3/5)U\ket{0} + (4/5)U\ket{1} = \ket{1}\):

Geometric action of a transition matrixLeft: the initial ket psi has coordinates three fifths and four fifths in the standard basis. Right: U equals one fifth times the matrix with rows four,minus three and three,four. It rotates ket zero to coordinates four fifths,three fifths and ket one to minus three fifths,four fifths. The transformed components three fifths U ket zero and four fifths U ket one add to U ket psi equals ket one. The coordinate axes stay fixed. This is a real state-vector plane.Initial vectorTransformed vector and basis directions|0⟩|1⟩|ψ⟩4/53/5|0⟩|1⟩U|0⟩U|1⟩U|ψ⟩3/5U|0⟩4/5U|1⟩The state changes; the coordinate axes stay fixed.U=1/5beginpmatrix4&−3\3&4endpmatrix, |ψ⟩=beginpmatrix3/5\4/5endpmatrix, U|ψ⟩=beginpmatrix0\1endpmatrixU|ψ⟩=3/5U|0⟩+4/5U|1⟩=|1⟩
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\),

\[\bra{k}VU\ket{i} = \sum_j \bra{k}V\ket{j}\,\bra{j}U\ket{i},\qquad (VU)_{ki} = \sum_j V_{kj}U_{ji},\]

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
  1. 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\).

  2. 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.

  3. 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.

4.1.5 Reversibility of transitions§

adjointunitary

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”):

\[\bra{i}A^\dagger\ket{j} = \bigl(\bra{j}A\ket{i}\bigr)^*,\qquad (A^\dagger)_{ij} = A_{ji}^*.\]

In matrix form, column \(i\) of \(A\) becomes the conjugated row \(i\) of \(A^\dagger\).

Adjoint: reverse transitions and conjugate amplitudesThe arrows of the preceding U graph are reversed. The original transition i to j with amplitude U ji becomes a transition j to i with conjugate amplitude U ji star. The reversed arrows have weights a star from 0 to 0, b star from 1 to 0, c star from 0 to 1, and d star from 1 to 1. Thus U dagger has rows a star,b star and c star,d star. The original columns become conjugated rows. For a unitary U this is the inverse transition; the adjoint is defined for any matrix.Reversed transition graphMatrix U†Output iInput ja*b*c*d*0101from 0from 1to 0to 1U†=a*b*c*d*Original columns become conjugated rows.U=beginpmatrixa&c\b&dendpmatrix longmapsto U†=beginpmatrixa*&b*\c*&d*endpmatrix(U†)ᵢⱼ=Uⱼᵢ*=bigl(⟨j|U|i⟩bigr)*
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\):

\[(U^\dagger U)_{ik} = \sum_j (U^\dagger)_{ij}U_{jk} = \sum_j U_{ji}^* U_{jk}.\]

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\).

Composition of U and its adjointA three-layer graph shows inputs k, intermediate configurations j, and outputs i. The first step U has matrix rows a,c and b,d. The second step U dagger reverses the original arrows and conjugates their weights. Each entry of U dagger U is the sum of the two path products to that output. Normalized columns give diagonal entries one; orthogonal columns give off-diagonal entries zero. Under these conditions the composite is the identity.One step, then its adjointSum products along the two-step pathsInput kIntermediate jOutput iUU†abcda*c*b*d*010101U† U=beginpmatrixa*a+b*b&a*c+b*d\c*a+d*b&c*c+d*dendpmatrix=beginpmatrix1&0\0&1endpmatrix=IUnit output vectors give the diagonal ones.Orthogonal outputs give the off-diagonal zeros.(U† U)ᵢₖ=Σⱼ Uⱼᵢ*Uⱼₖ=begincases1&i=k\0&i≠ kendcases
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:

\[\braket{U\chi}{U\psi} = \bra{\chi}U^\dagger U\ket{\psi} = \braket{\chi}{\psi}.\]

By contrast, when a matrix \(A\) is not unitary, \(A^\dagger\) does not equal \(A^{-1}\). For the horizontal shear

\[A = \begin{pmatrix}1 & 1\\ 0 & 1\end{pmatrix},\qquad A^\dagger = \begin{pmatrix}1 & 0\\ 1 & 1\end{pmatrix},\]

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 matrix and its adjoint acting on the same vectorOne set of axes shows the initial vector psi in blue at coordinates three fifths,four fifths, A psi in orange at seven fifths,four fifths, and A dagger psi in green at three fifths,seven fifths. A is the horizontal shear with rows one,one and zero,one; its adjoint is the vertical shear with rows one,zero and one,one. An orange arc alpha measures the angle from A psi to psi, about 23.4 degrees. A green arc beta measures the angle from psi to A dagger psi, about 13.7 degrees. The arcs compare directions, not lengths. The adjoint does not undo A.Same initial vector, two different images|0⟩|1⟩|ψ⟩A|ψ⟩A†|ψ⟩αβA=beginpmatrix1&1\0&1endpmatrixA†=beginpmatrix1&0\1&1endpmatrixα≈23.4°β≈13.7°Angles measured from the initial vector.|ψ⟩=beginpmatrix3/5\4/5endpmatrix, A|ψ⟩=beginpmatrix7/5\4/5endpmatrix, A†|ψ⟩=beginpmatrix3/5\7/5endpmatrixA† A=beginpmatrix1&1\1&2endpmatrix≠ I
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.
Geometric action of AA dagger and A dagger ACommon axes show initial psi at three fifths,four fifths in blue. Orange AA dagger first sends psi through A dagger to three fifths,seven fifths, then through A to two,seven fifths. Green A dagger A first sends psi through A to seven fifths,four fifths, then through A dagger to seven fifths,eleven fifths. Faint dashed rays show the intermediate vectors. Angle alpha compares AA dagger psi with psi, about 18.1 degrees; beta compares A dagger A psi with psi, about 4.4 degrees. The blue direction extends as a faint guide for the angle arc. The two products are different and neither returns psi.Two orders of composition on the same vector|0⟩|1⟩|ψ⟩AA†|ψ⟩A† A|ψ⟩A†|ψ⟩A|ψ⟩αβAA†=beginpmatrix2&1\1&1endpmatrixA† A=beginpmatrix1&1\1&2endpmatrixThe rightmost matrix acts first.α≈18.1°β≈4.4°Angles measured from the initial vector.|ψ⟩xrightarrowA†beginpmatrix3/5\7/5endpmatrixxrightarrowAAA†|ψ⟩=beginpmatrix2\7/5endpmatrix|ψ⟩xrightarrowAbeginpmatrix7/5\4/5endpmatrixxrightarrowA†A† A|ψ⟩=beginpmatrix7/5\11/5endpmatrix
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
  1. 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.

  2. 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.

  3. 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.

4.2.1 State and evolution postulates§

postulate

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)\):

\[\ket{\psi} = \cos\frac{\theta}{2}\ket{0} + e^{i\phi}\sin\frac{\theta}{2}\ket{1},\qquad 0 \le \theta \le \pi.\]

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 preserves state geometryEvery arrow ends on the unit circle: both states have length one before and after the operation. The same rotation carries |ψ⟩ to U|ψ⟩ and |chi⟩ to U|chi⟩, preserving the angle between them. This real-amplitude example shows a rotation in state space; general unitaries preserve inner products in complex state space. Two unit circles show two states before and after a common rotation of 40 degrees. Both radii remain one and the angle between the states is unchanged.Unitary evolution preserves state geometryBeforev₀v₁|ψ⟩|chi⟩γUnit radius · same angle γAfter the same unitary Uv₀v₁U|ψ⟩U|chi⟩γUnit radius · same angle γU|Uψ|=|ψ|=1, ⟨Uchi|Uψ⟩=⟨chi|ψ⟩
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
  1. 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\).

  2. 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\).

  3. 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.

4.2.2 The measurement postulate§

measurement postulate

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.

Measurement and its conditional stateFor |ψ⟩=(√3/2)|0⟩+(1/2)|1⟩, the first measurement gives the indicated probabilities. Each branch leaves a definite state, so an immediate repeat gives the same result. start → zero: p=3/4; start → one: p=1/4; zero → end0: p=1; one → end1: p=1Measurement and its conditional statep=3/4p=1/4p=1p=1|ψ⟩|0⟩|1⟩|0⟩|1⟩First measurementImmediate repeatArrow labels are probabilities; nodes are conditional states.
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

\[p(j) = \|P_j\ket{\psi}\|^2,\qquad \ket{\psi_j} = \frac{P_j\ket{\psi}}{\sqrt{p(j)}}\quad\bigl(p(j) > 0\bigr).\]

In the real state plane, measuring \(\ket{\psi} = \cos\alpha\ket{0} + \sin\alpha\ket{1}\) in an orthonormal basis rotated by angle \(\beta\),

\[\ket{b_0} = \cos\beta\ket{0} + \sin\beta\ket{1},\qquad \ket{b_1} = -\sin\beta\ket{0} + \cos\beta\ket{1},\]

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

Measurement: project, square the length, then normalize A unit state vector with coordinates square root of three over two and one half has orthogonal projections onto the zero and one axes. The squared lengths give probabilities three quarters and one quarter. Conditional on the observed outcome, the corresponding projection is normalized to the unit basis vector. Only one outcome occurs per run. 1. Resolve the state into projections |ψ⟩ |0⟩ |1⟩ P₀|ψ⟩ = (√3/2)|0⟩ P₁|ψ⟩ = ½|1⟩ Squared projection length = outcome probability 2. Normalize the observed component Outcome 0 · probability 3/4 P₀|ψ⟩ / √(3/4) = |0⟩ Outcome 1 · probability 1/4 P₁|ψ⟩ / √(1/4) = |1⟩ One outcome per run; the retained state has unit length.

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}\).

Continuous evolution interrupted by measurement A schematic state history follows four smooth blue curves separated by three vertical orange drops at measurement times. Each drop represents projection and normalization conditional on the observed outcome. Smooth unitary evolution resumes from each updated state. The vertical position is illustrative, not a probability or state norm. One observed history: evolve → measure → evolve → measure … State trajectory (schematic) Time Unitary evolution Unitary evolution Unitary evolution Evolution resumes |ψ₁⟩ |ψ₂⟩ |ψ₃⟩ Measurement 1 Measurement 2 Measurement 3 At each drop: project onto the observed outcome and normalize. Vertical drops mark conditional updates; their height is not a loss of probability or norm.
A quantum run alternates reversible unitary evolution between observations (blue curves) with projective state updates at measurement times (vertical orange steps).
Problems
  1. 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\).

  2. 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\).

  3. 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.

4.2.3 The composite-state postulate§

tensor productproduct stateentanglement

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:

\[\ket{\Psi} = c_{00}\ket{00} + c_{01}\ket{01} + c_{10}\ket{10} + c_{11}\ket{11} = \begin{pmatrix}c_{00}\\c_{01}\\c_{10}\\c_{11}\end{pmatrix},\qquad \sum_{i,j\in\{0,1\}} |c_{ij}|^2 = 1.\]

Two-qubit amplitudes on a complete bipartite graph Two nodes for qubit A, zero and one, are each connected to both basis nodes for qubit B. The four edge weights are c00, c01, c10, and c11, one amplitude for each joint configuration. For a product state these weights are ac, ad, bc, and bd. Edges label joint configurations, not time evolution. Four joint configurations, four amplitude weights Qubit A Qubit B c₀₀ = ac c₁₁ = bd c₀₁ = ad c₁₀ = bc |0⟩ₐ|1⟩ₐ |0⟩ᵦ|1⟩ᵦ Each edge joins a pair of local labels to specify one joint basis state. |Ψ⟩ = Σᵢⱼ cᵢⱼ|ij⟩, Σᵢⱼ |cᵢⱼ|² = 1 The product weights ac, ad, bc, bd apply to independent pure-state preparations.
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}\):

\[\begin{pmatrix}a\\b\end{pmatrix}\otimes\begin{pmatrix}c\\d\end{pmatrix} = \begin{pmatrix}ac\\ad\\bc\\bd\end{pmatrix},\qquad \ket{i}\otimes\ket{j} = \ket{ij}.\]

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

\[\frac{\ket{00}+\ket{11}}{\sqrt{2}} = \frac{1}{\sqrt{2}}\begin{pmatrix}1\\0\\0\\1\end{pmatrix},\]

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
  1. 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\).

  2. 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.

  3. 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\).

Related appendix: Linear algebra reference.

Summary

Questions and worked problems

Attempt each question before opening a hint. Explain your reasoning, then compare it with the solution.

1. Quick check §

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.

Revisit the relevant explanation

2. Quick check §

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.

Revisit the relevant explanation

3. Quick check §

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.

Revisit the relevant explanation

4. Worked problem §

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.

Hint 1

\(U^2=\frac{1}{25}\begin{pmatrix}7&-24\\24&7\end{pmatrix}\).

Hint 2

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.

Revisit the relevant explanation

5. Worked problem §

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.

Revisit the relevant explanation

6. Worked problem §

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.

Revisit the relevant explanation

7. Worked problem §

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.)

Revisit the relevant explanation

8. Misconception §

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.

Revisit the relevant explanation

9. Extension §

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.

Revisit the relevant explanation

10. Extension §

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\).

Revisit the relevant explanation

Where this leads. Chapter 5 combines these postulates into the quantum circuit model of computation.

Search this book

Search all chapters and appendices.