Skip to content

Commit

Permalink
chore: remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Dec 7, 2024
1 parent e0120ab commit 549b504
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/qibocal/protocols/two_qubit_interaction/chsh/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Auxiliary functions to run CHSH protocol."""

from qibo.config import log

READOUT_BASIS = ["ZZ", "ZX", "XZ", "XX"]


Expand All @@ -22,5 +20,4 @@ def compute_chsh(frequencies, basis, i):
try:
return chsh / nshots
except ZeroDivisionError:
log.warning("Zero number of shots, returning zero.")
return 0

0 comments on commit 549b504

Please sign in to comment.