Skip to content

Commit

Permalink
Warning now using warnings module
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloAndresCQ committed Oct 3, 2023
1 parent 0d0af5c commit 2517ab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytket/extensions/cutensornet/mps/mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ def __init__(
self.zero = value_of_zero

if value_of_zero > self._atol / 1000:
logging.warning(
warnings.warn(
"Your chosen value_of_zero is relatively large. "
"Faithfulness of final fidelity estimate is not guaranteed."
"Faithfulness of final fidelity estimate is not guaranteed.",
UserWarning,
)

self.k = k
Expand Down

0 comments on commit 2517ab5

Please sign in to comment.