- Flex (> 2.6)
- Bison (> 3.0)
- cmake (> 2.8)
- gcc and g++ capable of C++11 standard
- doctest (As a git submodule)
- Python3 (Tested on Python v3.6)
- Swig
- The accompanying paper and BNF specification for the cQASM v1.0 are located in the ./doc directory
- The library itself is located in the ./qasm_flex_bison directory
As the library uses doctest as part of the testing procedure. In order to install (assuming the present working directory is at ./qasm_flex_bison):
git submodule update --init --recursive
mkdir cbuild
cd cbuild
cmake ../library
make or make -j \<Number of processors\>
make test or make test -j \<Number of processors\>
In order to install (assuming the present working directory is at ./qasm_flex_bison):
git submodule update --init --recursive
python3 -m venv env
. ./env/bin/activate
python setup.py install --user
python -m unittest discover -s tests/python -v
In order to clean up the entire source directory when a user installs using the setup.py python script:
make clean