The psipy
python package wraps around the PSI-Solver and allows you to to access its functionality in python.
- Install the pyd package. Clone the repo, cd into it and type
python setup.py install
- Install the dmd comiler: DMD compiler
- Clone now the psipy repo to your designated directory (first command from below)
git clone --recursive https://github.com/ML-KULeuven/psipy.git
- Built the PSI-Solver:
cd psipy
python psipy/build_psi.py
- Build the python library for the PSI-Solver:
python setup.py install
- Copy paste the final print-out line of this command (starts with export) into your .bashrc. This will add the path to the psipy library to the PYTHONPATH.
python
> import psipy
> a = psipy.S("3")
> b = psipy.S("2")
> c = psipy.add(a,b)
c
should now return 5
.