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

49

u/--CreativeUsername Jul 27 '19 edited Jul 28 '19

And also with numpy, sympy, and optionally numba. Github Repository:
https://github.com/marl0ny/1D-Quantum-Mechanics-Applet.

The code itself is a little messy, and I certainly haven't ironed out all bugs and quirks. Note that this uses numba, if you have it. In my experience numba either slows things down or speeds things up, depending on the computer and environment used. The notebook Performance_Test.ipynb checks to see if Numba improves things.

1

u/ovigo Jul 28 '19

Very cool stuff! I wonder how much effort it would be to rewrite this in Jupyter/IPython-widgets and make a web-launchable my binder.org? :)