Skip to main content
IBM Quantum Platform

The nature of quantum states: hidden variables versus Bell's inequality

For this Qiskit in Classrooms module, students must have a working Python environment with the following packages installed:

  • qiskit v1.3 or newer
  • qiskit-ibm-runtime v0.29.0 or newer
  • qiskit-aer v15.0 or newer
  • qiskit.visualization

To set up and install the packages above, see the Install Qiskit guide. In order to run jobs on real quantum computers, students will need to set up an account with IBM Quantum® by following the steps in the Set up your IBM Cloud account guide.


Click the image below to watch the module walkthrough by Dr. Katie McCormick.

(opens in a new tab)
YT thumbnail
Bell’s Inequality and the Power of Quantum Entanglement

The problem

In many calculations throughout quantum mechanics, you start with a known state of a system, and that state is typically known through a measurement. Today we want to answer the question, “What can you say about a particle's state prior to any measurement?” An obvious corollary is, “How can we know, if we're not allowed to measure?”

This question dates back to the early days of quantum mechanics. Pioneers in the field fell into factions with Einstein and many others saying that a particle is simply in some unknown state prior to measurement. Others, notably Max Born, and later Niels Bohr made a more radical claim, saying the state of a particle was truly undetermined by nature prior to measurement, not merely unknown to humans. Measurement then probabilistically collapses the particle into a definite state. Einstein, dissatisfied with this explanation, famously quipped at this, "Gott würfelt nicht," which roughly translates into "God does not play dice."

For decades after this disagreement emerged, many thought it might never be answered, or that it was a matter of perspective. Then, in 1964, John Bell, a physicist from Northern Ireland, wrote a paper in which he explored the statistics of certain experiments that could answer this question definitively. He showed that in a particular test, one arrives at one set of statistics from defined (but unknown) quantum states, and a different set of statistics from quantum states undetermined by nature.

At that time of Bell's paper, experimental tests of the statistics involved were inaccessible to all but researchers at the very forefront of physics. But today, IBM Quantum has made it possible for students all over the world to use real quantum devices, remotely over the cloud, and for free, to explore the nature of quantum states. This is what you will do today.


Setup of the thought experiment: entanglement of spin

There are processes in which a particle with no spin decays into two particles that each have spin. Since spin is a kind of angular momentum, the law of conservation of angular momentum would suggest that the two outcoming particles must have spins exactly anti-aligned. Indeed this is experimentally observed.

An example: a neutral pi meson sometimes decays into a positron and an electron: π0e++e\pi^0\rightarrow e^+ + e^- Don’t worry if you don’t know what those particles are, and don't worry if you know them so well that you know this decay type is relatively unlikely. Just know that if one of the outcoming particles is spin up, the other must be spin down, and vice versa. Of course, there is nothing special about "up" and "down"; the same antialignment is observed if measurements are made along what we often call xx or yy. This decay is a compelling context for us to consider, because we can sidestep questions about what measurements took place in the past; the positron and electron didn't even exist until the moment of decay.

We can let π0\pi^0 mesons decay and watch the deflection of the outcoming particles under the influence of an inhomogeneous magnetic field. An inhomogeneous field used to deflect spins is often called a Stern-Gerlach device, after the researchers who first used it to (accidentally) gather evidence of the existence of quantum mechanical spin. Note that the story here is more complicated than the original experiment since the electron and positron are also charged (unlike the silver atoms in the Stern Gerlach experiment). But we know how charged particles move in a magnetic field, and we can subtract out that effect. In what follows, we will assume the deflections used in our calculations are due to the spin of the particles and not the charge. Consequently, for our purposes it doesn't matter which observer gets the positron and which gets the electron. The experimental setup is something like this:

A diagram of the setup of an EPR experiment. A source sends out one particle to the left and one to the right. They each pass through a Stern-Gerlach device, an inhomogeneous magnetic field and measuring screen.

As the meson decays, an electron is kicked out in one direction, and a positron in the other. Each of these two particles will travel through an inhomogeneous magnetic field, causing it to be deflected either in the direction of the magnetic field, or opposite the magnetic field.

If we have a source of many mesons, we can collect statistics on this. If an observer on the left and one on the right (call them Lucas and Rihanna, respectively) always measure along the same axis, these statistics will not be very interesting: every time one measures up, the other measures down; every time one measures into the page, the other will measure out of the page, and so on. However, if the players are free to measure the spin along any direction they like, we may find something more interesting.

The experiment described above, in which particles fly off with spin angular momentum that is measured by two observers was initially proposed by Einstein, Podolsky, and Rosen (EPR) in this paper, and this is sometimes referred to as an "EPR experiment".


Our options

Let us restate the two historical viewpoints, for clarity:

Option 1 (Einstein): The two spins (the electron and positron) are determined, in the sense that the outcome of any measurement along any axis is pre-determined by nature, even if we don't know what it is. One might think of this as the spins having some real, well-defined orientation in space, which is not known to us, but which exists. Or one might think of this as a set of information or instructions that determine outcomes of measurements along xx, yy, zz, or anything in between. Measuring the spin of the positron (say along z) forces it to orient and align in the z or -z direction. This has no causal influence on the electron spin, although we know the electron spin started out opposite the positron spin, so if the positron spin is measured to be along +z, the electron spin is measured along -z. Other than the initial condition of instructions that conserve angular momentum (the spins being anti-aligned), there is no connection between the two spins. This option is sometimes called "hidden variables", as in: the projections along different axes are determined, but are hidden from us.

Option 2 (Born): The spins are both undetermined in their initial states… not merely unknown, but ill-defined physically, with no definite orientation or instructions on experimental outcomes, until they are measured. Measuring the positron spin “collapses” the space of all possibilities down to a single determined state, either along the +z or -z axes. This measurement of the positron forces the electron spin to also collapse into a well-defined projection along z, exactly opposite the positron’s. This effect occurs spread out across the space between the positron and electron. This has been called "spooky action at a distance”, but one might less-dramatically call it "non-local physics".

Check-in question:

It would be great to distinguish between the Einstein and Born options experimentally. What are some experiments that would yield the same results regardless of which option is true? Can you think of an experiment that would yield different results for the two options? Note It would be very impressive if you could come up with an experiment that would yield different results for Einstein's and Born's options; it took humans decades to come up with one.

Answer:

