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.

10. Worksheets

10.1 Correlation in Entangled States Lab

Objectives:

Questions Alice and Bob each measure one of two qubits with a Stern-Gerlach apparatus. Start with both SGAs along the z-axis (Fig. Figure 1).

QuVis entanglement simulator with a particle-pair source between Alice's and Bob's vertically aligned Stern–Gerlach apparatuses; z orientation selected

Figure 1:Figure reproduced from the QuVis website, licensed under Creative Commons CC-BY-NC-SA.

  1. Try sending pairs of particles in a product state |↑~A~⟩|↓~B~⟩. What do Alice and Bob measure individually?

  2. Try sending pairs of particles in an entangled state: 12(∣↑A⟩∣↓B⟩−∣↓A⟩∣↑B⟩)\frac {1}{\sqrt {2}}\left (|{\uparrow _A}\rangle |{\downarrow _B}\rangle -|{\downarrow _A}\rangle |{\uparrow _B}\rangle \right ). What do Alice and Bob measure individually?

  3. If Alice measures her spin, would you be able to predict Bob’s result:

    • (a) In the product state?

    • (b) In the entangled state?

Now rotate both SGAs along the x-axis (Fig. Figure 2).

QuVis entanglement simulator with Alice's and Bob's Stern–Gerlach apparatuses rotated horizontally; x orientation selected

Figure 2:Figure reproduced from the QuVis website, licensed under Creative Commons CC-BY-NC-SA.

  1. Try sending pairs of particles in a product state |↑~A~⟩|↓~B~⟩. What do Alice and Bob measure individually?

  2. Try sending pairs of particles in an entangled state 12(∣↑A⟩∣↓B⟩−∣↓A⟩∣↑B⟩)\frac {1}{\sqrt {2}}\left (|{\uparrow _A}\rangle |{\downarrow _B}\rangle -|{\downarrow _A}\rangle |{\uparrow _B}\rangle \right ). What do Alice and Bob measure individually?

  3. If Alice measures her spin, would you be able to predict Bob’s result:

    • (a) In the product state?

    • (b) In the entangled state?

  4. Convert the product state |↑~A~⟩|↓~B~⟩ into the x-basis and use it to explain the observations in the x-basis. Recall that ∣↑⟩=12(∣+⟩+∣−⟩)|{\uparrow }\rangle =\frac {1}{\sqrt {2}}\left (|{+}\rangle +|{-}\rangle \right ) and ∣↓⟩=12(∣+⟩−∣−⟩)|{\downarrow }\rangle =\frac {1}{\sqrt {2}}\left (|{+}\rangle -|{-}\rangle \right ).

  5. Convert the entangled state 12(∣↑A⟩∣↓B⟩−∣↓A⟩∣↑B⟩)\frac {1}{\sqrt {2}}\left (|{\uparrow _A}\rangle |{\downarrow _B}\rangle -|{\downarrow _A}\rangle |{\uparrow _B}\rangle \right ) into the x-basis and use it to explain the measurements in the x-basis.

  6. Suppose that there are two possible sources of particles. Source #1 randomly emits two particles in either the state |↑~A~⟩|↓~B~⟩ or |↓~A~⟩|↑~B~⟩ with equal probability. Source #2 emits two particles in the entangled state 12(∣↑A⟩∣↓B⟩−∣↓A⟩∣↑B⟩)\frac {1}{\sqrt {2}}\left (|{\uparrow _A}\rangle |{\downarrow _B}\rangle -|{\downarrow _A}\rangle |{\uparrow _B}\rangle \right ). How can Alice and Bob tell whether the source is #1 or #2?

10.2 Polarizer Demo

For students who have learned about polarization, the creation of superposition states can be demonstrated using three polarizing filters. When unpolarized light is sent through a vertical filter, only vertically polarized light is able to pass through. Sending vertically polarized light through a horizontal filter results in no light passing through, since the vertical and horizontal polarizations are mutually exclusive. Surprisingly, adding a diagonal filter in between recovers the light! The diagonal polarizer introduced a horizontally polarized component, similar to how passing a spin-up electron through a horizontal SGA created a horizontal superposition.

Question Relate the behavior of the polarizers to what you saw in the SGAs. Hint: think of the top two polarizers in Fig. Figure 3 as the z-basis, and diagonal polarizers as the x-basis.

