esabo / CodingTheory

A coding theory library for Julia.
https://esabo.github.io/CodingTheory/
BSD 3-Clause "New" or "Revised" License
26 stars 11 forks source link

ToricCode doesn't work for even distances #19

Closed benide closed 9 months ago

benide commented 9 months ago
julia> T = ToricCode(3); all(is_logical(T, T.logs_mat[i, :]) for i in nrows(T.logs_mat))
true

julia> T = ToricCode(4); all(is_logical(T, T.logs_mat[i, :]) for i in nrows(T.logs_mat))
false

Probably related (via copy/paste) to #10.

esabo commented 9 months ago

This is related to #10 since the two share base lattice code.

esabo commented 9 months ago

The problem was a typo in is_logical. Fix pushed to master.