Quantum Mechanics in 2D with the PDE Toolbox

Computes 2-dimensional quantum eigenstates for arbitrary geometries and potentials.
22 Downloads
Updated 16 Apr 2025

View License

This educational Live Script shows how to solve the Schrodinger equation numerically for the eigenmodes and eigenfrequencies of a quantum particle bound by any two-dimensional model potential with essentially any two-dimensional geometry using the Partial Differential Equation Toolbox®. Example potential models are combinations of a 2D harmonic oscillator and a uniform constant force field. Example geometries include rectangles and circles with or without holes and multiple overlapping circular regions.
This script may interest students and instructors of physics, chemistry, and related fields. 'Try this' suggestions, 'Challenges', hyperlinks, and references are provided for further exploration. Related Live Scripts quantum physics education by the author are available (Ref[1-5]) and additional physics and general STEM Live Scripts at the File Exchange.

Cite As

Duncan Carlsmith (2025). Quantum Mechanics in 2D with the PDE Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/180798-quantum-mechanics-in-2d-with-the-pde-toolbox), 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!

QuantumMechanicsIn2DWithThePDEToolbox folder

Version Published Release Notes
1.0.1

Minor fixes, added a few comparisons to theory.

1.0.0