Skip to content

Commit 5bc1a90

Browse files
authored
Merge branch 'master' into dynamic-capture-hop-2
2 parents 8e6a167 + 6e23b05 commit 5bc1a90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pennylane/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.41.0-dev2"
19+
__version__ = "0.41.0-dev3"

pennylane/devices/qubit/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _process_single_shot(samples):
330330
prng_key=prng_key,
331331
)
332332
except ValueError as e:
333-
if str(e) != "probabilities contain NaN":
333+
if "probabilities contain nan" not in str(e).lower():
334334
raise e
335335
samples = qml.math.full((shots.total_shots, len(wires)), 0)
336336

0 commit comments

Comments
 (0)