Infleqtion / qLDPC

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

Change conventions for `CSSCode.matrix` #114

Closed perlinm closed 1 month ago

perlinm commented 1 month ago

(... yet again)

The motivation here is be consistent in having n-qubit operators represented by 2n-bit strings in which the first (last) n bits indicate the support of X-type (Z-type) operators. In order to extract, say, syndrome = parity_check_matrix @ error for a n-qubit error operator, we therefore need the rows of the parity check matrix to look like [z_support|x_support].