Numerical Quantum Mechanics in 3D

Live Script exploring numerical solutions to the time-independent Schrodinger equation in three dimensions.
17 Downloads
Updated 4 Apr 2025

View License

This educational Live Script uses a second-order difference method to solve the time-independent Schrodinger equation in three dimensions. The eigenstates of a general quantum harmonic oscillator inside a box are found and compared to analytic results. The Live Script and method can be applied to similar problems.
The script illustrates several visualization techniques including a point cloud. It also shows how to interpolate a numerical wave function and then save the interpolation as a continuous function for later use.
This Live script may interest students and educators in physics, chemistry, and related fields. 'Try this" suggestions, 'Challenges', hyperlinks, and references are included for further exploration. Additional Live Scripts by the author are available[1].

Cite As

Duncan Carlsmith (2025). Numerical Quantum Mechanics in 3D (https://uk.mathworks.com/matlabcentral/fileexchange/180659-numerical-quantum-mechanics-in-3d), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

NumericalQuantumMechanicsIn3D folder

NumericalQuantumMechanicsIn3D folder

Version Published Release Notes
1.0.0