Implementation of the decoding algorithm for two-dimensional hybrid color-toric codes described in arXiv:2112.01446
mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make
- Use
gen_input.py
in input to generate a parameter fileL
is linear lattice length for an LxL torus (must be a multiple of three)eP
is phase-flip error probabilityuP
is the morphing (unencoding) probabilitydisorder
is the number of lattices to generate for eachuP
- Use
monte_carlo.py
to run experiments using a parameter file - Also included example script for running on a cluster (
array-job.sh
)
To only morph red ball-like regions, set rOnly
to true
in main.cpp
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Debug
make
make test