r/Python • • Jul 27 '19

Simulating Quantum Mechanics Using Matplotlib and Tkinter

https://gfycat.com/wellgroomedunsteadyballoonfish
1.4k Upvotes

60 comments sorted by

View all comments

179

u/towinu Jul 28 '19

Can you please explain what the fuck I’m looking at? I know a very small amount about the subject.

97

u/[deleted] Jul 28 '19

it is a really good simulation of the time dependent schroedinger's equation.

ignore Re(\psi) and Im(\psi), those aren't physically meaningful anyway and could (should) be omitted from the simulation since all it does is confuse.

the quantity psi is the wavefunction that represents where a particle "is" in space and time, though "is" is kinda tricky since its probablistic. its somewhere in there.

that also includes the potential barrier. the simulation accurately models quantum tunneling through a potential barrier.

0

u/[deleted] Jul 28 '19

[deleted]

25

u/[deleted] Jul 28 '19

possibly.

if you integrate |\psi|2 over x=-\infty to x=\infty, you get "1".

this means that the particle exists somewhere but only once. you can guess where it is most probable by the maximum of the function but that's no guarantee.

0

u/[deleted] Jul 28 '19

[deleted]

24

u/Serialk Jul 28 '19

I don't think that's a correct way to put it, it's not everywhere, it's just fundamentally described by a probability distribution.

5

u/[deleted] Jul 28 '19

yeah this is a better way of phrasing it.

but it could be anywhere |\psi|2 is nonzero.

2

u/[deleted] Jul 28 '19

yeah.

measurement has its own time/energy position/momenta uncertainty. its a conjugate variable thing.

1

u/Kopachris Jul 28 '19

That's used as a common analogy but it's not accurate.

5

u/Globbi Jul 28 '19

That's not something which can clearly be answered. There are a few approaches on what it means and no agreement among physicists.

All we have are those equations that work well and that's what is being simulated.

2

u/[deleted] Jul 28 '19

Can you explain like I’m 5?

3

u/deadwisdom greenlet revolution Jul 28 '19

The graph is telling you where the particle might be, but no one knows exactly where. Modelling the might-be's is basically quantum mechanics.

1

u/aquic Jul 31 '19

The tunneling through the potential barrier is great! I think is a neat tool to experiment with while teaching QM!

Good job!