Skip to content

Commit

Permalink
Add BitFlipDecoder for quantum ReedMuller codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Sep 27, 2024
1 parent 026e483 commit 42acc71
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/test_ecc_decoder_all_setups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,34 @@
end
end
end

@testset "BitFlipDecoder decoder, good for sparse codes" begin
codes = [
QuantumReedMuller(3),
QuantumReedMuller(4),
QuantumReedMuller(5)
]

noise = 0.001

setups = [
CommutationCheckECCSetup(noise),
NaiveSyndromeECCSetup(noise, 0),
ShorSyndromeECCSetup(noise, 0),
]

for c in codes
for s in setups
for d in [c->BitFlipDecoder(c)]
e = evaluate_decoder(d(c), s, 100000)
@show c
@show s
@show e
@assert max(e...) < noise/4
end
end
end
end
end

@testset "belief prop decoders, good for sparse codes" begin
Expand Down

0 comments on commit 42acc71

Please sign in to comment.