ToricCodeRL
No description available
Install / Use
/learn @phiandre/ToricCodeRLREADME
ToricCodeRL
Contains the code for https://arxiv.org/abs/1811.12338
Quantum error correction for the toric code using deep reinforcement learning
Philip Andreasson, Joel Johansson, Simon Liljestrand, Mats Granath
Code for depolarizing noise: https://github.com/mats-granath/toric-RL-decoder
Training a new RL agent
-
In AllSettings.py, choose the desired parameters for the training. The most important parameter to specify is the size of the training data to be generated.
-
In the main method of GenerateData.py, specify the size of the toric code. Then run GenerateData.py to generate training data.
-
Run run_train.py. The network parameters are saved in TrainedNetwork.h5.
Testing a trained RL agent
-
Specify the name of the network that you want to test, in the constructor of run_ready.py. You can either use your own trained network or one of the three provided networks for sizes 3, 5 and 7.
-
In the Generate method of GenerateData.py, specify the size of the toric code. This size must be the same as the trained network used.
-
In the run method of run_ready.py, insert the error rates that you want to test in the array testProbs. The results are continually printed in the terminal.
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
