Skip to content

Commit

Permalink
improve decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Sep 26, 2024
1 parent a5cbdd5 commit fb1e0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ecc/decoder_pipeline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ function create_lookup_table(code::Stabilizer)
lookup_table
end;

function decode(d::TableDecoder, syndrome_sample)
d.lookup_buffer .= syndrome_sample # TODO have this work without data copying, by supporting the correct types, especially in the batch decode case
function decode(d::TableDecoder, syndrome_sample::AbstractVector{Bool})
copyto!(d.lookup_buffer, syndrome_sample)
return get(d.lookup_table, d.lookup_buffer, nothing)
end

Expand Down

0 comments on commit fb1e0d8

Please sign in to comment.