This repo implements Rust code to simulate the experiments for the
Acknowledgements: Massive thanks to the author E. Takou for explaining their paper to me. This code is more of a learning exercise I did based on conversations with the author.
- Install Rust and Cargo using
rustup - Within the directory, run
cargo run --release - The Rust source code is within the
/src/folder, with tests in/tests/.
This should generate the x_ancilla_probs.csv file.
- Have a Python environment with
Numpyandpytestinstalled. - All Python code and tests are under
/python/folder.
Use the notebook building the DEM.ipynb to read the x_ancilla_probs.csv file, and build the DEM by inferring the probabilities main.rs and .csv provided in this repo,
For some math and derivations I did on why, see Notes.md.