The folder flagbridgeQEC contains the source code. The pdf file master_thesis_derks.pdf is the thesis.
To run the files several packages need to be installed. If pip is installed all the required packages can be installed by typing
$ pip install -r requirements.txt
This module can be installed by typing
$ pip install -r requirements.txt
The folder flagbridgeqec contains 8 folders:
- circuits: this folder contains the circuits. The sequential circuits are in seq_circuits.py and syndrome_extraction_circuits.py. The optimized circuits are in folders and written in qpic files. The file read_test_circuits.py read the qpic files.
- datasets: contains the datasets used to find the upper bounds and train the hld decoder.
- neural_networks: code to train and test the hld neural network decoder and code to plot results.
- runs: results for the circuits from previous work
- runs_optimized: results for the optimized circuits.
- sim: code to run the circuits. Split up in code to run the optimized circuits and the sequential circuits. check_ft1.py can be used to test if the circuits are fault-tolerant.
- tests: pytest for testing if the circuits are fault-tolerant and for testing the look-up table decoder.
- utils: for convenience.