Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Jan 26, 2024
1 parent d034259 commit b6290cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/randoms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ end

function nemo_inv(a, n)::Matrix{UInt8}
inverted = inv(Nemo.matrix(Nemo.GF(2),a))
return UInt8.(inverted.==1) # maybe there is a better way to do the conversion
return collect(UInt8.(inverted.==1)) # maybe there is a better way to do the conversion
end

"""Sample (h, S) from the distribution P_n(h, S) from Bravyi and Maslov Algorithm 1."""
Expand Down

0 comments on commit b6290cf

Please sign in to comment.