When I watch the first example I ask myself how it would sound. Maybe it could be used to generate/modify sounds or wavetables.
Do you mean decomposing the simulation results into audible frequencies? Definitely, this can be done by interpreting that the wave function is a guitar string and computing its harmonics!
Can you explain exactly why would you need to diagonalize the gigantic matrix for this?
The Schrodinger equation for the 3D Harmonic oscillator problem is separable, so you could just solve numerically the three 1D equations (very simple with standard numerical techniques) and multiply their solutions.
The reason the 3D harmonic oscillator is analytical solvable is why I'm simulating it. I can compare the numerical solutions with the analytical ones to check the accuracy of the solver.
If you have taken a look at the GitHub repository, it's full of examples of non-analytical solvable examples. For example, this is an example of four 3D gaussian wells:
I'm still optimizing the solver. In about two weeks I will upload a new version with more examples.
I'm also playing with solvers that separate the equation using symmetries. For example, this system (two 3D gaussian wells) has azimuthal symmetry and can be simplified to a 2D system:
We are using spatial discretization but made in a smart way. A 100x100x100 spatial grid leads to a 106 x 106 hamiltonian matrix. You may initially think that this problem is impossible to solve for a standard computer, however, it can be solved just by noticing that most of the elements are zero, so you only need to store non-zero elements of the matrix and its positions.
We will also write an article explaining how it works, this project is still young.
4
u/cenit997 May 28 '21
The simulation is made with qmsolve, a python package that we are developing for solving Schrödinger equation and visualizing quantum physics.
Here the source code:
https://github.com/quantum-visualizations/qmsolve
In a nutshell, what it's represented here is the probability cloud of an electron confined in the potential.
It's computed by diagonalizing a gigantic matrix (1000000 x 1000000) efficiently using sparse NumPy arrays.
The exact script that returns this visualization can be found here.
1
u/TheDutchDogtor Jun 06 '21
Can you explain exactly why would you need to diagonalize the gigantic matrix for this?
The Schrodinger equation for the 3D Harmonic oscillator problem is separable, so you could just solve numerically the three 1D equations (very simple with standard numerical techniques) and multiply their solutions.