This project aims to simulate and optimize the six mode KLM controlled sign flip gate to achieve higher output fidelity for preparing the state
Makes sure to install the dependencies using the following command:
pip install -r requirements.txt
You can execute the optimizations by running the trainer.py
script.
Example
python trainer.py --output-dir ./results --starting-s-star 0.0650 --ending-s-star 0.0850 --enhanced --use-jit
This script will save the generated losses and weights in the specified output directory.
The plots can be generated using the script make-plots.py
.
Example
python make_plots.py --input-dir ./results