Examples¶
- For a detailed tutorial on how to use the package, check out these papers:
The following Python scripts demonstrate basic and advanced functionality of QuSpin. In many cases, we have chosen to exhibit QuSpin’s functionality, and there may exist a more efficient approach to obtain the same result using QuSpin.
To run the example scripts, besides QuSpin, you have to also install matplotlib (e.g. by using anaconda):
- Parallel computing in QuSpin
- Basic usage
- non-interacting systems
Free Particle Systems: the Fermionic SSH Chain,
download script
Quantised Light-Atom Interactions in the Semi-classical Limit: Recovering the Periodically Driven Atom,
download script
Optical Bloch equations: Lindblad dynamics using the matvec function,
download script
The Spectrum of the Transverse Field Ising Model and the Jordan-Wigner Transformation,
download script
- interacting systems
Fermi-Hubbard model without doubly-occupied sites,
download script
Hexagonal Lattice: Fermi-Hubbard model [courtesy of A. Buyskikh],
download script
The Bose-Hubbard Model on Translationally Invariant Ladder,
download script
Integrability Breaking and Thermalising Dynamics in the 2D Transverse-Field Ising Model,
download script
Many-Body Localization in the Fermi-Hubbard Model,
download script
Adiabatic Control of Parameters in Many-Body Localised Phases,
download script
- Advanced usage
Quantum scars Hamiltonian: spin-1/2 system with Hilbert space constraint,
download script
Spin-1/2 system with sublattice particle consevation,
download script
Applying symmetries to reduce user-imported bases using QuSpin,
download script
Direct Calculation of spectral functions using symmetries,
download script
Majorana Fermions: Spinless Fermi-Hubbard Model,
download script
NEW: Kitaev’s honeycomb Hamiltonian in vortex sectors given by the plaquette operators,
download script
- Algorithms and Routines
Monte Carlo Sampling Expectation Values of Obsevables,
download script
Efficient time evolution using the omp-parallelized expm_multiply_parallel,
download script
Lanczos module: time-evolution and ground state search,
download script
Lanczos module: finite-temperature calculations,
download script
NEW: Liouville-von Neumann Equation using the MKL-enhanced Sparse Matrix Product [courtesy of J. Verlage],
download script
Tutorials¶
- We also have a small number of tutorials in Jupyter notebook format: