Skip to content

Canonical codewords for HGP and BPC codes

Choose a tag to compare

@mkangquantum mkangquantum released this 09 Sep 19:52
· 96 commits to main since this release
1bd5d17
  • For the HGP and BPC codes, the logical operators lz and lx are now written in the "canonical" form. get_logicals function is added to the HgpCode and BpcCode classes in src/quits/qldpc_code.py. See doc/intro.ipynb for example.

  • A bug is fixed for the BPC code where $p_1$ and $p_2$ polynomials have different lengths. We also found that the convention by QUITS is different from arXiv:2411.03302 (although this does not significantly change the code performance for the examples we previously explored); to match the paper, the transpose of $p_2$ in arXiv:2411.03302 should be inputted to $p_2$ in QUITS. This is as simple as replacing each entry (representing the power of each term in the polynomial) with lift_size minus entry. Check doc/intro.ipynb for example.

Full Changelog : v0.2.0...v0.3.0