Exact Diagonalization Basics
Tutorial for the FOR1807 Winter School 2018 in Marburg on basic techniques in Exact Diagonalization. Basic codes are provided that ought to be extended, as explained in the exercise sheet.
This repository contains:
- Three files to create Hamiltonian matrices for three types of models:
- The Transverse Field Ising model on a linear chain, no Sz conservation or momentum conservation is used, hamiltonian_tfi.py.
- The Heisenberg spin-1/2 model with staggered magnetic field on a linear chain, Sz conservation is used, hamiltonian_hb_staggered.py.
- The Heisenberg XXZ model on a linear chain, Sz conservation and momentum conservation are used, hamiltonian_hb_xxz.py.
- A basic implementation of the Lanczos algorithm, creating the T-matrix, algorithm_lanczos.py.
- example scripts using the above functions example_groundstate_energy.py and example_lanczos_convergence.py.
- A set of exercises to be worked on during the hands-on session can be found in the file exercises.pdf.
No installation is required. To use the python scripts, download or clone into the git repository using
$ git clone https://github.com/alexwie/ed_basics.git
$ python example_groundstate_energy.py $ python example_lanczos_convergence.py
The numpy and scipy libraries are required. Please check, whether you can update them to the latest version. If you are having any problems please contact me.
The exercises can be found in the file exercises.pdf.
Alexander Wietek <firstname.lastname@example.org>