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 f1538dd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 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,33 @@
end
end
end

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

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, maxiter=10)]
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 f1538dd

Please sign in to comment.