Create Your Own Quantum Mechanics Simulation (With Python)

Philip Mocz
Level Up Coding
Published in
6 min readOct 26, 2020

--

For today’s recreational coding exercise, we will look at quantum mechanical systems, in particular, the Schrodinger-Poisson equations. We will create a simulation for the evolution of a wavefunction under its self-potential. Such a system may describe certain superfluids/Bose-Einstein condensate or exotic dark matter.

You may find the accompanying Python code on GitHub.

Before diving in, below is a gif of what running our simulation looks like:

--

--

Computational Physicist. Sharing intro tutorials on creating your own computer simulations! Harvard ’12 (A.B), ’17 (PhD). Connect with me @PMocz