Skip to content

Commit dcfa293

Browse files
committed
small QDistRnd fix
1 parent fe7e2cc commit dcfa293

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Quantum/weight_dist.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,10 @@ function random_information_set_minimum_distance_bound!(::HasNoGauges, ::IsCSS,
825825
upperx, foundx = random_information_set_minimum_distance_bound!(HasNoGauges(), IsCSS(), HasLogicals(), S, :X, dressed, max_iters, verbose)
826826
upperz, foundz = random_information_set_minimum_distance_bound!(HasNoGauges(), IsCSS(), HasLogicals(), S, :Z, dressed, max_iters, verbose)
827827
if upperx <= upperz
828+
S.u_bound = upperx
828829
return upperx, foundx
829830
else
831+
S.u_bound = upperz
830832
return upperz, foundz
831833
end
832834
else

0 commit comments

Comments
 (0)