Unpolarized light is sent through a series of polarizing filters

Figure 3:Unpolarized light is sent through a series of polarizing filters.

10.3 Quantum Tic-Tac-Toe

Quantum Tic-Tac-Toe was developed by Allan Goff in 2004 as a metaphor for superposition, entanglement, and measurement. It has been used to teach quantum mechanics to undergraduate students.[2] The game uses classical choices and markers; its rules illustrate ideas but do not reproduce quantum probabilities or Bell correlations.

Quantum Tic-Tac-Toe resembles the classical Tic-Tac-Toe game in its setup and objective of completing three in a row. However, the game uses characteristics of quantum systems, so instead of using one marker X or O, the players use pairs of Xs and Os, which are traditionally called “spooky,” after Einstein’s reference to entanglement as “spooky action at a distance”.[3] Using indices for each marker’s move is important when determining the winner of the game. Additionally, we use a color code for each player and connect the spooky markers to help students better visualize the game process. We also number the squares for future reference.

10.3.1 The Rules

  1. The X player goes first. We note that keeping indices helps to track the game. The markers can be placed in any two of the spaces on the game board (Fig. Figure 4).

    The Quantum Tic-Tac-Toe layout with numbered squares (left): one player’s move with spooky markers *x*~1~ (right)

    Figure 4:The Quantum Tic-Tac-Toe layout with numbered squares (left): one player’s move with spooky markers x~1~ (right).

  2. The O player goes next. The markers can be placed in any two squares, even ones that are already occupied by other X or O markers. Notice in Fig. Figure 5 that the index for the O player also starts with 1, representing its first move placing markers in squares 1 and 6.

    Example of the second player’s move

    Figure 5:Example of the second player’s move.

  3. Player X goes again and can place their spooky markers at any two squares, even ones occupied by other Xs or Os. The game goes on until the players create a “cyclic loop” as seen in Fig. Figure 6.

    The cyclic loop is created by the player X. Using lines between the spooky markers helps in identifying the loop

    Figure 6:The cyclic loop is created by the player X. Using lines between the spooky markers helps in identifying the loop.

  4. Collapsing the quantum state. When a loop is created, the players have to collapse their state. There are three options for who makes the decision on how the markers will be collapsed. The fair choice would be by the player who did not create the cycle (in this case, player O). When the markers are forced to collapse, only one of the two squares for each move can be chosen, so player O can choose either square 4 or 6. Depending on their choice, the outcome would be different (Fig. Figure 7). Once the states are collapsed, the “spooky markers” change into classical markers and they fully occupy the state of one particular square.

    The two collapse outcomes due to player O’s decision

    Figure 7:The two collapse outcomes due to player O’s decision.

  5. The next player can place their spooky markers in any two squares except those occupied by collapsed markers. The game continues until another cycle is created and the players collapse the markers.

  6. Winning the game. In some cases both players will create three in a row after collapsing their spooky markers. In this case, the player with the smallest sum of indexes wins. For example, in Fig. Figure 8 player X wins because they have the smaller sum.

    Player X wins, because the sum of their indexes is 1 + 2 + 3 = 6. Player O got three in a row, but the sum of their indexes is 2 + 1 + 4 = 7

    Figure 8:Player X wins, because the sum of their indexes is 1 + 2 + 3 = 6. Player O got three in a row, but the sum of their indexes is 2 + 1 + 4 = 7.

Some Other Rules Can Be Added or Modified One of the requirements could be that players cannot place both markers in the same square like the one shown in Fig. Figure 9. Another way to make the collapse more quantum (or more random) is using a coin flip to decide which player chooses the collapse.

A player cannot put both markers in the same square

Figure 9:A player cannot put both markers in the same square.

Other modifications may include assigning different point values for three in a row, for example, the winner with the lowest sum of the indexes gets 1 point, while the other player gets 1/2 point.

One of the main challenges of playing the game is to observe when a cycle has been created so the state of the spooky markers can be collapsed at the right time. A computer-simulated game will automatically keep track of this and will force students to collapse their markers, such as this game simulator.[4]

We found that using color codes and connecting lines helps visually track loops. Another way is to create a model of the game where students can see the connections and collapse the states using physical pieces. It would be interesting to see students’ responses as to which medium helps them understand the game principle better.

10.3.2 Connection to Quantum Physics

