Infleqtion / qLDPC

Tools for constructing and analyzing quantum low density parity check (qLDPC) codes.
Apache License 2.0
73 stars 8 forks source link

Make `Protograph` a subclass of `numpy.ndarray` #44

Closed perlinm closed 5 months ago

perlinm commented 5 months ago

This allows, for example, to do something like np.kron(protograph_a, protograph_b). As a consequence, LPCode can now use HPGCode.get_matrix_product directly to construct its X/Z-type parity check matrices.