Skip to content

Commit

Permalink
Hotfix: qec_util.performance.sample_failures (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSerraPeralta authored Sep 11, 2024
1 parent d8ab160 commit 0737b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qec_util/performance/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def sample_failures(
)
batch_size = estimated_max_samples / 10
batch_size = max([batch_size, 1]) # avoid batch_size = 0
batch_size = min([batch_size, 50_000]) # avoid batch_size = np.inf
batch_size = batch_size if batch_size != np.inf else 200_000
batch_size = int(batch_size) # int(np.inf) raises an error

# start sampling...
Expand Down

0 comments on commit 0737b86

Please sign in to comment.