Infleqtion / qLDPC

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

Change equality check between ClassicalCode instances #46

Closed perlinm closed 5 months ago

perlinm commented 5 months ago

Per this comment, ClassicalCodes.__eq__ now checks exact equality between code instances, while ClassicalCode.equiv checks whether they are "equivalent", meaning that the two codes contain each other (or: have the same set of code words).

mittaltushant commented 5 months ago

Yes, it makes sense; having both is good.