We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e6a167 + 6e23b05 commit 5bc1a90Copy full SHA for 5bc1a90
pennylane/_version.py
@@ -16,4 +16,4 @@
16
Version number (major.minor.patch[-label])
17
"""
18
19
-__version__ = "0.41.0-dev2"
+__version__ = "0.41.0-dev3"
pennylane/devices/qubit/sampling.py
@@ -330,7 +330,7 @@ def _process_single_shot(samples):
330
prng_key=prng_key,
331
)
332
except ValueError as e:
333
- if str(e) != "probabilities contain NaN":
+ if "probabilities contain nan" not in str(e).lower():
334
raise e
335
samples = qml.math.full((shots.total_shots, len(wires)), 0)
336
0 commit comments