Skip to content

MikeVasmer/hybrid-decoder

Repository files navigation

Decoder for hybrid color-toric codes

Implementation of the decoding algorithm for two-dimensional hybrid color-toric codes described in arXiv:2112.01446

Build

  • mkdir build && cd build
  • cmake ../ -DCMAKE_BUILD_TYPE=Release
  • make

Usage

  • Use gen_input.py in input to generate a parameter file
    • L is linear lattice length for an LxL torus (must be a multiple of three)
    • eP is phase-flip error probability
    • uP is the morphing (unencoding) probability
    • disorder is the number of lattices to generate for each uP
  • Use monte_carlo.py to run experiments using a parameter file
  • Also included example script for running on a cluster (array-job.sh)

Notes

To only morph red ball-like regions, set rOnly to true in main.cpp

Tests

  • cd build
  • cmake ../ -DCMAKE_BUILD_TYPE=Debug
  • make
  • make test

Software

This code makes use of Blossom V and Boost

About

Decoding algorithm for hybrid color-toric codes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published