Canonical codewords for HGP and BPC codes
-
For the HGP and BPC codes, the logical operators lz and lx are now written in the "canonical" form.
get_logicalsfunction is added to theHgpCodeandBpcCodeclasses 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) withlift_sizeminus entry. Check doc/intro.ipynb for example.
Full Changelog : v0.2.0...v0.3.0