Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

4. Creating Superposition: Stern–Gerlach

In the previous chapter, we have seen that a photon in an interferometer can be a prototype for a qubit. Might there be any other prototypes for a qubit arising from other particles that we might know? In fact, an electron is another prototype for a qubit. An electron has many measurable properties such as energy, mass, momentum. But, for the purposes of creating a qubit, we want to focus on a property with only two measurable values. An electron has a two-state property which is called spin.

Classically, an electron’s spin can be visualized as a rotation about its own axis, like a spinning top or fidget spinner. You learned in high school physics that a moving charge creates a magnetic field according to the right-hand rule. By curling the fingers of your right hand in the direction of the electron’s rotation, your thumb points in the direction of the magnetic field created by the charge. Conceptually, an electron’s spin behaves somewhat like a tiny bar magnet. However, this classical picture is just an analogy. In reality, the quantum mechanical property we call “spin” is intrinsic to the electron (like its mass or charge). The property was called spin because it can be described mathematically just like orbital angular momentum, but spin does not actually correspond to the electron physically rotating.[1] Just like a lot of quantum phenomena, spin can be confusing at first. Exploring how the electron can be used as a qubit will provide further intuition into quantum phenomena such as quantum superposition, spin, and measurement.

4.1 Stern–Gerlach Apparatus

The original Stern–Gerlach experiment sent silver atoms through an inhomogeneous magnetic field and observed two distinct deflections. The apparatus provides a model for measuring a spin-½ particle: along any chosen axis, an electron’s spin measurement has two possible outcomes. This video[2] explains the experimental apparatus used to measure the electron’s spin. The key point here is that the vertically oriented apparatus (called the z-direction by convention) only measures the spin as either up or down, not randomly oriented at any angle. Since the spin of an electron has two measurable states, it can represent a qubit with ∣0⟩\lvert 0 \rangle as spin up and ∣1⟩\lvert 1 \rangle as spin down (Fig. Figure 1).

Cartoon analogy shows an electron with magnetic moment up or down, like opposite bar-magnet orientations; a tilted classical-spin picture is crossed out

Figure 1:An electron can spin either up or down and produce a magnetic field.

Question 1 Open up the PhET Stern–Gerlach simulator[3] and try sending electrons of various initial spins into the Stern–Gerlach apparatus (SGA).

Are the results what you would expect? The “up” and “down” directions are defined by the orientation of the apparatus, as in Fig. Figure 2. There is nothing inherently special about the z-direction compared to the x- or y-direction. An SGA rotated horizontally would measure either spin left or spin right. An SGA rotated by 45° would measure the spin to be either diagonally up or diagonally down. What is particularly interesting is if we send a single spin up electron into a horizontally oriented SGA.

Stern–Gerlach device with separate upper red and lower blue output ports for the two spin outcomes

Figure 2:A cartoon picture of the Stern–Gerlach Apparatus. Electron spin produces a magnetic field either in the up or down direction.

Question 2 Where would you expect a spin up electron to land in Fig. Figure 3 after passing through a horizontal SGA?

Four candidate detector patterns: a spot on the left, a spot on the right, one central spot, or two spots separated vertically

Figure 3:Choices for Question 2.

Classically, vertically oriented bar magnets in a horizontal magnetic field would land at the center of the screen. However, recall that the spin can only be measured as left or right and cannot possibly land in the center. The way quantum mechanics solves this problem is to have the electron land either on the left or the right with 50% probability. Sound familiar? Before entering the horizontal SGA, a spin-up electron is already a superposition of left and right when expressed in the horizontal measurement basis. The apparatus yields one of those two outcomes.

The Stern–Gerlach results illustrate why the measurement basis matters when describing a spin qubit. More broadly, simulating quantum systems, including properties of molecules, is one proposed application of quantum computers.[4]

4.2 Measurement Basis

Spin in the vertical direction can be represented as a superposition of spins in the horizontal direction. As shown in the simulation, an electron with vertical spin has a 50% chance of being measured as right or left:

∣↑⟩=12∣→⟩+12∣←⟩,\lvert \uparrow \rangle = \frac{1}{\sqrt{2}}\lvert \rightarrow \rangle + \frac{1}{\sqrt{2}}\lvert \leftarrow \rangle,
∣↓⟩=12∣←⟩−12∣→⟩.\lvert \downarrow \rangle = \frac{1}{\sqrt{2}}\lvert \leftarrow \rangle - \frac{1}{\sqrt{2}}\lvert \rightarrow \rangle.

In more traditional qubit notation, spin along the + z and − z directions is written as ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1\rangle, while spin along the + x and − x directions is ∣+⟩\lvert + \rangle and ∣−⟩\lvert - \rangle:

