---
title: "Two-state quantum systems and spin measurement | Sandbox Physics"
description: "Project a two-state system onto a measurement basis and compare repeated spin measurements with and without an intermediate analyzer."
canonical_url: "https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/quantum-physics/two-level-systems-and-measurement/"
last_modified: "2026-11-24"
---

[Volume 6 · Quantum Physics](https://sandboxphysics.com/learn/quantum-physics/)

# How do we read out a two-state quantum system?

Project a two-state system onto a measurement basis and compare repeated spin measurements with and without an intermediate analyzer.

Before you start: [Chapter 1](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/) on probabilities, [Chapter 2](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/) on wave functions, [Chapter 3](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/) on state evolution and [Volume 3 Chapter 4](https://sandboxphysics.com/learn/electricity-and-magnetism/magnetic-force-and-hall-effect/) on magnetic fields.

After this chapter you can: Calculate measurement probabilities along two axes and use a measurement sequence to predict a final state.

A two-state quantum system gives one of two outcomes when measured in a chosen basis. The probability of each is the squared projection of the state onto its corresponding basis vector. Change the basis and the probabilities can change. In a sequence, the first measurement changes the state that reaches the next one.

Chapters 1 and 2 used squared amplitudes to predict position outcomes. Here there are only two outcomes in a given basis. We can calculate their probabilities with two-component vectors and see what an intermediate spin analyzer does to the final counts.

## 5.1 A basis gives coordinates for the state and outcomes for a measurement

For a spin-half particle, a measurement along the $z$ axis returns either $+\hbar/2$ or $-\hbar/2$. Write the corresponding orthonormal states as $\lvert0\rangle$ and $\lvert1\rangle$. Orthonormal means that each has norm one and their inner product is zero. A pure state in this basis is

$$
\lvert\psi\rangle=\alpha\lvert0\rangle+\beta\lvert1\rangle,\qquad
|\alpha|^2+|\beta|^2=1 .
$$

The Born probabilities for a $z$ measurement are $|\alpha|^2$ and $|\beta|^2$. In general, if a normalized outcome state is $\lvert\phi\rangle$, its probability is

$$
P(\phi)=|\langle\phi\mid\psi\rangle|^2 .
$$

To take the inner product, conjugate the components of the first vector and multiply them by the corresponding components of the second, then add. A common phase multiplies the inner product by a factor of magnitude one, so it leaves these probabilities fixed. [MIT 8.05, Spin One-half, Bras, Kets, and Operators](https://ocw.mit.edu/courses/8-05-quantum-physics-ii-fall-2013/a56c316e4ec548d8bd0a554fac9a74e8_MIT8_05F13_Chap_02.pdf).

## 5.2 Measuring along another axis can reveal relative phase

Represent a linear operator by a matrix whose columns are its actions on the basis vectors. In the $z$ basis the dimensionless spin operator for the $x$ direction is

$$
\sigma_x=\begin{pmatrix}0&1\\1&0\end{pmatrix}.
$$

This swaps the components. Its two eigenvectors are $\lvert+_x\rangle=(\lvert0\rangle+\lvert1\rangle)/\sqrt2$ and $\lvert-_x\rangle=(\lvert0\rangle-\lvert1\rangle)/\sqrt2$. They give the positive and negative spin results along $x$. For an equal-amplitude preparation with a relative phase $\varphi$, the probabilities of the positive result in the two bases are

$$
\begin{aligned}
P(+_z)&=\tfrac12,\\
P(+_x)&=\left|\frac{1+\mathrm e^{i\varphi}}{2}\right|^2
      =\tfrac12(1+\cos\varphi).
\end{aligned}
$$

In the $z$ basis each result reads the magnitude of just one component. In the $x$ basis both components enter an inner product and can interfere. At $\varphi=0$ the $x$ result is always positive. At $\varphi=\pi$ it is always negative. The same two states each give half positive results in a $z$ measurement.

In [Quantum State & Born Measurement](https://sandboxphysics.com/labs/qubit-state/) choose **Read phase**. The prepared relative phase is $45^\circ$ and the analyzer is on the $x$ axis. Select **Acquire shots** once. The default seed gives 173 positives in 200 trials, close to the predicted probability $0.854$. Select **Phase hidden in Z** and acquire once again. The same preparation now predicts $0.500$, with 104 positive results in the simulated 200 trials.

## 5.3 An intermediate analyzer changes the state passed on

In a Stern–Gerlach device, a magnetic field gradient deflects neutral atoms with magnetic moments. In the ideal analyzer the field sets the spin axis, and its gradient separates the two spin projections along that axis. A filter can retain just one of the resulting channels. [OpenStax, University Physics Volume 3, Section 8.3](https://openstax.org/books/university-physics-volume-3/pages/8-3-electron-spin).

The ideal projection onto a normalized outcome state $\lvert\phi\rangle$ is $\lvert\phi\rangle\langle\phi\rvert$. Acting on the incoming state leaves a multiple of the outcome vector. Conditioned on that outcome, normalize the vector to get the state passed on. An immediate measurement in the same basis repeats the result with certainty.

Start with the positive $z$ channel and end by measuring $z$ again. If the middle analyzer points along $x$ and passes its positive channel, half the atoms are blocked. Each transmitted atom is now in $\lvert+_x\rangle$, with half probability for each final result. The fractions of the original prepared atoms are one quarter final positive, one quarter final negative and one half blocked.

More generally, if the middle direction in the $xz$ plane makes angle $\theta$ with the preparation axis, its positive state is $\cos(\theta/2)\lvert0\rangle+\sin(\theta/2)\lvert1\rangle$. The probability of passing the middle filter is $\cos^2(\theta/2)$. Among the atoms that pass, the probability of a final positive result is also $\cos^2(\theta/2)$. Multiply these to get the final positive fraction per prepared atom.

If both middle $x$ channels continue as distinguishable alternatives and the result is unread, each contributes half positive and half negative at the end. Keeping both channels gives no blocked atoms but still changes the final probabilities. In the bypass case the middle analyzer is absent. Then all atoms keep their original positive $z$ state until the final measurement.

- Final positive
- Final negative
- Blocked

**Figure 5.1** Final spin outcomes for four choices of middle analyzer. Fractions and counts use atoms that have already passed the preparation filter.

## 5.4 Check whether a fraction uses all prepared atoms or only those passed

Open [Stern–Gerlach Sequence](https://sandboxphysics.com/labs/stern-gerlach-sequence/). Choose **Same axis**, **Crossed filters**, **Unread middle** and **Bypass middle** in turn. After each choice select **Acquire shots** once. Each preset starts a new experiment with the same seed and a thousand prepared atoms. Predict the three outcome bins before acquiring the counts.

**Table 5.1** Simulated counts at default seed 42, ordered by final positive, final negative, and blocked at the middle filter. The last three columns include all prepared atoms.

| Middle analyzer | Final positive | Final negative | Blocked |
| --- | --- | --- | --- |
| Same axis | 1000 | 0 | 0 |
| Crossed filters | 255 | 225 | 520 |
| Unread middle | 481 | 519 | 0 |
| Bypass middle | 1000 | 0 | 0 |

In the crossed setting the conditional positive fraction is $255/(255+225)\approx0.531$. The positive fraction per prepared atom is $0.255$. Both come from the same counts and answer different questions. The model takes the unread middle measurement to have distinguishable branches throughout. The counts come from independent simulated trials of ideal projections.

## 5.5 Exercises

1. A normalized state has amplitudes $\alpha=3/5$ and $\beta=4i/5$ in the $z$ basis. Find the probabilities of the two results.
2. An equal-amplitude state with relative phase $\pi$ is measured along $x$. Which result appears? Compare with the probabilities along $z$.
3. Multiply both components of a state by $\mathrm e^{i\gamma}$. Why does the Born probability stay fixed in every basis?
4. Apply $\sigma_x$ to $\lvert-_x\rangle$. What does the result say about the eigenvalue for this state?
5. Prepare positive $z$ spin and keep only the positive channel of a middle analyzer at $\theta=60^\circ$ to $z$. Measure $z$ at the end. Find the ideal positive, negative and blocked fractions per prepared atom.
6. A crossed-filter run has 100 final positives, 120 final negatives and 180 blocked outcomes. Find the positive fraction per prepared atom and the positive fraction conditional on passing the middle filter.
7. Why can **Unread middle** and **Bypass middle** give different counts even though all prepared atoms continue in both cases?
8. In the ideal magnet model, what happens to the beam separation if the field gradient is zero but the field is nonzero? Explain why a gradient is required for this readout.

## 5.6 Answers and explanations

Exercise 1

The probabilities are $9/25$ and $16/25$. The magnitude squared removes the factor of $i$ from the second amplitude's probability, and the two probabilities sum to one.

Exercise 2

The state is the negative $x$ eigenstate, so that outcome is certain. In the $z$ basis both components have magnitude $1/\sqrt2$, giving equal probabilities.

Exercise 3

The same factor multiplies the projection amplitude onto any outcome vector. Its magnitude is one, so the magnitude squared is unchanged.

Exercise 4

Swapping the equal and opposite components gives $-\lvert-_x\rangle$. The eigenvalue of $\sigma_x$ is minus one, which labels negative spin along the analyzer axis.

Exercise 5

The middle transmission is $\cos^2 30^\circ=3/4$. Each transmitted atom has probability $3/4$ of a positive final result. The joint positive and negative fractions are $9/16$ and $3/16$. The remaining $1/4$ is blocked.

Exercise 6

There are 400 prepared atoms, so the overall fraction is $100/400=0.250$. Only 220 pass the filter, so the conditional fraction is $100/220\approx0.455$.

Exercise 7

The unread analyzer separates the two $x$ outcomes. Averaging the two distinguishable branches gives equal final $z$ probabilities. Bypassing leaves the initial positive $z$ state intact.

Exercise 8

A uniform field can cause spin evolution but gives no differential translational force on the two magnetic projections in this model. There is no separated pair of spots for the position detector to distinguish.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Quantum State & Born Measurement → Prepare a pure state or a mixture, turn the analyzer and predict the outcome probability. Then record outcomes one at a time and compare how often each appears, with its uncertainty, against the density-matrix prediction.](https://sandboxphysics.com/labs/qubit-state/) [Stern–Gerlach Sequence → Send a beam of neutral spin-half atoms through a sequence of magnets. Rotate the middle magnet, then keep one of its channels or let both through without reading the result. Follow the kept and blocked beams to the final analyzer, and compare the counts with a run that bypasses the middle magnet.](https://sandboxphysics.com/labs/stern-gerlach-sequence/)

## Sources and reading scope

1. [MIT 8.05 Quantum Physics II, Chapter 2 Spin One-half, Bras, Kets, and Operators](https://ocw.mit.edu/courses/8-05-quantum-physics-ii-fall-2013/a56c316e4ec548d8bd0a554fac9a74e8_MIT8_05F13_Chap_02.pdf)

   The notes use spin states to introduce orthonormal bases and compute measurement probabilities from inner products.

2. [OpenStax, University Physics Volume 3, §8.3 Electron Spin](https://openstax.org/books/university-physics-volume-3/pages/8-3-electron-spin)

   The section introduces quantized spin components and the Stern–Gerlach separation in an inhomogeneous magnetic field.

[← Chapter 4 · Why does a quantum particle cross a barrier it cannot climb?](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/) [Chapter 6 · How do atoms turn energy gaps into frequency measurements? →](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)

Chapters in this volume

- [1. How do single detections build up an interference pattern?](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
- [2. How does a wave function predict position and momentum?](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
- [3. How does a prepared quantum state evolve?](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
- [4. Why does a quantum particle cross a barrier it cannot climb?](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
- [5. How do we read out a two-state quantum system?](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
- [6. How do atoms turn energy gaps into frequency measurements?](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
- [7. How do two systems produce quantum correlations?](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

## Keep reading

Interactive Physics Textbook · Reading path

### Quantum Physics

1. [Article **How do single detections build up an interference pattern?**](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
2. [Article **How does a wave function predict position and momentum?**](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
3. [Article **How does a prepared quantum state evolve?**](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
4. [Article **Why does a quantum particle cross a barrier it cannot climb?**](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
5. [You are here **How do we read out a two-state quantum system?**](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
6. [Article **How do atoms turn energy gaps into frequency measurements?**](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
7. [Article **How do two systems produce quantum correlations?**](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **Quantum State & Born Measurement**](https://sandboxphysics.com/labs/qubit-state/)
2. [Article **Born: how a scattering direction became a probability**](https://sandboxphysics.com/stories/quantum-evidence/born-scattering-probability/)
3. [Article **Counting the quantum noise left by a perfect detector**](https://sandboxphysics.com/stories/quantum-evidence/quantum-projection-noise-population-counts/)
4. [Article **How helium atoms escaped the light and formed two narrow peaks**](https://sandboxphysics.com/stories/quantum-evidence/subrecoil-cooling-dark-state-momentum/)
5. [Article **Dense coding sends three distinguishable messages with one photon**](https://sandboxphysics.com/stories/quantum-evidence/dense-coding-three-messages-resources/)
6. [Lab **Stern–Gerlach Sequence**](https://sandboxphysics.com/labs/stern-gerlach-sequence/)
7. [Article **What two silver traces revealed about atoms**](https://sandboxphysics.com/stories/quantum-evidence/stern-gerlach-silver-beam-spin/)
8. [Article **Measuring the proton’s magnetism with a hydrogen beam**](https://sandboxphysics.com/stories/quantum-evidence/stern-proton-moment-molecular-hydrogen/)