How are the game rules and principles connected to the real applications of quantum mechanics? There are three major themes that can be drawn from the game: superposition, the effect of measurement, and entanglement.

Superposition In classical physics all objects have defined states. However, quantum systems can exist in a superposition of several classical states at the same time. The example could be an electron with a spin that is in a superposition of up and down, or a photon in a superposition of vertical and horizontal polarization. QTTT spooky markers exist in two separate locations on the game board, representing their state as a superposition state of two classical TTT markers.

Measurement A measurement yields an outcome with a probability determined by the quantum state and measurement basis. In QTTT, a loop triggers a marker collapse and a player chooses the outcome. Real quantum outcomes cannot generally be chosen by the experimenter. The forced collapse when a loop forms is also a game rule without a direct physical counterpart.

Entanglement An entangled pure state cannot be factored into states for its individual parts. QTTT markers linked in a loop provide a visual analogy for joint outcomes. Their predetermined collapse choices are classical game mechanics, so the loop itself is not evidence of quantum entanglement.

10.4 Schrödinger’s Worm Using Five Qubits

Objectives Design, build, and test quantum circuits that model systems in superposition and entanglement.

Setup Open IBM Quantum Composer[5] and create a circuit with five qubits initialized to ∣0⟩|0\rangle. Figures Figure 10 and Figure 11 show an older interface; use the current Composer controls for the same operations.

Older IBM Circuit Composer screen with five empty qubit wires q[0] through q[4], a gate palette, and a Run button

Figure 10:A new experiment on the IBM Q Circuit Composer. Reprint courtesy of International Business Machines Corporation, ⒸInternational Business Machines Corporation.

Drag gates onto the appropriate qubit wires. Add measurement operations if you want sampled bit-string outcomes. Inspect the statevector visualization or run the circuit to compare ideal predictions with measured results (Fig. Figure 11).

Older IBM run dialog with a simulator backend selector, a 1024-shot setting, and a Run button

Figure 11:Options for running the IBM Q experiment. Reprint courtesy of International Business Machines Corporation, ⒸInternational Business Machines Corporation.

When sampling outcomes, choose a simulation or available hardware backend and a shot count supported by the interface. More shots reduce sampling uncertainty, though device noise can still affect hardware results. Composer’s controls and access requirements may change; consult its current documentation.[5]

Part I: Superposition The worm is alive when all five squares are black and dead when only four are black. Use a 0 to represent a white square and 1 to represent a black square (Fig. Figure 12).

  1. What is the classical state of the live 5-bit worm?

  2. What is the classical state of the dead 5-bit worm?

  3. Use IBM Q to create a worm in a superposition state of alive and dead. Let q[0] correspond to the bit on the far right.

  4. Run the simulation and interpret the histogram.

  5. How can you modify the circuit so that the worm is first put in a superposition state and then brought to life?

  6. How can you modify the circuit so that the worm in a superposition state becomes definitely dead?

Five-square worm: alive state has five black squares; dead state has four black squares and a white square on the right

Figure 12:Dead or alive worms.

Part II: Entanglement The worm is next to a hungry bird, such that the worm is either alive or chomped to pieces (Fig. Figure 13).

  1. What is the classical state of the very dead worm?

  2. Create a circuit that produces a worm in a superposition state of alive and very dead. (Hint: Two of the qubits are entangled.)

  3. Run the simulation and interpret the histogram.

  4. How can you modify the circuit so that the worm in a superposition state becomes either definitely dead or definitely alive?

Five-square worm: alive state has five black squares; very dead state has three black squares and two white squares on the right

Figure 13:Very dead or alive worms.

Further Resources

10.5 Superposition vs. Mixed States Lab

Objectives

