← Back to index

Numerical Solution of the Schrödinger Equation for a One-Dimensional Quantum Well

Authors: Dou Du, Taylor James Baird and Giovanni Pizzi

Original notebook: 1quantumwell.ipynb


This notebook solves numerically the quantum-mechanical problem of a single rectangular one-dimensional quantum well, and displays interactively the eigenfunctions (plotted at the height of the corresponding eigenvalues).

Goals

Background theory

More on the background theory.

Tasks and exercises

  1. Keep the depth at the default value (−0.2) and move the slider of the width from the smallest value (0.1) to the largest value (2.0). Do you see any change for the number of the states? How does the eigenvalue of the ground state (the lowest eigenstate) change with the increasing of the width of the quantum well and why?

    Solution

    The wider the well potential is, the more (bound state) wavefunctions you will obtain. The reason for this can be traced back to the relationship between the eigenenergies of the bound states and the width of the well: En∝1L2E_n \propto \frac{1}{L^2}. Therefore, increasing the width of the well decreases the values of the various eigenergies. Note that the “zero” of the wavefunction is shifted, for every wavefunction, at the energy of the corresponding eigenvalue.

  2. Keep the width at the default value (1.2) and move the slider of the depth from the smallest value (−1.0) to the largest value (−0.1). Do you see any change for the number of the states? How does the eigenvalue of the ground state (the lowest eigenstate) change with the increasing of the depth of the quantum well and why?

    Solution

    The deeper the well potential is, the more wavefunctions you will obtain. Mathematically, the explanation for this lies in the relationship between the values of the eigenenergies and the potential depth. This is a transcendental relationship and has to be solved numerically or graphically but one may note that by increasing the well depth, the values of the various energy eigenvalues become progressively more negative. Some important remarks are that, regardless of the well depth, there is always at least one bound solution in one dimension if the well depth is greater than zero, and that as the depth is made progressively larger, the energy levels shall approach those of the infinite square well. For more information see Wikipedia. Note that the “zero” of the wavefunction is shifted, for every wavefunction, at the energy of the corresponding eigenvalue.

  3. Investigate the role played by quantum confinement in this 1D potential well system by varying the width of the well via the “width” slider and observing the spacing of the energy levels of the system.

    Solution

    When the dimension of the confining potential becomes comparable to the de Broglie wavelength of the confined particle then we begin to observe so-called confinement effects. These manifest as a discretization of the bound state energy levels (when the de Broglie wavelength and well width are not comparable the particle behaves essentially like a free particle, with a continuous energy spectrum). As mentioned in task 1, the relationship between the energy levels and the width of the well is En∝1L2E_n \propto \frac{1}{L^2}; consequently, as we decrease the width of the well, the spacing of the energy levels becomes larger and larger. As an application of this effect we note that in a nanostructure the effect of increased confinement (reducing the size of the structure) is to increase the band gap of that structure. This can be leveraged to manipulate the opto-electronic properties of the nanostructure.

    Furthermore, we note that in a classical potential, the lowest energy state would be at the bottom of the well. In quantum mechanics, the lowest energy state has a higher energy than the bottom of the quantum well, as you can see in the figure below. The reason for this energy difference is what is typically called the quantum confinement effect. Observe also how the lowest energy state changes with the width of the potential well.

  4. Keeping the sliders for the width and the height of the well at their default values and selecting the “Probability density” option, investigate the probability of a confined particle to observed outside the potential well.

    Solution

    One can see that even although the potential outside the well is greater than the energy of the particle, there exists a non-zero probability of finding said particle at a position outside the well. This possibility of the particle “tunnelling” through the potential barrier in this way is a purely quantum mechanical effect. In the classical picture of this system one would never expect to observe the particle outside the confines of the potential well.

  5. Please read the background theory section and try to understand the core of the numerical algorithm. Why is the diagonalization of the Hamiltonian matrix key to solve the Schrödinger equation?

    Solution

    As shown in the background theory section, the Schrödinger equation is an eigenvalue equation. In mathematics, diagonalization of the matrix allows us to obtain its eigenvalues and eigenfunctions. You can read more about the theory on Wikipedia.

Interactive visualization

Numerical solution (ψ) of the Schrödinger equation for a 1D quantum well
(click on a state to select it)
Show

Legend

(How to use the interactive visualization)

Controls

There are three sliders you can tune interactively. Two of them adjust the width and depth of the potential well. The zoom factor slider is used to adjust the normalization factor of the wavefunctions. This factor is used for visualization purposes only, to avoid overlap of the wavefunctions whilst simultaneously preventing the wavefunctions from being so narrow that you cannot appreciate their shape.

Interactive figure

In the main visualization part, there are two subplots. The wide figure on the left shows the well potential and the eigenfunctions ψ\psi (or the probability densities ∣ψ∣2|\psi|^2) of different states, plotted at the energy of the corresponding eigenvalues. The narrow figure on the right shows the eigenvalues. You can select either an eigenfunction or an eigenvalue by clicking on it in one of the two subplots. The eigenfunction and corresponding eigenvalue will be highlighted, and the corresponding eigenenergy and value of the index nn will be shown. All other eigenstates will fade out. By clicking the “Show all” button, you can reset the plot and show all states again.