Simulation - Quantum Mechanics
Not all wavelengths are allowed on an electron orbit because the electron waves must "match up with itself" after going around one circle, otherwise destructive interference will destroy the waves. Adjust the wavelength and the radius so that the wave joins back to itself smoothly to get an "allowed" orbit.
Click play to make observations on the quantum particle. The particle is more likely to appear where the probability density (click the "show probability density" button to see) is high.
Click play to make observations on the quantum particle. The particle is more likely to appear where the probability density (click the "show probability density" button to see) is high.
Notations follow Introduction to Quantum Mechanics by David Griffiths, section 2.6.
Click play to make observations on the quantum particle. The particle is more likely to appear where the probability density (click the "show probability density" button to see) is high.
Click play to make observations on the quantum particle. The particle is more likely to appear where the probability density (click the "show probability density" button to see) is high.
A lab manual based on this simulation is available here.
A simulation of the Stern-Gerlach experiment, where a particle with a magnetic moment is sent through a non-uniform magnetic field. The trajectory of the particle depends on the magnetic moment, which in turn depends on the intrinsic angular momentum (spin) it carries. Adjusting the angle on the detector in the simulation is the same as rotating the magnets in the experiment, thereby detecting the compoenent of spin along different directions.
Rotate the dials on the detector to adjust the axis of measurement. Rotate the source to change the spin of the particles emitted. $p(+)$ and $p(-)$ are the observed probability based on the accumulated counts.
Things to try:
There is no computer simulation for this section, just a simple (but very long) explanation.
Bell's inequality: $$ \langle score \rangle \lt 0 $$ Classical physics obeys this inequality. Quantum mechanics violates it.
Now comes the long story.
Imagine two boxes (box $A$ and box $B$), each has three compartments, numbered 1, 2, and 3. In each compartment is a ball labeled either "+" or "-". For example, here is the content of the first box: $A(++-)$. There is only one rule (for now):
Rule number 1 means there are only 8 possible configurations for the pairs, namely:
You are on a game show. The host prepared 100 pairs of these boxes according to the rules and closed them. He knows the content of the boxes but you do not, the pairs are not all identical. Now comes more game rules:
You can think about the right strategy to win the million dollars, but for our purpose we will analyze the action of you as a naïve game contestant, who opens the compartments completely randomly. We will label your action on a pair of boxes by two numbers $(n_A, n_B)$. For example, $(3, 2)$ means you open compartment 3 in the box $A$, and compartment 2 in box $B$.
There are only 9 actions you could take for each pair of boxes. Due to your naïveté you will choose one of these 9 options for each pair with equal probability.
Suppose the content of a pair is $A(+++), B(---)$ (the host knows this but the contestant does not), then the score from opening the compartments for this pair is going to earn you a score of $-1$ because he would get opposite signs no matter which compartments you choose. That is bad news for you.
Luckily, the host is not a dishonest person, he did not put all the pairs in such unfavorable configurations. Here is another pair you could get: $A(++-), B(--+)$. Out of the 9 actions you could take, these are the ones that will get you a negative score of -1:
On the other hand, for $A(++-), B(--+)$, you can earn a positive score of +1 if you choose to open the following:
Let's recap. There are 9 choices you can make, 5 of them gives you $score = -1$, 4 of the choices gives you $score=+1$. The odds are against you because the bad choices outnumbered the good ones. When the pair is $A(++-), B(--+)$, and you make your choice randomly, your average score will be: $$ \langle score \rangle = \frac{5}{9}(-1) + \frac{4}{9}(+1) = -\frac{1}{9} $$
While there are 8 possible configurations for $A$ and $B$, there are really only two main categories, classified by the contents of box $A$:
Using your naïve strategy, the odds are stacked against you. On average you will get an overall negative score and therefore not become a millionaire (unless you are unusally lucky).
Bell's inequality in this context is the depressing fact: $$ \langle score \rangle \lt 0 $$
Imagine your surprise when the next ten contestants after you each won a million dollars! You then recalled that the contestants confined in you backstage that they were actually the host's friends, so you suspect maybe the host helped them win. The contestants were kept in a sound-proof box making the choices remotely, so it did not appear they communicated with the host. How did they cheat?
Watching the recording carefully, you realized that after a contestant opened a compartment in box $A$, the host always blocked the view to box $B$ before the contestant chose a compartment in $B$. It is obvious now: the host must have replaced the content in box $B$ after his friend opened box $A$ to increase the chance of a positive score. With cheating they violated Bell's inequality and get an average score $\langle score \rangle \geq 0$!
Without cheating, once the content of the boxes are prepared, the average score is negative. The only way to get around it (with the naïve strategy) is if the contents are changed in the middle of the game.
Classical physics is like the honest contestant. The contents of the boxes are fixed once the host prepared them, you opening a compartment does not change the content inside.
Quanum mechanics is like the cheating game. If we replace the balls in the game with their quantum counterparts (like the spins in the simulations below), then the act of opening a compartment in $A$ changes the probability of the outcome in $B$. It is almost as if something in box $A$ "reaches over" to box $B$ to replace its content so you have a higher chance of getting a positive score. How nature is able to do that (despite the two boxes being light years apart) is still a subject of debate and we will not get into the details here.
A lab manual based on this simulation is available here.
Hidden variables appear impossible to disprove, as least that was how it appeared to physicists for many years. After all, how do you prove that something "hidden" does not exist? Amazingly, that is what John Bell managed to do in a 1964 paper, based on an idea by Einstein, Podolsky and Rosen years ago. The simplified version in this simulation is based on an article by David Mermin. The two detectors are placed at slightly different distance from the source on purpose.
Spin corresponds to angular momentum, which is conserved, and the pairs of particles must obey this law. This means if one has spin +1 along the $0^\circ$ direction, the other must have spin -1 if measured along the same direction. In practice, it means the signs in $h_1$ and $h_2$ are always reversed.
Next we are going to assign a "score" for each measurement by $score = exit_1\times exit_2$.
The exit (i.e. the result of a measurement) is completely determined by $h = (s_0, s_{-120}, s_{+120})$, for example:
Experimentally, it means if we randomize the angles of D1 and D2, the average score will be negative as long as we assume the particles have hidden variables determining the measurement outcome. The precise values of the hidden variables do not matter.
An easy analogy: Put three balls into a bag $h_1$, each either black or white. For every black ball you put in bag $h_1$, you have to put a white ball in bag $h_2$ and vice versa. Randomly take out one ball in $h_1$ and one in $h_2$, you are more likely to end up with two different colors. In our spin experiment, you are more likely to get different spin $s$ from the two detectors, so the score is more likely to be $-1$ than $+1$, so the average score is negative.
The standard deviation is: $$ \sigma_1 = \sqrt{\langle score^2 \rangle - \langle score \rangle^2} = \sqrt{1-\frac{1}{3^2}} = \frac{2\sqrt{2}}{3} $$ If one take $N$ measurements and take the average, the standard deviation of the average is: $$ \sigma_N = \frac{\sigma_1}{\sqrt{N}}=\frac{2}{3}\sqrt{\frac{2}{N}} $$
In the next simulation, we will see that quantum mechanics predicts $\langle score \rangle = 0$ (as opposed to $-\frac{1}{3}$ of hidden variables), which was confirmed by multiple experiments. In our case, to have confidence in the measurement of $\langle score \rangle = 0$, we want to make sure this value is at least 2 (or more) standard deviation away from the hidden variables prediction of $-\frac{1}{3}$: $$ 0 - (-\frac{1}{3})> 2\times \sigma_N =\frac{4}{3}\sqrt{\frac{2}{N}} \Rightarrow N > 32 $$ Similarly, one could work out the number of measurements required for confidence of $5 \sigma_N$ is $N>200$.
Virtual lab:
A lab manual based on this simulation is available here.
In many ways, quantum mechanics is actually easier to analyze (mathematically but not conceptually) than the hidden variables version, but it forces us to think really hard about our notion of reality in the process.
If I have a pair of gloves, I keep one glove and put the other one in a box and send it on a rocket with you to Mars. If you open the box on Mars and see a left glove, you can immediately deduce that the glove I kept must be a right glove. This is classical correlation, and there is nothing magical about this. Which glove is in the box is pre-determined even before you opened the box.
Quantum mechanics works rather differently. Remember how an electron can pass through both slits at the same time in a double-slit experiment? A "quantum glove" could be both left and right at the same time until you decide to open the box to observe it. If you open and see a left glove, then and only then, the glove in my possession becomes a right glove as if by magic, despite the fact that we are a long distance apart and I may not even be looking at my own glove. We describe such systems to be "entangled" in physics jargon. There are a lot of subtle points here, simultaneity (what do we mean by "at the same time") being one, faster than light travel being another, which we will not get into here.
In our spin simulation, in order to conserve angular momentum carried by the particle spin, if D1 detects particle 1 to spin up, then particle 2 must now spin down. Play the simulation to see how a particle changes to a definite state when its entanglement partner is measured by a detector. You can also drag the detectors to change their order.
We again define the "score" the same way as in the hidden variables simulation earlier by $score = exit_1\times exit_2$.
Some things should bother you immediately. While we draw the pairs of particles fairly close together, in theory they could be several galaxies apart. How does one particle fix the spin state of the other despite being so far apart even though there are no interactions involved once they separated at the source? Does the spin state of the second particle get fixed "at the same time as" when the first particle gets measured? If so, what does "at the same time" means given its ambiguity in relativity? Is the influence between the pair traveling faster than light? Can we use this to send information beyond the speed of light? I should at least point out the last question has a simple answer - no, but it is closely related to the subject of quantum teleportation. I will not have time to get into all these points, but just know that you are witnessing something quite subtle.
Now is a deeper and more "profound" discussion. What is so unusal about quantum mechanics and its violation of the Bell's inequality? Quantum mechanics manages to beat the inequality by not having a pre-determined state if no one observes the particles' spin. In other words, despite the fact that every time you observe it, a particle's spin is always either $s=\pm 1$ along a certain direction, it is possible for a particle to have no definite value of spin when no one is observing. In a philosophy class, you may think when a tree falls in a forest, it still makes a sound even if no one is around, but in quantum mechanics, "reality" is really not quite what you think. Einstein himself asked, "if no one is looking at the moon, does it still exists?" We are used to thinking reality is "out there" whether we human look or not, but such "reality" is really our hidden variables in our jargons, something that is hidden but still exists even when we do not look. Bell's show if that is the case, Bell's inequality must be obeyed. The experimental fact that the ineqaulity is violated by physical systems tells us to completely rethink the concept of reality.
Virtual lab:
I will end this with a defense of Einstein, who got a bad reputation for apparently "not getting" quantum mechanics. He disliked quantum mechanics, and debated with other physicists over many years, arguing quantum mechanics was incomplete. Looking back with a lot of hindsight, we now realize (within the past 30 years or so) Einstein was pretty much the only one really "getting it", at least as far as the most subtle points are concerned, while all other physicists simply swept the difficult bits under the carpet and pretended they were not there. His paper on EPR paradox on entanglement was the foundation behind John Bell's work that we discussed here. These days one may go as far as saying that entanglement is the heart of quantum mechanics, even Einstein was really the only person understanding it for a long time. The hope of quantum computing depends crucially on entanglement, and in my own field of study, there is now high hopes that entanglement can finally resolve many of the deepest mysteries of the univserse, such as the information loss in black holes, traveling through a wormhole, and the fundamental nature of spacetime. It is sad that Einstein never lived to see progress made with his guidance he seeded all those years ago.