Questions

  1. We send 100 electrons of unknown spin into a Stern-Gerlach apparatus. We measure that 50 are spin up and 50 are spin down. We can conclude that:

    • (a) 100 electrons were in a 50/50 superposition state of up and down (superposition state).

    • (b) The electrons were a classical mixture of 50 electrons with spin up and 50 electrons with spin down (mixed state).

    • (c) Not enough information

  2. Use the simulator (Fig. Figure 14) to compare the measurement outcomes of the mixed particles vs. the superposition particles. What are the similarities and differences?

    QuVis simulator showing a Stern–Gerlach apparatus, x and z orientation controls, and inputs for a 50/50 mixture or a coherent superposition

    Figure 14:Figure reproduced from the QuVis website, licensed under Creative Commons CC-BY-NC-SA.

  3. By making a basis change with ∣0⟩=12∣+⟩+12∣−⟩|0\rangle =\frac {1}{\sqrt {2}}|{+}\rangle +\frac {1}{\sqrt {2}}|{-}\rangle and ∣1⟩=12∣+⟩−12∣−⟩|1\rangle =\frac {1}{\sqrt {2}}|{+}\rangle -\frac {1}{\sqrt {2}}|{-}\rangle, can you explain the similarities and differences mathematically?

  4. Which of the two inputs labeled “Superposition or mixture?” and “Superposition or mixture??” is a random mixture and which is a superposition?

  5. The mixture consists of a fraction A of spin up particles and a fraction B of spin down particles. Find these fractions, A and B.

  6. The superposition state can be written as α|0⟩ + β|1⟩. Find the amplitudes α and β assuming they are real and positive.

  7. Use a basis change to show that the amplitudes α and β give the correct probabilities in both the x- and z-basis.

10.6 Measurement Basis Lab

Objectives

Angle of SGA (θ~SGA~)Probability of going throughProbability of being blocked
0°________
15°________
30°________
45°________
60°________
75°________
90°________
105°________
120°________
135°________
150°________
165°________
180°________

Questions

  1. Send spin up electrons through a single SGA and record the measurement probabilities for different SGA angles (see above table). Use the angle between the prepared spin direction and the analyzer axis. Compare the data with P(up along analyzer)=cos⁡2(θ/2)P(\text{up along analyzer})=\cos^2(\theta/2).

  2. Generate a scatter plot of the data.

  3. What function describes the shape of the graph?

  4. Write the state of the spin up electron as a superposition for an arbitrary SGA angle (θ~SGA~). In other words, find α and β in |electron⟩ = α|goes through⟩ + β|blocked⟩. The diagram below may help, but note that θ ≠ θ~SGA~.

    Diagram relating Stern-Gerlach angle to electron superposition amplitudes
  5. Do the theoretical probabilities match the simulated data?

  6. What would your scatter plot look like if you sent electrons through with the random xz spin option?

  7. What is the theoretical probability of spin down electrons passing through an SGA angled at 45°?

  8. What is the theoretical probability of spin + x electrons passing through an SGA angled at 45°?

10.7 One-Time Pad

10.7.1 One-Time Pad: Alice

Before parting ways, you and Bob privately share a truly random key with one bit per message bit. Use a fair coin (heads = 0, tails = 1) to generate it. Keep the key secret and use it for this message only.

10.7.2 One-Time Pad: Bob

Before parting ways, you and Alice privately share a truly random key with one bit per message bit. Use a fair coin (heads = 0, tails = 1) to generate it. Keep the key secret and use it for this message only.

10.8 BB84 Quantum Key Distribution

This card activity models an idealized intercept-and-resend attack. A mismatch in a sample of the sifted bits can indicate interference or noise; matching a small sample does not prove that no one listened. A real BB84 protocol also needs an authenticated classical channel, error estimation, error correction, and privacy amplification. Alice and Bob should reveal and discard a sample of sifted bits for their comparison rather than exposing the entire key. See IBM Quantum Learning’s BB84 lesson for the full protocol.

10.8.1 BB84 Quantum Key Distribution: Alice

10.8.2 BB84 Quantum Key Distribution: Bob

10.8.3 BB84 Quantum Key Distribution: Eve

Footnotes
  1. Hoehn R, et al. (2014). “Using Quantum Games to teach quantum mechanics, Part 1.” Journal of Chemical Education 91 (3), 417–422. Retrieved from Hoehn et al. (2014).

  2. Einstein, Podolsky, and Rosen (1935) “Can quantum-mechanical description of physical reality be considered complete?” Physical Review, 47: 777–780. Retrieved from Einstein et al. (1935).

References
  1. Hoehn, R. D., Mack, N., & Kais, S. (2014). Using Quantum Games To Teach Quantum Mechanics, Part 1. Journal of Chemical Education, 91(3), 417–422. 10.1021/ed400385k
  2. Einstein, A., Podolsky, B., & Rosen, N. (1935). Can Quantum-Mechanical Description of Physical Reality Be Considered Complete? Physical Review, 47(10), 777–780. 10.1103/physrev.47.777