Skip to content

Commit

Permalink
Daily rc sync to master (#6782)
Browse files Browse the repository at this point in the history
Co-authored-by: PietropaoloFrisoni <pietropaolo.frisoni@xanadu.ai>
Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com>
Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
6 people authored Jan 8, 2025
1 parent e85fff3 commit 5efeffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane/devices/qubit/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def _process_single_shot(samples):
prng_key=prng_key,
)
except ValueError as e:
if str(e) != "probabilities contain NaN":
if "probabilities contain nan" not in str(e).lower():
raise e
samples = qml.math.full((shots.total_shots, len(wires)), 0)

Expand Down

0 comments on commit 5efeffb

Please sign in to comment.