Sticking with the experiment described so far (that is, no net spin with the positron and electron anti-aligned), measurement of both spins along ±x\pm x, ±y\pm y, or ±z\pm z would always yield opposite signs due to conservation of angular momentum, independent of which option is correct. Measuring one particle's spin (say, the electron) along one direction (say, +z+z) means the spin of the other particle, the positron, would be measured along z-z. If instead you measure the spin of the positron along the xx direction, it will be equally likely to come out +x+x or x-x. This could be because that's what the hidden instructions say (Einstein's option 1) or because the probability distribution of the positron's spin updates after the measurement of the electron spin, and the new probability distribution is consistent with a 50-50 split between ±x\pm x (Born's option 2). These points are explained in more detail below.

The answer is only slightly different if you consider a decay of a particle with spin-1, such that the two emerging particles (like the positron and electron) must have their spins aligned, rather than anti-aligned. If one is measured along +y+y, a measurement of the other particle along the yy axis must also yield +y+y, and so on. As before, this could result from either option.

The rest of this lesson is devoted to an experiment that can distinguish between Einstein and Born's options, and so we won't go into much detail here. However, part of the trick is measuring the two particles along different directions (like xx and zz, or even some direction between the traditional Cartesian axes). The rest comes from carefully considering the precise probability of obtaining different outcomes given the predictions of quantum mechanics and those of classical information as in hidden variables.

In either option, if the two observers, Lucas and Rihanna, measure along the same axis, we would expect them to obtain anti-aligned spins, regardless of which option is true. To see why, consider the diagrams below.

Three diagrams. First there is a diagram of two spin vectors oriented in opposite directions, lying on a diagonal between the x and z axes. Next, when a measurement is made along z, one friend obtains a spin along negative z, and the other along positive z. Finally, the situation is shown for measurements along the x axis, in which case one measures a spin along negative x, and the other along positive x.

The figure above shows Einstein's option. The directions of the spins are opposite and determined. If we measure along the zz axis, one will be along +z+z, and one along z-z. We have no reason to assume that the positron would be along +z+z, and the electron along z-z; the image merely shows that the spins will be measured to be in opposite directions. In fact, a given spin need not actually have a component of its spin along the direction eventually measured, in the case of Einstein's option. The weakest statement of Einstein's option is that there is some set of instructions that are stored in the spin that determine what the measurements outcomes will be when measured along any axis. We don't need to picture that these instructions are in the form of a simple vector (see diagram below); we'll return to this, later.

Three diagrams. The first one no longer shows well-defined vector directions, but instead has a list of rules that determine the measurement outcomes. The second and third diagrams are the same as in the previous picture, showing measurements along positive/negative z, and along positive/negative x.

The figure below shows Born's option, in which the directions of the positron and electron spins are smeared out in a distribution of probability and have no definite direction. Don't read too much into the shape of the distribution. Each spin could actually have a non-zero probability of pointing in any direction as long as they are opposite each other; we have simply drawn them as fractions of the circle so we can visually distinguish them for discussion. Note that in the case of Born's option, it is still true that angular momentum must be conserved. So if one wave of probability is "collapsed" such that the spin points along +z+z, the other will point along z-z and be deflected in the opposite direction. The options appear identical.

A diagram showing a blur of possible directions for a spin vector, followed by the same outcomes of measurement as in previous images.

But what happens when observers L and R can measure along any of three axes, with each pair 120 degrees apart, as shown in Figures 4 & 5. Each observer can decide at random along what axis they will measure the spin (a, b, or c). The two do not need to measure along the same axis. When each observer measures, they might find a positive projection on their axis of choice, or they might find a negative projection. For example, Lucas and Rihanna might measure +a and -b or +b and +c. Note that if they happen to choose to measure along the same axis, then they MUST obtain opposite signs in their projections: +a and -a, +b and -b, or +c and -c; they cannot both find, for example +a. In the next section, we will work through how to calculate the probability of Lucas and Rihanna getting the same sign on their measured axes (++ or --) and opposite signs (+-) or (-+).

A diagram showing two initial spin vectors, followed by possible measurements along three lines, a, b, and c, each having a positive and negative direction. Because these axes are not mutually perpendicular, Lucas and Rihanna will not measure spins in opposite directions unless they happen to choose to measure along the same axes.

The two figures above illustrate possible hidden-variables interpretations in this new, three-axis measurement scenario. That is, either the spins are already determined, as vectors, or a set of physical instructions exists somehow embedded in the system such that the outcomes of all possible measurements are pre-determined, even if they are unknowable to experimenters prior to measurement. The alternative is illustrated below. Some probability distribution of outcomes exists, and this distribution can tell us some things about the likelihood of different measurement outcomes, but the outcomes are undetermined by nature prior to measurement.

A blurred out probability distribution is shown once again, now with the three new axes a, b, and c. This comes with different measurement probabilities along the various directions.

We can ask ourselves, “How often should the two players find the same sign of the spin’s projection?” That is, we are not even recording along which axis they chose to measure; we are simply recording whether they found the same sign or a different sign. It is not obvious whether Einstein's and Born's options will yield the same result in this more complicated measurement scheme. But it should be clear from Figures 4 and 5 that it is possiblepossible for there to be a difference. For the case shown in Einstein's option, a measurement of the projection of the e+e+ spin on axis aa will definitely yield +a+a, and the projection of the ee- spin on axis bb will yield b-b (barely). But in Born's option, the possibilities are wide open. It is true that angular momentum is still conserved. But since the two magnetic fields are not oriented in along the same axis, we force the particles into a situation where they must collapse onto different axes (through interactions with the field). In the next section, we will use quantum mechanics to determine what the probabilities should be, given Born's option, that Lucas and Rihanna obtain the same sign on their measured axes (++ or --), and the probabilities that they will obtain opposite signs (+- or -+).


What does Einstein's option (hidden variables) predict?

If Einstein's option is true, then any given pair of e+e+ and ee- will have a set of vector components to their spins. For example, the electron might have components (+a^,b^,+c^)(+\hat{a},-\hat{b}, +\hat{c}), in which case the positron must have components (a^,+b^,c^)(-\hat{a},+\hat{b}, -\hat{c}). We are only specifying here the sign of the projection on each axis, not the magnitude. Imagine we allow a very large number NN of such decays to take place, and we collect measurements to populate the table below.

PopulationParticle 1Particle 2
N1N_1(+a^,+b^,+c^)(+\hat{a},+\hat{b},+\hat{c})(a^,b^,c^)(-\hat{a},-\hat{b},-\hat{c})
N2N_2(+a^,+b^,c^)(+\hat{a},+\hat{b},-\hat{c})(a^,b^,+c^)(-\hat{a},-\hat{b},+\hat{c})
N3N_3(+a^,b^,+c^)(+\hat{a},-\hat{b},+\hat{c})(a^,+b^,c^)(-\hat{a},+\hat{b},-\hat{c})
N4N_4(+a^,b^,c^)(+\hat{a},-\hat{b},-\hat{c})(a^,+b^,+c^)(-\hat{a},+\hat{b},+\hat{c})
N5N_5(a^,+b^,+c^)(-\hat{a},+\hat{b},+\hat{c})(+a^,b^,c^)(+\hat{a},-\hat{b},-\hat{c})
N6N_6(a^,+b^,c^)(-\hat{a},+\hat{b},-\hat{c})(+a^,b^,+c^)(+\hat{a},-\hat{b},+\hat{c})
N7N_7(a^,b^,+c^)(-\hat{a},-\hat{b},+\hat{c})(+a^,+b^,c^)(+\hat{a},+\hat{b},-\hat{c})
N8N_8(a^,b^,c^)(-\hat{a},-\hat{b},-\hat{c})(+a^,+b^,+c^)(+\hat{a},+\hat{b},+\hat{c})

For each case in the table above, there are 9 possible choices for Lucas's and Rihanna's axes: aaaa, abab, acac, baba, bbbb, bcbc, caca, cbcb, and cccc. Reading from this table, the probability of the two observers measuring the same sign for rows 1 and 8 are zero. For rows 2-7, there are 4 ways to obtain the same sign, which we will show only for row 2:

Same signs: acac, bcbc, caca, cbcb Opposite signs: aaaa, abab, baba, bbbb, cccc

So if Einstein's option is the correct interpretation of quantum states, the total probability summed over all possible populations, of Lucas and Rihanna obtaining the same sign of spin projection on their randomly chosen axes would be: Psame=1iNi49(N2+N3+N4+N5+N6+N7)49 P_\text{same}=\frac{1}{\sum_i{N_i}} \frac{4}{9} (N_2+N_3+N_4+N_5+N_6+N_7)\leq \frac{4}{9} Where equality holds only if N1=N8=0N_1=N_8=0.

Check-in question

For row 2 of the chart above, we listed all the possible ways for Lucas and Rihanna to obtain the same sign for their measurements, and all the ways they could obtain different signs. Repeat this for the third row.

Answer:

Same signs: abab, baba, bcbc, cbcb

Opposite signs: aaaa, acac, bbbb, caca, cccc

Check-in question

The table above refers to "populations", meaning that we do not know how many of each type of instructions nature produces, if the hidden-variables treatment is correct. Show that no matter what the distribution of N1N_1 through N8N_8, the probability of obtaining the same sign from measurements is always less than or equal to 4/9.

Answer:

Let us start by assuming a constant number of total measurement trials, such that iNi=Ntot\sum_i{N_i} = N_{tot} is constant. Note that in the special case where N1=N8=0N_1=N_8=0, the expression reduces to

Psame=1N2+N3+N4+N5+N6+N7×49×(N2+N3+N4+N5+N6+N7)=1Ntot×49×Ntot=49 P_{same}=\frac{1}{N_2+N_3+N_4+N_5+N_6+N_7} \times \frac{4}{9} \times (N_2+N_3+N_4+N_5+N_6+N_7) = \frac{1}{N_{tot}} \times \frac{4}{9} \times N_{tot}= \frac{4}{9}

Now suppose that either N10N_1 \neq 0 or N80N_8 \neq 0. Then

Psame=1N1+N2+N3+N4+N5+N6+N7+N8×49×(N2+N3+N4+N5+N6+N7)=49 P_{same}=\frac{1}{N'_1+N'_2+N'_3+N'_4+N'_5+N'_6+N'_7+N'_8} \times \frac{4}{9} \times (N'_2+N'_3+N'_4+N'_5+N'_6+N'_7) = \frac{4}{9}

The sum of all trials, NtotN_tot, is still the same as before. But since N1N'_1 or N8N'_8 has increased from 0, the sum of N2N'_2 through N7N'_7 must be lower than before. In particular, the sum of N2N'_2 through N7N'_7 is less than NtotN_{tot}. Thus

Psame=1Ntot×49×(N2+N3+N4+N5+N6+N7)<49 P_{same}=\frac{1}{N_{tot}} \times \frac{4}{9} \times (N'_2+N'_3+N'_4+N'_5+N'_6+N'_7) < \frac{4}{9}

Combining all possible cases, we have Psame49P_{same} \leq \frac{4}{9}.

Generalization

In the treatment above, we considered measurements along specific axes. Of course, one could make measurements along any axis. Let us call the two spin vectors of two particles a\vec{a} and b\vec{b}. Let λ\lambda be some hidden variable such that a state of the two-particle system corresponds to a well-defined value of lambdalambda. Let ρ(λ)\rho(\lambda) be the probability density in λ\lambda. Finally, we choose the symbols A(a,λ)A(\vec{a},\lambda) and B(b,λ)B(\vec{b},\lambda) to be the pre-determined outcome of a measurement performed on either particle (A or B), given the spin vectors and the hidden variable. Critically, note that AA is independent of b\vec{b} and BB is independent of a\vec{a}. One could now pose any number of questions related to correlations between measurements on A and B. In particular, one could ask about the expectation value given by

E(a,b)dλρ(λ)A(a,λ)B(b,λ)E(\vec{a},\vec{b})\equiv\int{d\lambda \rho(\lambda)A(\vec{a},\lambda)B(\vec{b},\lambda)}

Given some standard assumptions on these values, like A(a,λ)1A(\vec{a},\lambda)\leq 1, B(b,λ)1B(\vec{b},\lambda)\leq 1, and normalization over ρ(λ)\rho(\lambda), one can show that correlations between the two particles obey the relation

E(a,b)E(a,d)+E(c,d)+E(c,b)2,|E(\vec{a},\vec{b})-E(\vec{a},\vec{d})|+|E(\vec{c},\vec{d})+E(\vec{c},\vec{b})|\leq 2,

where a\vec{a} and b\vec{b} are the spin states of your system and c\vec{c} and d\vec{d} are reference spin states (any other possible spin states of the system). This is one of a whole class of inequalities known now as "Bell inequalities". We won't use this general form here. Instead, we will focus on one specific experimental setup, so that we can map that setup onto a quantum circuit.


What does Born's option (non-deterministic quantum mechanics) predict?

Lucas will pick some axis and find the spin of one particle to be in either the positive or negative direction. Whatever he obtains, let us orient our axes such that the zz axis is that direction. Then we can write the initial state after the decay of the meson and before any measurement as ψ=12(+LRL+R)|\psi \rangle =\frac{1}{\sqrt{2}}(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R) Rihanna will measure her particle's spin along some other direction at an angle θ\theta relative to Lucas's. The spin operator along some arbitrary direction n^\hat{n} is given by S^n^=2[cos(θ)sin(θ)eiϕsin(θ)eiϕcos(θ)]\hat{S}_{\hat{n}}=\frac{\hbar}{2}\begin{bmatrix} \cos(\theta) & \sin(\theta) e^{-i\phi} \\ \sin(\theta) e^{i\phi} & -\cos(\theta) \end{bmatrix} The eigenstates of this operator are +n^=cos(θ/2)0+sin(θ/2)eiϕ1n^=sin(θ/2)0cos(θ/2)eiϕ1|+\rangle_{\hat{n}}=\cos(\theta/2)|0\rangle+\sin(\theta/2)e^{i\phi}|1\rangle \\ |-\rangle_{\hat{n}}=\sin(\theta/2)|0\rangle-\cos(\theta/2)e^{i\phi}|1\rangle

Check-in question

Verify that +n^|+\rangle_{\hat{n}} is an eigenstate of the operator S^n^\hat{S}_{\hat{n}} above, and find the eigenvalue.

Answer:
S^n^+n^=2[cos(θ)sin(θ)eiϕsin(θ)eiϕcos(θ)][cos(θ/2)sin(θ/2)eiϕ]\hat{S}_{\hat{n}}|+\rangle_{\hat{n}}=\frac{\hbar}{2}\begin{bmatrix} \cos(\theta) & \sin(\theta) e^{-i\phi} \\ \sin(\theta) e^{i\phi} & -\cos(\theta) \end{bmatrix} \begin{bmatrix} \cos(\theta/2) \\ \sin(\theta/2)e^{i\phi}\end{bmatrix}=2[cos(θ)cos(θ/2)+sin(θ)sin(θ/2)eiϕeiϕcos(θ/2)sin(θ)eiϕcos(θ)sin(θ/2)eiϕ]=\frac{\hbar}{2}\begin{bmatrix} \cos(\theta)\cos(\theta/2) + \sin(\theta)\sin(\theta/2)e^{i\phi} e^{-i\phi} \\ \cos(\theta/2)\sin(\theta) e^{i\phi} -\cos(\theta)\sin(\theta/2)e^{i\phi} \end{bmatrix}

Using cos(θ)=cos2(θ/2)sin2(θ/2)\cos(\theta)=\cos^2(\theta/2)-\sin^2(\theta/2) and sin(θ)=2cos(θ/2)sin(θ/2)\sin(\theta)=2\cos(\theta/2)\sin(\theta/2), we have

=2[(cos(θ)+2sin2(θ/2))cos(θ/2)(2cos2(θ/2)cos2(θ/2)+sin2(θ/2))sin(θ/2)eiϕ]=\frac{\hbar}{2}\begin{bmatrix} \left(\cos(\theta) + 2\sin^2(\theta/2)\right) \cos(\theta/2) \\ \left(2\cos^2(\theta/2) -\cos^2(\theta/2)+\sin^2(\theta/2)\right)\sin(\theta/2)e^{i\phi} \end{bmatrix}=2[(cos2(θ/2)sin2(θ/2)+2sin2(θ/2))cos(θ/2)(2cos2(θ/2)cos2(θ/2)+sin2(θ/2))sin(θ/2)eiϕ]=\frac{\hbar}{2}\begin{bmatrix} \left(\cos^2(\theta/2)-\sin^2(\theta/2) + 2\sin^2(\theta/2)\right) \cos(\theta/2) \\ \left(2\cos^2(\theta/2) -\cos^2(\theta/2)+\sin^2(\theta/2)\right)\sin(\theta/2)e^{i\phi} \end{bmatrix}=2[cos(θ/2)sin(θ/2)eiϕ]=\frac{\hbar}{2}\begin{bmatrix} \cos(\theta/2) \\ \sin(\theta/2)e^{i\phi} \end{bmatrix}

This demonstrates that +n^|+\rangle_{\hat{n}} is an eigenstate and the corresponding eigenvalue is 2\frac{\hbar}{2}.

The probability of Lucas measuring a spin to be in the positive direction along the axis he chose +|+\rangle andand that Rihanna also measures a positive spin along her chosen direction +n^|+\rangle_{\hat{n}} is P++=(L+R,n^+)ψ2P_{++}=\left|\left(_L\langle+|_{R,\hat{n}}\langle+|\right)|\psi\rangle\right|^2 P++=(L+R(cos(θ/2)++sin(θ/2)eiϕ))12(+LRL+R)2P_{++}=\left| \left(_L\langle+|_R\left(\cos(\theta/2)\langle+|+\sin(\theta/2)e^{-i\phi}\langle-|\right)\right) \frac{1}{\sqrt{2}}\left(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R\right) \right|^2 P++=12(L+R(cos(θ/2)++sin(θ/2)eiϕ))(+LR)2P_{++}=\frac{1}{2}\left| \left(_L\langle+|_R\left(\cos(\theta/2)\langle+|+\sin(\theta/2)e^{-i\phi}\langle-|\right)\right) \left(|+\rangle_L|-\rangle_R\right) \right|^2 P++=12(sin(θ/2)eiϕpR)R2P_{++}=\frac{1}{2}\left| \left(\sin(\theta/2)e^{-i\phi}\vphantom{p}_R\langle-|\right) |-\rangle_R \right|^2 P++=12sin2(θ/2)P_{++}=\frac{1}{2}\sin^2(\theta/2)

Check-in question

Do the same for PP_{--}. Verify that it also equals 12sin2(θ).\frac{1}{2}\sin^2(\theta).

Answer:

Key: P=(LR,n^+)ψ2P_{--}=\left|\left(_L\langle-|_{R,\hat{-n}}\langle+|\right)|\psi\rangle\right|^2 P=(LR(sin(θ/2)+cos(θ/2)eiϕ))12(+LRL+R)2P_{--}=\left| \left(_L\langle-|_R\left(\sin(\theta/2)\langle+|-\cos(\theta/2)e^{-i\phi}\langle-|\right)\right) \frac{1}{\sqrt{2}}\left(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R\right) \right|^2 P=12(LR(sin(θ/2)+cos(θ/2)eiϕ))(L+R)2P_{--}=\frac{1}{2}\left| \left(_L\langle-|_R\left(\sin(\theta/2)\langle+|-\cos(\theta/2)e^{-i\phi}\langle-|\right)\right) \left(-|-\rangle_L|+\rangle_R\right) \right|^2 P=12(sin(θ/2)pR+)+R2P_{--}=\frac{1}{2}\left| \left(\sin(\theta/2) \vphantom{p}_R\langle+|\right) |+\rangle_R \right|^2 P=12sin2(θ/2)P_{--}=\frac{1}{2}\sin^2(\theta/2)

Adding these results, we find that the probability of the signs of the two measured axes are the same Psame=sin2(θ/2)P_{\text{same}}=\sin^2(\theta/2).

Check-in question

What could you do to check the math of this result? To be clear, we're not asking you to verify yet that it matches nature, just to make sure nothing went wrong in all the math.

Answer:

(1) Do the same calculation for Pdiff=cos2(θ/2)P_{\text{diff}}=\cos^2(\theta/2) to verify the conservation of probability.

(2) Check a known case. Insert θ=0\theta = 0. Then PsameP_{\text{same}} corresponds to the two observers each measuring their spin along the same axis, which would violate conservation of angular momentum. So you would expect that probability to be zero, and indeed inserting θ=0\theta = 0 yields sin2(0/2)=0\sin^2(0/2) = 0.

(3) Check a different known case. Try θ=π\theta = \pi. What should you obtain. Careful of that 12\frac{1}{2}.

We were specifically sketching the case where axes are at 120deg120\deg relative to each other. Remember, whatever direction (±a\pm a, ±b\pm b, or ±c\pm c) Lucas obtains, we call that zz. Then Rihanna randomly chooses to measure along either ±a\pm a, ±b\pm b, or ±c\pm c. If her choice is the same as Lucas's (up to a sign), then they are both measuring along zz, and the probability of Rihanna also measuring +z+z is zero. This should happen 1/3 of the time, since Rihanna's choice of axis is independent of Lucas's choice. For any other choice, Rihanna will be measuring along an axis either 120deg=2π/3120\deg = 2\pi/3 radians from zz (1/3 of the time) or 240deg=4π/3240\deg = 4\pi/3 radians from zz (1/3 of the time). And of course, along either of those axes, the spin could be measured to be in the positive or negative direction. This gives us a total probability of Lucas and Rihanna obtaining the same sign:

Psame=13(0+sin2(π/3)+sin2(2π/3))=13(0+34+34)=12P_{\text{same}} = \frac{1}{3}\left( 0 + \sin^2(\pi/3) + \sin^2(2\pi/3) \right) = \frac{1}{3}\left( 0 + \frac{3}{4} + \frac{3}{4} \right) = \frac{1}{2}


Wow

We just showed that

(Psame)max, Einstein<(Psame)max, Born.(P_\text{same})_\text{max, Einstein}<(P_\text{same})_\text{max, Born}.

Let's take a step back.

Einstein's and Born's options seemed like they would always yield the same results, since they only differed in their description of what happens prior to measurement. And yet, assuming there were instructions that pre-determined the sign of the spin measurement along certain axes, we obtained a constraint on the probability for the measurements to yield the same sign (Psame)Einstein49(P_{\text{same}})_\text{Einstein}\leq\frac{4}{9}. Then we assumed probability distributions as in quantum mechanics... and obtained a different value for (Psame)Born=12(P_{\text{same}})_\text{Born}=\frac{1}{2}. The prediction from quantum mechanics is higher than that allowed by the hidden variables treatment. So we can actually do an experiment and discover whether quantum mechanical states are determined by nature prior to measurement, or if they are truly in a probabilistic superposition of possible states.

This experiment has been done many times using many different physical systems, often photons. There are many subtle considerations, such as biases in measurement, the timing(simultaneity) of measurements, and many others. Over the decades, concerns about these subtleties have been steadily eroded. Tests are still implemented, as we learn more about reality, but there is now broad agreement that the answer you'll obtain here, using IBM quantum computers, is correct.


Test using real quantum computers!

In keeping with our treatment above, let us define the direction of Lucas's measurement to be +z+z. This was convenient even in the algebraic approach, but it is especially convenient for quantum computation, since what is typically measured is the qubit's projection along zz. We want to make a quantum circuit that gives us the same probability conditions as those above for P++P_{++}. We are free to orient our plane such that ϕ=0\phi=0, and we obtain P++=(L+R(cos(θ/2)++sin(θ/2)))12(+LRL+R)2P_{++}=\left| \left(_L\langle+|_R\left(\cos(\theta/2)\langle+|+\sin(\theta/2)\langle-|\right)\right) \frac{1}{\sqrt{2}}\left(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R\right) \right|^2 We need to know a few things about IBM quantum computers, to guide our discussion. Firstly, qubits start out initialized in the 0=+z|0\rangle = |+\rangle_z state. As mentioned, before, when measurements are made, they are along the zz axis. So the goal is to determine what operators we can insert between the measurement basis states 00\langle 0|\langle 0| and the initial states of the qubits 00|0\rangle |0\rangle to obtain the complicated expression above. For that, we'll need to review some basic gates in quantum computing.

XX gate: Equivalent to a NOT operation. Single-qubit gate. X0=1,X1=0X|0\rangle = |1\rangle,\\X|1\rangle=|0\rangle X=[0110]X=\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}

In Qiskit, creating a circuit with an XX gate looks like this:

from qiskit import QuantumCircuit
 
qc = QuantumCircuit(1)
qc.x(0)
qc.draw("mpl")

Output:

Output of the previous code cell

HH Hadamard gate: Creates a superposition state. Single-qubit gate. H0=12(0+1),H|0\rangle = \frac{1}{2}\left(|0\rangle+|1\rangle\right), H1=12(01)H|1\rangle = \frac{1}{2}\left(|0\rangle-|1\rangle\right) H=12[1111]H=\frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}

