This is a web application for simulating the one-dimensional schrödinger equation in a custom time-dependent potential. The simulation is done by solving the time-dependent schrödinger equation using the runge-kutta method. The simulation is done in the browser using WebAssembly.
The website is hosted on quantsimulant.de. A technical description of the simulation can be found in my bachelor thesis (German).
The application shows the wave function of a one-dimensional particle as a blue line. The potential is shown as a black line. The potential can be changed by drawing a new potential with the mouse. The simulation can be started and stopped by pressing the space bar. The wave function can be rotated and tilted in the complex plane by using the wasd keys. The j and k keys can be used to navigate forward and backward in time when the simulation is stopped. The application remembers the changes to the potential and plays them back when the simulation is repeated.
This project uses the emscripten compiler to compile the C code to WebAssembly.
Download the latest version of emscripten and activate it by running the following commands in the installation directory:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.shBuild the project by running the following command in the root directory of the project:
./erstelleThe www directory contains the files that need to be hosted on a web server. Use the following command to start a simple web server in the www directory:
./serverThe website can now be accessed by opening a browser and navigating to localhost:9090.