This is the code for a small experiement to be conducted on the IBM 5Q chip of the IBM Quantum Experience, whose access to is needed in order to run the experiment. It also uses the Python SDK developed especially by IBM for this. Some installation is needed, see below or follow the previous links.
The experiment consist in testing a small quantum error detecting code, and comparing its performance on several circuits to the unencoded versions of them.
For more information you can read : Gottesman2016, Vuillot2017.
The Jupyter notebook Demonstration_Fault_Tolerance.ipynb contains code to redo yourself the experiment. The folder ExperimentfromPaper contains the data (RawDatafromPaper.py) and a Jupyter notebook (RedoPaper.ipynb) to redo the analysis from the paper Vuillot2017. The folder tools/ contains tool functions for the experiement in the file Experiment_tools.py. The folder data/ contains text files for storing the ids of all your experiments.
pip install -r requires.txt