A circuit with a Hadamard gate is made as follows:

qc = QuantumCircuit(1)
qc.h(0)
qc.draw("mpl")

Output:

Output of the previous code cell

CNOT Controlled-NOT gate: This gate uses two qubits: a control and a target. Checks the state of a control qubit which is not changed. But if the control qubit is in the state 1|1\rangle, the gate changes the state of the target qubit; if the state of the control qubit is 0|0\rangle no change is made at all. In the notation below, assume the first qubit is the control, and the second is the target. CNOT00=00,CNOT01=01CNOT10=11CNOT11=10CNOT|00\rangle = |00\rangle, \\ CNOT|01\rangle = |01\rangle \\ CNOT|10\rangle = |11\rangle \\ CNOT|11\rangle = |10\rangle

A CNOT gate looks a bit different in a circuit, since it requires two qubits. This is how it is implemented:

qc = QuantumCircuit(2)
qc.cx(0, 1)
qc.draw("mpl")

Output:

Output of the previous code cell

Note that the first qubit listed in qc.cx(0,1) is the control, and the second is the target. Diagrammatically, the target is the one with the "+" sign or cross on it.

Ry(θ)R_y(\theta) Rotation Y gate: Rotates the state about the y-axis. This is a single-qubit gate. Ry(θ)0=cos(θ/2)0+sin(θ/2)1,Ry(θ)0=sin(θ/2)0+cos(θ/2)1R_y(\theta)|0\rangle = \cos(\theta/2)|0\rangle+\sin(\theta/2)|1\rangle,\\R_y(\theta)|0\rangle = -\sin(\theta/2)|0\rangle+\cos(\theta/2)|1\rangle Ry(θ)=[cos(θ/2)sin(θ/2)sin(θ/2)cos(θ/2)]R_y(\theta)=\begin{bmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{bmatrix}

Finally, rotation gates are implemented by specifying the type of gate, the amount of the rotation, and the qubit on which the gate is placed, in that order:

import numpy as np
 
pi = np.pi
 
qc = QuantumCircuit(2)
qc.ry(pi / 2, 0)
qc.draw("mpl")

Output:

Output of the previous code cell

The name of the gate ry specifies the axis about which the rotation occurs. The first argument π/2\pi/2 refers to the amount of the rotation, and the second argument specifies the qubit on which the gate is to be placed.

Check-in question

Using the syntax introduced or refreshed above, make any quantum circuit involving four different types of quantum gates.

Answer:

There are, of course, infinitely many possibilities. Here is one example:

qc=QuantumCircuit(2)

qc.ry(pi/2,0)

qc.cx(1,0)

qc.x(1)

qc.h(0)

qc.cx(0,1)

qc.draw("mpl")


From physical experiment to quantum circuits

From the operations of these gates, we can see, for example, that the kets in the expressions for P++P_{++}: 12(+LRL+R)\frac{1}{\sqrt{2}}\left(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R\right) are likely to involve a Hadamard gate to get the superposition, and a CNOT gate to create the entanglement.

We will now use the H, X, and CNOT gates to turn 0L0R|0\rangle_L|0\rangle_R into 12(+LRL+R)\frac{1}{\sqrt{2}}\left(|+\rangle_L|-\rangle_R-|-\rangle_L|+\rangle_R\right):

12(0L1R1L0R)\frac{1}{\sqrt{2}}\left(|0\rangle_L|1\rangle_R-|1\rangle_L|0\rangle_R\right) 12CNOTLR(0L1R1L1R)\frac{1}{\sqrt{2}}CNOT_{LR}\left(|0\rangle_L|1\rangle_R-|1\rangle_L|1\rangle_R\right) Here CNOTLRCNOT_{LR} means a CNOT gate using L as the control and R as the target. We can now factor out the R part of the state: CNOTLR12(0L1L)1R\text{CNOT}_{LR}\frac{1}{\sqrt{2}}\left(|0\rangle_L-|1\rangle_L\right)|1\rangle_R CNOTLRHL1L1R\text{CNOT}_{LR} H_L|1\rangle_L|1\rangle_R CNOTLRHLXLXR0L0R\text{CNOT}_{LR} H_L X_L X_R|0\rangle_L|0\rangle_R

Now we have written the ket entirely as quantum gates operating on the default starting state of the qubits.

Now we can use the Ry(θ)R_y(\theta) acting on pL0R1\vphantom{p}_L\langle 0|_R\langle 1| to obtain the bra in the expression for P++P_{++}.

pL0R(cos(θ/2)0+sin(θ/2)1)\vphantom{p}_L\langle0|_R\left(\cos(\theta/2)\langle0|+\sin(\theta/2)\langle1|\right) pL0R(0cos(θ/2)+1sin(θ/2))\vphantom{p}_L\langle0|_R\left(|0\rangle \cos(\theta/2)+|1\rangle \sin(\theta/2)\right)^{\dagger} pL0(Ry,R(θ)0R)\vphantom{p}_L\langle0|\left(R_{y,R}(\theta)|0\rangle_R\right)^{\dagger} pL0R0Ry,R(θ)\vphantom{p}_L\langle0|_R\langle0|R_{y,R}(-\theta)

Combining these results, we can write the probability P++P_{++} as

p++=pL0R0Ry,R(θ)CNOTLRHLXLXR0L0R2p_{++}=\left|\vphantom{p}_L\langle0|_R\langle0|R_{y,R}(-\theta)\text{CNOT}_{LR} H_L X_L X_R|0\rangle_L|0\rangle_R\right|^2

This gives us explicit instructions for how to construct our quantum circuit. We will apply X, H, CNOT and RyR_y gates to qubits representing the quantum states of particles measured by Lucas and Rihanna, and make measurements to obtain the probability.

IBM Quantum recommends tackling quantum computing problems using a framework we call Qiskit patterns. It consists of the following steps.

  • Step 1: Map your problem to a quantum circuit
  • Step 2: Optimize your circuit for running on real quantum hardware
  • Step 3: Execute your job on IBM quantum computers using Runtime Primitives
  • Step 4: Post-process the results

Basically all the work we did above was step 1. Let's build the resulting circuit using Qiskit!

Step 1: Mapping our results to a quantum circuit

# We'll begin by importing qiskit and a visualization module so that we can plot a histogram of our results.
 
from qiskit.visualization import plot_histogram

Remember that 1/3 of the time Rihanna's axis of choice will be 2π/32\pi/3 radians from Lucas's, 1/3 of the time it will be 4π/34 \pi/3 radians from Lucas's, and 1/3 of the time, they will choose the same axis. So we actually need to make 3 quantum circuits for these 3 cases, and add up the results. We'll carefully explain the first one, and the last two we will simply state.

# We start by declaring our first quantum circuit, and giving it two qubits (the first "2") and two classical bits for storing outputs (the second "2")
# Define registers
from qiskit import ClassicalRegister, QuantumRegister
 
qr = QuantumRegister(2, "q")
cr = ClassicalRegister(2, "c")
qc1 = QuantumCircuit(qr, cr)
 
# We know from our analysis above that we need an X gate acting on each of the qubits (L and R)
qc1.x([0, 1])
# We need a Hadamard gate acting on Lucas's qubit, which we're calling the 0th qubit.
qc1.h(0)
# The controlled-NOT gate uses the 0th qubit (Lucas's) as the control and the 1st qubit (Rihanna's) as the target.
qc1.cx(0, 1)
# The rotation gate acts on the 1st qubit (Rihanna's) and has an argument of -2 pi/3
qc1.ry(-2 * pi / 3, 1)
# Finally, we want to measure all the qubits in the circuit to obtain measurement probabilities, and store the results in the classical bits.
qc1.measure([0, 1], [0, 1])
# Now we can draw the first of the three circuits that will check Bell's inequality for us.
qc1.draw(output="mpl")

Output:

Output of the previous code cell

The code below quickly constructs all three circuits in a more streamlined way. Note that the only difference between the three circuits is how far we rotate the two qubits about the yy axis.

qcs = [QuantumCircuit(2, 2), QuantumCircuit(2, 2), QuantumCircuit(2, 2)]
for i in range(0, len(qcs)):
    qcs[i].x([0, 1])
    qcs[i].h(0)
    qcs[i].cx(0, 1)
 
qcs[0].ry(-2 * pi / 3, 1)
qcs[1].ry(-4 * pi / 3, 1)
qcs[2].ry(-2 * pi / 3, 1)
qcs[2].ry(-4 * pi / 3, 1)
 
for i in range(0, len(qcs)):
    qcs[i].barrier()
    qcs[i].measure([0, 1], [0, 1])
 
counts_list = [None] * len(qcs)
qcs[0].draw(output="mpl")

Output:

Output of the previous code cell

Now we will use a Qiskit primitive called the StatevectorSampler. A sampler is a primitive designed to sample all the possible states of a system and return probabilities (or in some cases, quasiprobabilities) of obtaining each state. We can specify a number of "shots", and look at the "counts" for each state.

from qiskit.primitives import StatevectorSampler
 
sampler = StatevectorSampler()
 
# Start a job that will return shots for all 100 parameter value sets.
for i in range(0, len(qcs)):
    pub = qcs[i]
    job = sampler.run([pub], shots=10000)
    # Extract the result for the 0th pub (this example only has one pub).
    result = job.result()
    data_pub = result[0].data
    counts = data_pub.c.get_counts()
    counts_list[i] = counts
#    plot_histogram(counts)

If we look at the counts from each circuit, we see that two of them were basically identical, and the third was quite different.

plot_histogram(counts_list)

Output:

Output of the previous code cell

Let us make a list of the possible outcomes and add up all the counts of each state from each of the three circuits to obtain overall probabilities.

outcomes = ("00", "01", "10", "11")
 
# Here we convert "None"s into 0's so that we can sum.
 
for i in range(0, len(qcs)):
    for j in range(0, len(outcomes)):
        if counts_list[i].get(outcomes[j]) is None:
            counts_list[i].update({outcomes[j]: 0})
 
# Here we create a dictionary that holds all the outcomes and sums over their appearances in each of the circuits.
 
total_counts = {}
for i in range(0, len(outcomes)):
    total_counts[outcomes[i]] = sum(
        counts_list[j].get(outcomes[i]) for j in range(0, len(qcs))
    )

Now we can print out the total counts for each outcome, and plot the histogram.

print(total_counts)
plot_histogram(total_counts)

Output:

{'00': 7475, '01': 7442, '10': 7579, '11': 7504}
Output of the previous code cell

Check-in question

Is the above picture consistent with the outcomes predicted by hidden variables and determinism? Or is it consistent with probabilistic (and non-local) quantum mechanics?

Answer:

It is consistent with probabilistic and non-local quantum mechanics. The hidden variables treatment predicted that the probability of obtaining the same sign was less than or equal to 4/9. Quantum mechanics predicted a probability of 50%. The histogram above describes a probability of 00 or 11 equal to 49.97%. This is very close to the prediction of probabilistic quantum mechanics, but most importantly, it is greater than the allowed range in the hidden-variables treatment.

Check-in question

Does this prove anything about nature?

Answer:

No! We were using a simulator! That is a computer programmed to behave according to the laws of probabilistic quantum mechanics. If we propose a rule, and then program a computer to follow that rule, its ability to follow the rule is not proof that the rule is correct! The only way to prove this is to use a real quantum computer!

Step 2: Optimize your quantum circuit for running on real hardware

Although we initially used a simulator to debug our code, we really want to run on real hardware. After all, a simulator is just pretending to be quantum mechanical, based on the equations above. If the simulator told us those equations were correct, that wouldn't do much to convince us. We want a real quantum computer to tell us what's happening! So we'll select the quantum computer we want to use. Sometimes it might be important to pick a specific device that has properties you want, but often we simply want to use whatever device is least busy.

from qiskit_ibm_runtime import QiskitRuntimeService
 
# Syntax for first saving your token
# QiskitRuntimeService.save_account(channel="ibm_quantum", token="<MY_IBM_QUANTUM_TOKEN>", overwrite=True, set_as_default=True)
# service = QiskitRuntimeService(channel='ibm_quantum')
 
# Load saved credentials
service = QiskitRuntimeService()
 
backend = service.least_busy(
    operational=True, min_num_qubits=qcs[0].num_qubits, simulator=False
)
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
 
target = backend.target
pm = generate_preset_pass_manager(target=target, optimization_level=3)
 
qcs_isa = qcs
 
for i in range(0, len(qcs)):
    qcs_isa[i] = pm.run(qcs[i])
    qcs_isa[i].draw(output="mpl", idle_wires=False, style="iqp")
qcs_isa[2].draw(output="mpl", idle_wires=False, style="iqp")

Output:

Output of the previous code cell

Step 3: Execute your job on IBM quantum computers using Runtime primitives

Now that we have optimized our circuits to run on real quantum hardware, and debugged our code using simulators, we are ready to gather statistics from a real quantum computer, and settle the disagreement between Einstein and Born.

from qiskit_ibm_runtime import Session, SamplerV2 as Sampler
# sampler.options.default_shots = 1000
 
# Start a job that will return shots for all 100 parameter value sets.
result_list = [None] * len(qcs)
real_counts_list = [None] * len(qcs)
with Session(backend=backend) as session:
    sampler = Sampler(mode=session)
 
    for i in range(0, len(qcs)):
        # Define the primitive unified bloc (pub)
        pub = qcs[i]
        job = sampler.run([pub], shots=10000)
        # Extract the result for the 0th pub (this example only has one pub).
        result_list[i] = job.result()
        data_pub = result_list[i][0].data
        counts = data_pub.c.get_counts()
        real_counts_list[i] = counts
    #   plot_histogram(counts)
outcomes = ("00", "01", "10", "11")
 
# Here we convert "None"s into 0's so that we can sum.
 
for i in range(0, len(qcs)):
    for j in range(0, len(outcomes)):
        if real_counts_list[i].get(outcomes[j]) is None:
            real_counts_list[i].update({outcomes[j]: 0})
 
# Here we create a dictionary that holds all the outcomes and sums over their appearances in each of the circuits.
 
real_total_counts = {}
for i in range(0, len(outcomes)):
    real_total_counts[outcomes[i]] = sum(
        real_counts_list[j].get(outcomes[i]) for j in range(0, len(qcs))
    )
 
print(real_total_counts)
plot_histogram(real_total_counts)

Output:

{'00': 7258, '01': 7574, '10': 7404, '11': 7764}
Output of the previous code cell
# This syntax allows you to run the job on a simulator, in case you have exhausted your allotted time on real IBM quantum computers.
# But we strongly advise running this on real quantum computers, since this is meant to be a check of the behavior of real quantum systems.
 
# This uses a local simulator
# from qiskit_aer import AerSimulator
 
# This generates a simulator that mimics the real quantum system
# backend_sim = AerSimulator.from_backend(backend)
 
# Import an estimator, this time from qiskit (we import from Runtime for real hardware)
# from qiskit.primitives import BackendSamplerV2
# sampler = BackendSamplerV2(backend = backend_sim)
 
# result_list = [None] * len(qcs)
# counts_list = [None] * len(qcs)
# for i in range(0, len(qcs)):
# Define the primitive unified bloc (pub)
#    pub = qcs[i]
#    job = sampler.run([pub], shots=10000)
# Extract the result for the 0th pub (this example only has one pub).
#    result_list[i] = job.result()
#    data_pub = result_list[i][0].data
#    counts = data_pub.c.get_counts()
#    counts_list[i] = counts
 
# data_pubs = (result_list[0][0].data,result_list[1][0].data,result_list[2][0].data)
# outcomes = ("00", "01", "10", "11")
 
# Here we convert "None"s into 0's so that we can sum.
 
# for i in range(0, len(qcs)):
#    for j in range(0, len(outcomes)):
#        if counts_list[i].get(outcomes[j]) is None:
#            counts_list[i].update({outcomes[j]: 0})
 
# Here we create a dictionary that holds all the outcomes and sums over their appearances in each of the circuits.
 
# total_counts = {}
# for i in range(0, len(outcomes)):
#    total_counts[outcomes[i]] = sum(
#        counts_list[j].get(outcomes[i]) for j in range(0, len(qcs))
#    )
 
# print(total_counts)
# plot_histogram(total_counts)
counts_list

Output:

[None, None, None]

Step 4: Post-process and analysis

Let’s take a step back and recap: Using a hidden-variables treatment, and the 3 offset axes, we obtained a constraint on the probability for the measurements to yield the same sign Psame,hv=4/9P_{same,hv} =4/9. Then we assumed probability distributions as in quantum mechanics and obtained a different value for that probability: Psame,gm=1/2P_{same,gm} = 1/2. The prediction from quantum mechanics is higher than that allowed by the hidden variables treatment. So it can be experimentally known whether quantum mechanical states are determined by nature prior to measurement, or if they are truly in a probabilistic superposition of possible states.

We engineered our quantum circuits such that there are four possible outcomes corresponding to Lucas and Rihanna measuring one sign of the spin projection or the other: 00, 01, 10, and 11. In the cases of 00 and 11, Lucas and Rihanna measure the same sign, and in the cases of 01 and 10, they measure opposite signs. We see that to a very good approximation, the chance of Lucas and Rihanna getting the same sign are about 50%, definitely greater than 4/94/9. This means that there is no set of hidden variables that can account for that distribution of probabilities, and the hidden-variables treatment is not compatible with experiment.

There are different interpretations of quantum mechanical experimental results, and there are many subtleties to experimental setups that are revisited every so often. But so far the principles of quantum mechanics and the probabilistic interpretation of quantum states have accurately described the results. Max Born seems to have been correct.

Let's take just one more moment to reflect on the significance of this. Two particles emerge from a decay event, and the two particles travel in different directions, possibly for a long time. Their spins are not in any well-defined state, and they carry no hidden-variable instructions with them to determine the outcomes of future measurements. But a measurement of one (along, say +z+z) necessarily determines the outcome of an experiment on the other particle's spin along the zz direction (it must be z-z). This means that something about the physics of one particle is determined by what is done to the other particle, possibly far away. This is one situation that has led people to refer to reality as being "non-local".

Two particles like those we've been describing are somehow "connected" in the sense that measurements on one can influence the other. We refer to such particles as being "entangled". Entanglement is more than just correlations. For example, we could construct a classical machine that spits out a magnet to one side with its north end up and a magnet to the other side with its north end down. Such magnets could be perfectly anti-correlated. But a measurement of one would do nothing to the other. In quantum mechanical entanglement, particle A could be in an undefined state (or a mixture of many states), and we can pin it down to a defined state through measurements on a totally different particle (say, B). Nothing like that exists in the classical world.

This often brings up a whole new world of questions and possibilities. Some of the ideas it conjures are real, like using entanglement to compute, as in quantum computers! Some are deceptively appealing, but turn out to fail, like trying to use entanglement to send information faster than light. We encourage you ask all the questions occurring to you, and read about how others have investigated these phenomena. There is a whole world of quantum mechanics out there to explore, but here are just a few resources you might check out:

IBM Quantum courses:

Interesting quantum mechanics papers:

Some quantum mechanics instructional resources:

Some quantum mechanics educational research:

Critical concepts:

  • There was a historical disagreement about whether quantum states were merely unknown or undetermined by nature prior to measurement, whether quantum mechanics is deterministic or probabilistic.
  • Hidden variables and therefore local realism are not consistent with observations of quantum mechanics. That is, the correlations observed in quantum mechanics cannot be explained by well-defined variables that are simply unknown to us.
  • Quantum mechanics is probabilistic.
  • Entanglement is real and observable.
  • Entanglement is not just correlations.
  • We can map real world scenarios to quantum computers.
  • Hidden variables refers to quantities specified by nature, but unknown to humans; they do not exist in this context.

Questions

T/F questions:

  1. T/F Albert Einstein argued that quantum mechanics was incomplete, as a theory, because it only described probabilities of outcomes, and not the underlying mechanism that determined those outcomes.
  2. T/F "Hidden variables" refers to the idea that two quantum mechanical particles can be entangled.
  3. T/F Any two correlated systems are quantum mechanically entangled.
  4. T/F Quantum mechanical entanglement is important for getting math right, but you can't see it in an experiment.
  5. T/F In most cases, quantum mechanics can't tell you an exact outcome of an experiment, only the probabilities that certain outcomes will be measured.
  6. T/F In quantum mechanics, under certain conditions, the state of particle A can be affected by the state of particle B, even if particles A and B are not in contact and do not exchange any particles.
  7. T/F We can map real world experiments onto quantum circuits.

MC questions:

  1. Suppose a spin-0 particle decays into two spin-1/2 particles A and B. A measurement is made on particle A that reveals its spin has a projection along +z+z. Particle B now

    • a. definitely has a spin projection along z-z
    • b. definitely has a spin projection along x-x
    • c. definitely has a spin projection along y-y
    • d. definitely has a negative spin projection along any axis measured.
  2. A spin-0 particle decays into two spin-1/2 particles A and B. If particle A is measured to have a projection along +z+z, which of the following projections are possible for a measurement of particle B? Circle all that apply.

    • a. +x+x
    • b. x-x
    • c. +y+y
    • d. y-y
    • e. +z+z
    • f. z-z
  3. Suppose a spin-0 particle decays into two spin-1/2 particles A and B. What best describes the state of particle A prior to any measurement.

    • a. The spin of particle A is along +z+z.
    • b. The spin of particle A is along z-z.
    • c. The spin of particle A is along +x+x.
    • d. The spin of particle A is defined along some directions, but not others.
    • e. The spin orientation of particle A is undetermined by nature prior to any measurements.
  4. Which of the following is/are true of the Hadamard gate? Select all that apply.

    • a. H0=12(0+1)H|0\rangle = \frac{1}{\sqrt{2}}(|0\rangle+|1\rangle)
    • b. H0=12(01)H|0\rangle = \frac{1}{\sqrt{2}}(|0\rangle-|1\rangle)
    • c. H12(01)=0H \frac{1}{\sqrt{2}}(|0\rangle-|1\rangle)=|0\rangle
    • d. H12(0+1)=0H \frac{1}{\sqrt{2}}(|0\rangle+|1\rangle)=|0\rangle
  5. Which of the following is/are true of the X gate? Select all that apply.

    • a. X0=1X|0\rangle = |1\rangle
    • b. X0=12(01)X|0\rangle = \frac{1}{\sqrt{2}}(|0\rangle-|1\rangle)
    • c. X0=0X|0\rangle = -|0\rangle
    • d. X1=0X|1\rangle = |0\rangle
    • e. X12(01)=X12(10)X\frac{1}{\sqrt{2}}(|0\rangle-|1\rangle)=X\frac{1}{\sqrt{2}}(|1\rangle-|0\rangle)
  6. Which of the following is a two-qubit gate?

    • a. X
    • b. Ry(θ)R_y(\theta)
    • c. H
    • d. CNOT
  7. Suppose a qubit is in the 0|0\rangle state. What is the probability of measuring it to be in the 11\rangle state?

    • a. Exactly 100% on a noise-free simulator, near 100% on a real quantum computer
    • b. Near 100% on a noise-free simulator, exactly 100% on a real quantum computer
    • c. Exactly 0% on a noise-free simulator, near 0% on a real quantum computer
    • d. Near 0% on a noise-free simulator, exactly 0% on a real quantum computer

Discussion questions:

  1. Friends A, B, and C are discussing results from this lab, related to Bell's Inequality. Specifically, they are looking at the image that shows the quantum mechanical probability of measuring the same sign along axes is greater than that allowed by a hidden-variables treatment: (Psame)max,QM>(Psame)max,HV(P_\text{same})_\text{max,QM}>(P_\text{same})_\text{max,HV}. Friend A says, "This means that we didn't know the spin states prior to a measurement." Friend B says, "No, it's more than that. This means the spins are not already pointing in a particular direction, prior to measurement. Although, the spin state might somehow be determined or stored somehow" Friend C says, "No, it's even more than that. This means the future spin state wasn't even decided by nature prior to measurement." With whom do you agree, and why?

  2. Explain how quantum mechanical phenomena like entanglement indicate that reality is non-local.

  3. What additional experiments would you like to do to convince yourself of the results obtained here?

  4. Could Bell's inequality only be explored with 3 equally-spaced axes aa, bb, and cc? Could it be done with any other number of axes? What would this look like? Would it still yield a difference in probabilities predicted by hidden variables vs. probabilistic quantum mechanics?

Was this page helpful?
Report a bug or request content on GitHub.