∣0⟩=12∣+⟩+12∣−⟩,\lvert 0 \rangle = \frac{1}{\sqrt{2}}\lvert+\rangle + \frac{1}{\sqrt{2}}\lvert-\rangle,
∣1⟩=12∣+⟩−12∣−⟩.\lvert 1 \rangle = \frac{1}{\sqrt{2}}\lvert + \rangle - \frac{1}{\sqrt{2}}\lvert - \rangle.

The equations express the same state in two different measurement bases. Figure Figure 4 uses a coin as a mnemonic for changing viewpoint, but an ordinary coin does not acquire quantum coherence merely because it is viewed from another direction. A horizontal spin measurement on a vertically prepared electron gives two possible outcomes with equal probability.

Coin-viewpoint analogy labels one view heads for sure and another a heads-tails superposition; this is only a mnemonic for changing measurement basis

Figure 4:Analogy for how a definite vertical spin is seen as a superposition in the horizontal direction.

Example Write the ∣+⟩\lvert + \rangle state in terms of ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle.

Solution Adding Eqs. ((3)) and ((4)) we find

∣0⟩+∣1⟩=22∣+⟩.\lvert 0 \rangle + \lvert 1 \rangle = \frac{2}{\sqrt{2}}\lvert + \rangle.

Rearranging, we get

∣+⟩=12∣0⟩+12∣1⟩.\lvert + \rangle = \frac{1}{\sqrt{2}}\lvert 0 \rangle + \frac{1}{\sqrt{2}}\lvert 1 \rangle.

Similarly, by subtracting Eqs. ((3)) and ((4)), we find

∣−⟩=12∣0⟩−12∣1⟩.\lvert - \rangle = \frac{1}{\sqrt{2}}\lvert 0 \rangle - \frac{1}{\sqrt{2}}\lvert 1 \rangle.

These equations show that a horizontal spin is a superposition of spin up and spin down. As we saw in the beam splitter example, the minus sign encodes information about the original state of the particle before it is put in superposition. As described and visually shown in Sect. 2.3 Bloch Sphere, it is possible to choose other complex amplitudes that give the same probability, but the details are mathematically beyond our scope.

We reached the conclusion that spins in one direction can be written as a superposition of spins in another direction. Within the quantum computing field, the “z-basis” is composed of ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle, while ∣+⟩\lvert + \rangle and ∣−⟩\lvert - \rangle compose the “x-basis.” A basis is analogous to a coordinate system for quantum states. Any state can be written in terms of a different choice of basis, similarly to how any vector can be broken down into components along a different choice of axes.

In Fig. Figure 5, a box on a ramp is subject to a force. The vector decomposition of F⃗\vec {F} is shown for three different coordinate systems. All three coordinate systems are valid for describing the force, but only the first two are convenient to use in actual calculations. By choosing x–y to be perpendicular, you have made the components mutually exclusive: if a vector is horizontal, you know it’s definitely not vertical. The x- and y- directions can be treated as two independent problems. The mathematical term for expressing that the axes are independent is “orthogonal”. In quantum mechanics, there are an infinite number of possible choices for a basis. For the measurement bases used here, we choose states with two properties:[5]

  1. The states span the possible spin states of the system.

  2. The states are orthogonal, so the two outcomes are distinguishable in that measurement.

A force on a box on a ramp is resolved into components in three coordinate systems, including axes along and perpendicular to the ramp

Figure 5:Rewriting quantum states in terms of a different basis is similar to decomposing a classical vector into a different choice of coordinate system.

Let us check these conditions for the z-basis, which consists of states ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle:

  1. Because the Stern–Gerlach experiment shows that an electron is either spin up or spin down, the most general state of the electron would be a superposition of up and down:

    ∣electron⟩=α∣0⟩+β∣1⟩.\lvert \text{electron} \rangle = \alpha \lvert 0 \rangle + \beta \lvert 1 \rangle.

    A linear combination of ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle completely describes the electron’s state.

  2. If you measure the spin as ∣0⟩\lvert 0 \rangle, it is definitely not ∣1⟩\lvert 1 \rangle; therefore, ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle are orthogonal.

The same argument can be made for the x-basis or any other angle of the SGA (Fig. Figure 5).

4.3 Geometric Representation of a Basis

In this geometric representation of the z-basis and x-basis, the orthogonal states are drawn perpendicular to one another. If the electron is in a particular state ∣0⟩\lvert 0 \rangle in the z-basis, the state vector can be decomposed into 1/2∣+⟩+1/2∣−⟩1/\sqrt {2}\lvert + \rangle + 1/\sqrt {2}\lvert - \rangle in the x-basis. Physically turning the SGA from vertical to horizontal corresponds to changing the measurement from the z to the x-basis. Since ∣0⟩=1/2∣+⟩+1/2∣−⟩\lvert 0 \rangle = 1/\sqrt {2}\lvert + \rangle + 1/\sqrt {2}\lvert - \rangle, the same spin-up state has 50/50 outcome probabilities when measured with the horizontal apparatus. Rotating the apparatus changes the measurement basis, not the electron’s state before measurement.

