Python library for computing exact diagonalizations of hard-core bosons and fermionic systems.
To use the library you need the following set of packages:
- Numpy
- Scipy
- Numba (if you cannot install Numba then you could remove all
@njit()
decorators above the functions, but the scripts will run much slower)
-
To build a full Hamiltonian use the function
build_mb_hamiltonian
in modulebuild_mb_hamiltonian.py
. The function automatically takes care of writing the Hamiltonian in a dense or sparse format in the most efficient way. -
To compute the expected values of the matrices P and D, you have to go to functions
compute_P
andcompute_D
in modulecompute_expected.py
.