14. Quantum Mechanics#
QM for Everyone is the experimental foundation, so use Quantum Mechanics interactive games
In QM, Sage has no specific quantum module, so use SymPy’s quantum module and Wolfram Quantum Framework and Qiskit open-source Python-based quantum computing by IBM
14.1. Tips#
QM supports Chemistry, and thus founational to Life Sciences
eg. use the solutions to the Schrödinger Equation to describe how chemical bonds are formed between atoms.
Quantum Systems: systems governed by QM laws, which differ from classical physics. Q-systems exhibit phenomena such as superposition, entanglement, and quantum tunneling.
Principles of QM:
Superposition: Objects existing in multiple states simultaneously.
Entanglement: Intertwined quantum states of multiple particles.
Quantization: Discrete and specific values of certain properties.
Fields |
Key points |
|||
---|---|---|---|---|
Quantum Computing |
Qubits: Basic unit of quantum information |
Superposition: Utilizing quantum states for parallel processing |
Quantum Algorithms: Algorithms designed for quantum computers |
|
Quantum Communication |
Quantum Key Distribution: Securely distributing cryptographic keys |
Teleportation: Instantaneous transfer of quantum information. |
Quantum Internet: Global quantum communication network. |
|
Quantum Sensing and Metrology |
Atomic Clocks: Extremely precise timekeeping using quantum properties. |
Magnetic Resonance Imaging: Quantum-based imaging technology for medical diagnosis |
Quantum Metrology: High-precision measurement in various scientific fields |
Quantum Gyroscopes: Advanced navigation and rotation sensing devices. |
14.2. Maths and CS#
14.2.1. Unit 1 : Proofs#
Notes
14.3. QM for Everyone#
Quantum Games
14.3.1. Final Exam#
Notes
P.8 : Check part 3
P11 : Check part 2
0.28^2+0.0036
0.0820000000000000
0.9539^2*0.3^3
0.0245679806700000
(0.3+0.9539^2*0.3)^2
0.328303287701419
x=cos(pi/9)
s(n(x),n(x^2),n(x^3))
s(n(cos(pi/20)^10))
n=1
m=52
for i in range(10):
n*=m-1
n/=365
m-=1
print(float(n))
1.104809701340232e-09
14.3.2. Advanced Quantum Mechanics of Light#
Notes
Quantum Seeing in the Dark
Two Slit Experiment
In the experiment there is interference patterns where the probability of a photon being detected is virtually zero.
If the detector is moved there and a path is blocked, then we can see the blockage without looking.
Mach-Zehnder Interferometer
When this interferometer does not contain any polarizers and both paths have the same length, all the photons will go to one detector as the signal is amplified.
When an object is added, this changes the probability and the other detector will receive photons. This is also how quantum bomb detection works.
Quantum Zeno Effect(go to paradox and infinity)
14.3.3. The Quantum Mechanics of Light#
Notes
Light is made of particles.
This has a long history.
This can be proved using an experiment as when you shoot photons randomly through a single then you will get an pattern with a denser patch where the slit is. If instead it was a wave then it would be uniformly distributed.
Quantum Mechanics Process
Identify all events.
Find all alternative events that can occur.
Use quantum rules to find the amplitude arrow.
Arrows rotate at a given speed(see below) based on the colour of the photon(1 revolution for every wavelength travelled).
Add all the arrows together to construct the final arrow.
Square the length of the final arrow to calculate the probability for that event to occur.
Add all the probabilities to calculate the total probability.
Calculation for Amplitude Arrows
Use a clock that spins starting at 12 o’clock.
Spinning rate through air
Red Light : 36000 revolutions per inch(this one is mainly used in experiments)
Green Light : 54000 revolutions per inch
Blue Light : 72000 revolutions per inch
Reflection
Reflection in air on glass : Multiply length by 0.2 and add 0.5 revolutions(6 hours) to the clock.
Reflection in glass on glass : Just multiply length by 0.2
Transmission
Transmission from air to glass : Multiply length by 0.98
Transmission from glass to air : Multiply length by 0.98
Info on Experiments
1-3 : These are experiments where the photons only interact with air and glass.
4-? : These experiments mostly have slits that photons have to get through in order to get detected.
Source-Detector Experiments of Light
There is only one event so this is boring. Source -> Detector The length is just 1 meaning the final probability is 1.
The two alternative events are to reflect of the top of the glass or the bottom of the glass. Calculating gives a probability of 3%.
There is only one event which is where the photon gets transmitted. Using quantum rules gives a probability of 96%.
Even if you change the thickness of the glass, the probability is the same because all of them include one event where there is a transmission.
Two Slit Experiment
This experiment is strange because out of the two slits, when you calculate the final probability for a photon to reach the detector, it is not the sum of the two probability for single slits like you would expect.
If you move the detector to where there is a zero probability of the photon reaching the detector and then block a slit, the probability of a photon reaching the detector there increases.
This is strange as when you add more blockages, more photons reach the detectors. This is related to quantum seeing in the dark.
14.3.4. Advanced Quantum Mechanics with Spins#
Notes
Two-Slit Experiment with Stern-Gerlach Analyzer Loop : There are two results using classical and quantum probability. The quantum probability result is correct where since the path taken is indeterminate(you can also say it takes both paths), the atom’s state does not change.
Detector Variant : If a detector is put in the analyzer loop, the atom’s x state becomes known meaning it no longer has a state in the z direction.
Einstein-Podolsky-Rosen(EPR) Experiment : This is an experiment where there is a source which fires two atoms with opposite projections in a specific axis and is measured by two analyzers. One analyzer is slightly closer than the other so that we will know the state of the atom that hasn’t entered the analyzer yet because we have measured the other atom’s state. But say the analyzers are very far away. Then wouldn’t the information have been transfered faster than light?
The hidden variables theory that Einstein made was disproved by Bell’s theorems.

14.3.5. Intro & Quantum Probability#
Fermions : Metals conduct electricity do so because there is a “sea of electrons”. This is created from the Pauli exclusion principle, since electrons are fermions, and fermions stay apart, they stay apart.
Alpha Particles : Created by radioactive elements. Since it is slow and heavy, it has low penetration power but can damage biological tissue. Smoke detectors use heavy elements to detect smoke as when there is smoke the current flow between the 2 metal plates that are held at different voltages the current is changed.
Magnetic Fields : These are vector fields that are created by magnets.
The closer to a magnet you are, the stronger the intensity.
Normally the arrows indicate where the north pole of a magnet will be attracted to.
Forces in the magnetic field can cause the magnet to move because of a net force or spin because of forces in opposite directions at different ends.
The net force can be calculated by finding the axis of increasing intensity and then finding the projection of the magnet onto the axis. When doing this it is useful to keep the south pole of the magnet on the axis.
Fat Arrows : For some magnetic fields, they can be represented by fat arrows where the width is the intensity of the magnetic field and the direction of the arrows is indicated by the fat arrow’s direction.
Magnetic Needles : These are idealized small magnets like those in compasses.
Precession : A rotation that occurs when there is a magnet and a magnetic field.
Even when there is precession, the projection remains constant as it rotates perpendicular to the axis of increasing field.
Stern-Gerlach Experiment : Atoms are injected through a region of space where because of a magnetic field, there will be precession. 2 magnets will deflect the atom until it hits the screen where there is a detector.
This experiment has many variants.
In the quantum world, since everything is random, the atoms’ chance of exiting a specific exit for positive and negative can be calculated using a formula.
Each Stern-Gerlach analyzer measures the atom’s projection on a specific axis. If the atom has no projection on that axis then it chooses a random path to take.
Birthday Problem : The problem asks you that how many people must be in a large room for the chance of at least 2 people having the same birthday to be a specific number.
There are many variants.
Penney’s Game : This is an unfair coin game that seems fair at first. If you pick the sequence of coins first then the other person can always pick a sequence to have a greater chance of winning(unlike the same game but with sequences of 2 coins).
Rules
Each player picks a sequence of 3 coins.
Flip a coin, then put it at one end of the coins.
Continue until the 3 coins in the middle matches a player’s sequence.
If the 3 coins in the middle matches your sequence, you win this round.
Continue for as many rounds as needed.
# Birthday Problem
result=False
count=0
for i in range(100000):
result_in=False
people=23
birthdays=[]
for i in range(people):
birthdays.append(randint(1,52))
birthdays.sort()
for i in range(1,53):
if birthdays.count(i)>2:
result=True
result_in=True
if result_in==True:
count+=1
count
41479
# Penney's Game
me_win=0
comp_win=0
me_coins=[0,1,0]
comp_coins=[0,1,1]
for i in range(100000):
coins=[2,2,2]
coins_req=[coins[-3],coins[-2],coins[-1]]
while coins_req!=me_coins and coins_req!=comp_coins:
coins.append(randint(0,1))
coins_req=[coins[-3],coins[-2],coins[-1]]
if me_coins==coins_req:
me_win+=1
else:
comp_win+=1
s(me_win,comp_win)
# ???
s(11/12*10/12*9/12*8/12*7/12,1728-385)
plot(cos(x/2)^2,(x,0,2*pi), figsize=3)
x=1
n=0
m=364
while x>0.5:
x*=m
m-=1
x/=365
n+=1
s(n)