Skip to content

A collection of jupyter notebooks for quantum mechanics tutorials.

License

Notifications You must be signed in to change notification settings

Taylor-96/quantum-mechanics

 
 

Repository files navigation

Interactive Notebooks: Quantum Mechanics and Computational Materials Science

Voila test

Introduction

This is a repository for tutorials in quantum mechanics and computational materials science. Jupyter notebooks are converted into interactive web applications. Professors can use them to demonstrate knowledge in the classroom. Students can also use them for self-learning.

example example

  • Try on Materials Cloud (fast, a few seconds to load) Materials Cloud Tool osscar-qmcourse

  • Try on BinderHub (can take > 1 minute to load) badge

Local installation

One can clone this repository and install all the required packages locally. To do so (ideally in a fresh python virtual environment, to reduce risks of version clashes of some of the dependencies), run the following commands:

git clone https://github.com/osscar-org/quantum-mechanics.git
cd quantum-mechanics
pip install -r requirements.txt

Then, to view the notebooks in the form of a web application, you can type the following command in the terminal:

voila --template=osscar --VoilaConfiguration.enable_nbextensions=True notebook/

This will start the voila server and then open your default browser, where you can use the web application.

Content

Section 1: Quantum Mechanics

Here are the tutorials to demonstrate numerical solution for 1D Schrödinger equation.

Name Description Notebook links Binder Materials Cloud
One Quantum Well The solution for 1 quantum well One Quantum Well Binder Materials Cloud Tool osscar-qmcourse
Two Quantum Wells The solution for 2 quantum wells Two Quantum Wells Binder Materials Cloud Tool osscar-qmcourse
Asymmetric Well Avoided crossing in an asymmetric well Asymmetric Well Binder Materials Cloud Tool osscar-qmcourse
Shooting method Shooting method with Numerov algorithm Shooting method Binder Materials Cloud Tool osscar-qmcourse
SOFT Split operator Fourier transform method SOFT Binder Materials Cloud Tool osscar-qmcourse
MSOFT Multiple Split operator Fourier transform method SOFT Binder Materials Cloud Tool osscar-qmcourse

Section 2: Band Theory of Crystals

Here are the tutorials to demonstrate the band theory of crystal systems.

Name Description Notebook links Binder Materials Cloud
FFT and Planewaves Fourier Transforms and Plane-Wave Expansions FFT and Planewaves Binder Materials Cloud Tool osscar-qmcourse
Free Electron Free-electron Bands in a Periodic Lattice Free Electron Binder Materials Cloud Tool osscar-qmcourse
Density of States Density of States (DOS) Density of States Binder Materials Cloud Tool osscar-qmcourse
Pseudopotentials Norm-conserving pseudopotentials Pseudopotentials Binder Materials Cloud Tool osscar-qmcourse
Brillouin Zone Brillouin Zone Brillouin Zone Binder Materials Cloud Tool osscar-qmcourse

Section 3: Molecule and Lattice Vibration

Name Description Notebook links Binder Materials Cloud
Phonon 1D lattice vibration for one dimensional system Phonons 1D Binder Materials Cloud Tool osscar-qmcourse
Phonon 2D lattice vibration for two dimensional systems Phonon 2D Binder Materials Cloud Tool osscar-qmcourse
Molecular Vibrations introduce to molecular vibrations Molecular Vibration Binder Materials Cloud Tool osscar-qmcourse

Section 4: Molecular Dynamics

Name Description Notebook links Binder Materials Cloud
Verlet Integration Verlet integration Verlet Integration Binder Materials Cloud Tool osscar-qmcourse

Section 5: Statistical Mechanics

Name Description Notebook links Binder Materials Cloud
Metropolis Monte Carlo Metropolis-Hastings Monte Carlo Metropolis Monte Carlo Binder Materials Cloud Tool osscar-qmcourse
Monte Carlo Integration Monte Carlo Integration Monte Carlo Integration Binder Materials Cloud Tool osscar-qmcourse
Ising Model Ising Model Ising Model Binder Materials Cloud Tool osscar-qmcourse

How to contribute

If you would like to contribute a new notebook to OSSCAR, see the guide to contributing on our website, where you can also find an example notebook template.

How to cite

When using the content of this repository, please cite the following article:

D. Du, T. Baird, S. Bonella and G. Pizzi, OSSCAR, an open platform for collaborative development of computational tools for education in science, Computer Physics Communications, 282, 108546 (2023). https://doi.org/10.1016/j.cpc.2022.108546

Acknowledgements

We acknowledge support from the EPFL Open Science Fund via the OSSCAR project.

About

A collection of jupyter notebooks for quantum mechanics tutorials.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 81.8%
  • Python 18.2%