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.