Question 3 Use Fig. Figure 6 and trigonometry to show that ∣1⟩=1/2∣+⟩−1/2∣−⟩\lvert 1 \rangle = 1/\sqrt {2}\lvert + \rangle - 1/\sqrt {2}\lvert -\rangle.

Red electron-state arrow points along the vertical zero-state axis; dashed plus and minus axes lie diagonally at 45 degrees

Figure 6:Geometric representation of the z-basis and x-basis. The state of a spin up electron is shown.

Often, there is hidden information about the state that cannot be measured unless we change to a different basis. In the x-basis, there is no measurable difference between ∣0⟩\lvert 0 \rangle and ∣1⟩\lvert 1 \rangle. Both the ∣0⟩\lvert 0 \rangle qubit and the ∣1⟩\lvert 1 \rangle qubit would have measurement results of 50% left and 50% right in the x-basis. In the z-basis, ∣0⟩\lvert 0 \rangle would have 100% probability of being measured up in the Stern–Gerlach and 0% probability of being measured down, while ∣1⟩\lvert 1 \rangle would have 0% probability of being measured up and 100% probability of being measured down.

4.4 Effect of Measurement

You learned that measuring a qubit collapses its superposition state into one of two possibilities. A coin toss can illustrate uncertainty about the result, but the coin is not a quantum superposition. A qubit can be in a superposition before measurement and yields one definite result when measured. The photon is in a superposition state after passing through a beam splitter, but once it reaches the detectors, we know for sure whether it was reflected or transmitted. To appreciate the truly strange nature of quantum measurement, let’s see what happens when electrons are sent through multiple Stern–Gerlach devices in a row.

Question 4 Open the PhET Stern–Gerlach simulator[6] and send electrons with randomly oriented spins through a vertical SGA as in Fig. Figure 7. What is the spin of the electrons that pass through the hole?

Vertical Stern–Gerlach device has an open upper spin port and a blocked lower spin port

Figure 7:The z-axis SGA lets through spin up electrons but blocks spin down electrons.

Question 5 Add a second SGA, oriented horizontally as in Fig. Figure 8. What is the spin of the electrons before entering the second SGA?

A vertical spin analyzer selecting the upper output is followed by a horizontal spin analyzer

Figure 8:The z and x-axis SGA.

Question 6 What is the spin of the electrons after passing through the second SGA?

Question 7 What is the z-spin of the electron coming out of the second SGA? Design an experiment to confirm this in the simulation.

Given that only spin up electrons passed through the first SGA, one would expect that the electron is still spin up after the second SGA, no matter what is measured in x. However, if you measure the z-spin with a third SGA as in Fig. Figure 9, it has a 50% chance of being up or down!

The first SGA selects for + *z* spin and the second SGA selects for − *x*. The third SGA shows that by measuring the − *x* spin in the *z*-basis, the electron is in a superposition of + *z* and − *z*

Figure 9:The first SGA selects for + z spin and the second SGA selects for − x. The third SGA shows that by measuring the − x spin in the z-basis, the electron is in a superposition of + z and − z.

By measuring the electron, we fundamentally changed its state. Measuring the x-spin of the qubit puts it into a superposition of up and down, even when it started as up to begin with. When you measure the length of an object with a ruler, you don’t expect the object’s length to change after you measure it!

Quantum measurement collapse is used in many quantum applications such as cryptography, where one could detect if a message has been intercepted. This will be discussed in further detail in Chap. 5. Quantum Cryptography. An arbitrary unknown qubit state also cannot be copied perfectly while retaining the original. This is the no-cloning theorem: no single quantum operation can duplicate every possible input state. Measurement cannot evade the limit, because it reveals only one outcome and generally changes the state. Classical information such as text can still be copied; the theorem concerns unknown quantum states, not ordinary files stored on a quantum computer. However, for certain applications, the information in superposition states allows information processing beyond what is possible in a classical computer. This will be explored more in Chap. 9. Quantum Algorithms.

4.5 Big Ideas

  1. An electron has an intrinsic property called spin. A measurement of its spin along a chosen axis has two possible outcomes, often called spin-up and spin-down.

  2. The measurement basis is important when interpreting results from experiments on quantum states. Two common bases are the z-basis (|0〉 and |1〉) and the x-basis (|+〉 and |−〉).

  3. Stern–Gerlach apparatuses can prepare and measure electron-spin states in different bases. The electron can be used as a qubit, and the SGA as a way to operate on this qubit. Together, they are a simple model of a quantum computer.

