A python virtual environment is recommended. Example using Linux:
$ git clone https://github.com/pedersor/fourier_grid_hamiltonian.git
$ cd fourier_grid_hamiltonian
$ python3 -m pip install pip --upgrade
$ python3 -m pip install .
Note that this code uses Cython, so the above installation through setup.py
is recommended.
Please check examples/example.py
for a simple example using the Poschl-Teller potential.