https://github.com/christian512/xxz_spinchain
A simulator for different types of Heisenberg XXZ spin chain with spin 1/2-particles.
https://github.com/christian512/xxz_spinchain
spin-chain
Last synced: 23 days ago
JSON representation
A simulator for different types of Heisenberg XXZ spin chain with spin 1/2-particles.
- Host: GitHub
- URL: https://github.com/christian512/xxz_spinchain
- Owner: christian512
- Created: 2018-10-22T11:20:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T14:32:54.000Z (over 6 years ago)
- Last Synced: 2025-05-09T08:51:52.425Z (27 days ago)
- Topics: spin-chain
- Language: Jupyter Notebook
- Size: 117 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XXZ - spin chain simulation
A simulator for different types of Heisenberg XXZ spin chains with spin 1/2-particles written in python. For an easy introduction to simulating the dynamics of a spin chain use the introduction.ipynb notebook. If you want to understand the simulation in more detail you can look through the .py files.# Introduction
This is the simulation written for my bachelor thesis.
This code is intended to serve as a introduction to spin chain simulations and might be not the fastest code to simulate the dynamics of such a quantum system. However it is easy to extend the code with needed functions or add it to a parallel cluster setup.# Code files
The main code is defined in four python-files ( np_helper.py, permutations.py, qm_helper.py, rungekutta.py), which gives the basic functionality. The simulations are written with Jupyter Notebooks. However all notebooks, analysing the dynamics of a system, share the same general setup, which is introduced in a introduction.ipynb.
To evaluate the sturcture of the Hamiltonians (especially their level statistics) you can check levelstatistics.ipynb for an introduction on how to unfold the energy levels of a spin chain and calculate their level spacings.