yaleqc/qtcodes

[RotatedDecoder] Not able to add rectangular lattice

Closed this issue · 1 comments

In the tutorial https://github.com/yaleqc/qtcodes/blob/master/tutorials/xxzz/2-fitters.ipynb, the code
decoder = RotatedDecoder({"d":(9,7),"T":1})
tried to add rectangular lattice.
But, it is actually not supported, if you look at rotated_surface.py - it is not able to get a tuple in the loop that creates the lattice:
for j in range(0, self.params["d"], 2):
Where params["d"] is the tuple

Thanks for the issue @ronf6co!

This functionality was added recently!

I'd suggest building from source as per https://github.com/yaleqc/qtcodes#building-from-source, until we publish qtcodes-0.2.0.