Skip to content

Commit

Permalink
fix benchmarks.jl for evaluate_decoder (#227)
Browse files Browse the repository at this point in the history
* fix benchmarks.jl for evaluate_decoder

* fixup
  • Loading branch information
Krastanov authored Jan 25, 2024
1 parent ab74d25 commit 995576f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ end
if V >= v"0.8.20"

using QuantumClifford.ECC
import PyQDecoders, LDPCDecoders

SUITE["ecc"] = BenchmarkGroup(["ecc"])
SUITE["ecc"]["evaluate_decoder"] = BenchmarkGroup(["evaluate_decoder"])
Expand All @@ -152,7 +153,7 @@ for (cs, c) in [("shor",Shor9()), ("toric8",Toric(8,8))]
[("table",TableDecoder(c)), ("bp",BeliefPropDecoder(c)), ("pybp",PyBeliefPropDecoder(c))]...,
(isa(c,Toric) ? [("pymatch",PyMatchingDecoder(c))] : [])...]
for (ss, s) in [("comm",CommutationCheckECCSetup(0.01)), ("naivesyn",NaiveSyndromeECCSetup(0.01,0)), ("shorsyn",ShorSyndromeECCSetup(0.01,0))]
SUITE["ecc"]["evaluate_decoder"]["$(cs)_$(ds)_$(ss)"] = @benchmark evaluate_decoder($d, $s, 1000)
SUITE["ecc"]["evaluate_decoder"]["$(cs)_$(ds)_$(ss)"] = @benchmarkable evaluate_decoder($d, $s, 1000)
end
end
end
Expand Down

0 comments on commit 995576f

Please sign in to comment.