Infleqtion / qLDPC

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

Add `GeneralizedSurfaceCode` #45

Closed perlinm closed 5 months ago

perlinm commented 5 months ago

Higher-dimensional generalizations of the 2D surface/toric codes, as discussed here and here. An n-dimensional surface code is constructed by taking an n-fold tensor product of repetition code 1-chains.

~I would like to check that this GeneralizedSurfaceCode has the correct number of qubits before merging though.~ Added later, here.

@oliverweissl: does this fix #33?

perlinm commented 5 months ago

I'll merge but @oliverweissl feel free to comment + review after the fact

oliverweissl commented 5 months ago

yes this is pretty nice, ill try it out soon! Thanks for the effort!