4.6 Activities

4.7 Check Your Understanding

  1. The Stern–Gerlach apparatus is rotated by 90° so that the magnetic field is in the x-direction as shown in Fig. Figure 10. If electrons from a random source are sent through the apparatus, what pattern would be formed on the screen?

    Four candidate screen patterns: two spots separated horizontally, a horizontal band, one central spot, or two spots separated vertically

    Figure 10:Stern–Gerlach apparatus.

  2. Would ∣0⟩\lvert 0 \rangle and ∣+⟩\lvert + \rangle together satisfy the criteria for a valid basis?

  3. An electron is in a superposition state shown in the geometric representation in Fig. Figure 11.

    Red electron-state arrow lies between the vertical zero-state axis and diagonal plus-state axis, at an angle of pi over six from vertical

    Figure 11:Superposition state of the electron.

    • (a) What is the state of the electron in the z-basis? That is, find α and β in ∣electron⟩=α∣0⟩+β∣1⟩\lvert \text{electron} \rangle = \alpha \lvert 0 \rangle + \beta \lvert 1 \rangle

    • (b) What is the probability of measuring spin up?

    • (c) What is the state of the electron in the x-basis? i.e., find α and β in ∣electron⟩=α∣+⟩+β∣−⟩\lvert \text{electron} \rangle = \alpha \lvert + \rangle + \beta \lvert - \rangle.

    • (d) What is the probability of measuring the spin in the ∣−⟩\lvert - \rangle direction?

  4. To measure the difference between an electron in a spin state 12∣0⟩+12∣1⟩\frac {1}{\sqrt {2}}\lvert 0\rangle + \frac {1}{\sqrt {2}}\lvert 1\rangle and one in 12∣0⟩−12∣1⟩\frac {1}{\sqrt {2}}\lvert 0\rangle - \frac {1}{\sqrt {2}}\lvert 1\rangle, one could use:

    (I)A horizontal SGA.(II)A vertical SGA.(III)A 45∘ diagonal SGA.\begin{array}{rcl} \text{(I)} & &\text{A horizontal SGA.}\\ \text{(II)} & &\text{A vertical SGA.}\\ \text{(III)} & &\text{A}\ 45^\circ\ \text{diagonal SGA.} \end{array}
    • (a) I only

    • (b) II only

    • (c) I or III

    • (d) II or III

    • (e) I, II, or III

  5. An electron with random spin is sent through two vertical SGAs as shown in Fig. Figure 12. What would be the output of the second SGA?

    Random-spin beam passes through a vertical spin analyzer with the minus-z output blocked, then a second vertical analyzer with both outputs open

    Figure 12:SGA setup for Problem 5.

  6. An electron with random spin is sent through two vertical SGAs, where the second SGA is rotated upside down, or 180°.

    • (a) If the second + z port is blocked as in Fig. Figure 13, what would be the output of the second SGA?

      Random-spin beam passes through a vertical analyzer selecting plus-z, then an inverted vertical analyzer whose plus-z output is blocked

      Figure 13:SGA setup for Problem 6a.

    • (b) If both ports on the second SGA are open as in Fig. Figure 14, what would you see at the output?

      Random-spin beam passes through a vertical analyzer selecting plus-z, then an inverted vertical analyzer with both outputs open

      Figure 14:SGA setup for Problem 6b.

  7. An electron with random spin is sent through a horizontal SGA followed by a vertical SGA as in Fig. Figure 15. What would be the output of the second SGA?

    Random-spin beam passes through a horizontal analyzer selecting plus-x, then a vertical analyzer with both outputs open

    Figure 15:SGA setup for Problem 7.

  8. An electron with random spin is sent through three SGAs as shown in Fig. Figure 16. What would be the output of the third SGA?

    Random-spin beam passes through a horizontal analyzer selecting plus-x, then another horizontal analyzer selecting minus-x, then a vertical analyzer

    Figure 16:SGA setup for Problem 8.

  9. An electron with random spin is sent through three SGAs as shown in Fig. Figure 17. What would be the output of the third SGA?

    Random-spin beam passes through a vertical analyzer selecting minus-z, then a horizontal analyzer blocking the plus-x output, then a vertical analyzer

    Figure 17:SGA setup for Problem 9.

  10. An electron with random spin is sent through four SGAs as shown in Fig. Figure 18. What would be the output of the fourth SGA?

    Random-spin beam passes through vertical, horizontal, inverted vertical, and vertical analyzers; selected outputs are blocked between stages

    Figure 18:SGA setup for Problem 10.

Footnotes