Q U A N T U M
T E C H N O L O G Y



Objective: is to demonstrate the concept of machine learning through a classical problem in quantum physics: solving the Schrödinger equation for one-dimensional potential wells using a neural network. To illustrate this concept, a pedagogical neural network is trained on a dataset of various potential energy profiles derived from polynomials for which numerical solutions of the wave functions in the ground state or other bound states can be obtained. After training, the model is used to predict wave functions for previously unseen potentials, showcasing the ability of machine learning to generalize and approximate solutions to complex physical systems.

In this section, we use a neural network model (specifically, a multi-layer perceptron(MLP)) to find the solutions of the Schrödinger equation in 1-dimension.

First, we generate a set of potentials (given by a polynomial \(V(x) = \sum_{i=0}^{k-1} \alpha_i x^i)\) and solve the Schrödinger equation associated with the potential using numerical methods to provide the wave functions and their energies.

The potentials \(V(x)\) we discretise on a segment \((x_\text{min}, x_{max})\) of the length \(L = x_{max} - x_{min}\) into \(N\) points.

We construct a dataset, which is composed of the potentials as features and wave functions as labels. We will denote the \((n_\text{s} \times N)\) array containing \(n_\text{s}\) wave functions \(\psi^i\), \(i=0,\ldots,n_\text{s}\) by \(\boldsymbol{\psi}\), while the \((n_\text{s} \times N)\) array containing \(n_\text{s}\) potentials \(V^i\), \(i=0,\ldots,n_\text{s}\) by \(\boldsymbol{V}\). After the standard splitting of the dataset into a training and evaluation subsets, we train the neural network model such that the loss function is minimised, which we chose to be a mean square error $$\text{MSE}(\psi,\tilde \psi) = \frac{1}{n_s} \sum_{i=0}^{n_s-1} \frac{1}{N} \sum_{j=0}^{N-1}|\psi_i^j-\tilde \psi_i^j|^2,$$ between wave functions \(\psi\) associated to the potentials \(V\) and the predictions \(\tilde\psi\) that given the model:   \(\tilde \psi = \text{MLP}(V) .\)

After the training, we evaluate the thus obtained model on the validation data, which we have put away for this exact occasion.

 Training of the Multi-Layer Perceptron  
  Evaluation of the predictions  
Open notebook

Exercise 2

@tag:notebookLayout Back to content

Exercise 4

v.1.2 [15.06.2023-15.07.2024]. Full-stack programming and site design by M. Sosnova (mariya.v.sosnova@gmail.com)


THE PROJECT IS SUPPORTED BY

Euflag.png logo
Digiq logo
CentraleSupelec logo
University of Central Florida logo