Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Dec 20, 2024
1 parent 597ed6e commit 87c11bd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ function initialize_decoder(c, maxiter, bpmethod, errorrate, osdmethod, osdorder
else
error("Unknown decoder type.")
end

return BasePyLDPCDecoder(c, H, Hx, Hz, size(Hx, 1), size(Hz, 1), fm, pyx, pyz)
return GenericPyLDPCDecoder(c, H, Hx, Hz, size(Hx, 1), size(Hz, 1), fm, pyx, pyz)
end

function PyBeliefPropDecoder(c; maxiter=nothing, bpmethod=nothing, errorrate=nothing)
Expand Down Expand Up @@ -81,10 +80,8 @@ end
function batchdecode(d::GenericPyLDPCDecoder, syndrome_samples)
row_x = @view syndrome_samples[:,1:d.nx]
row_z = @view syndrome_samples[:,d.nx+1:end]

guess_z_errors = PythonCall.PyArray(d.pyx.decode_batch(row_x))
guess_x_errors = PythonCall.PyArray(d.pyz.decode_batch(row_z))

return hcat(guess_x_errors, guess_z_errors)
end

Expand Down

0 comments on commit 87c11bd

Please sign in to comment.