We will fill up the notebook in the folder notebooks.
It simply requires numpy: you can either install it "globally":
python3 -m pip install numpy opt_einsum networkxor create a virtualenv and install it
virtualenv dev_env
source dev_env/bin/activate
python3 -m pip install numpy opt_einsum networkxThe code is already packaged. First create and activate a virtualenv :
virtualenv dev_env
source dev_env/bin/activateThen install the package in place (dirty but efficient):
python -m pip install -e .You can run the tests using the following command line (requires pytest):
python -m pytest tests/testing.pyIn order to restrict tests to a single simulator you can use the -k option:
python -m pytest tests/testing.py -k DirectYou can cumulate filters. The following line will run test uniform_distrib_n for simulator Direct and restricted to n=3.
python -m pytest tests/testing.py -k "Direct and uniform_distrib_n and 3"We will develop (at least) three simulators, each in its own file (under src/qps)
I strongly recommend to use vscode :)