You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @josh146. Actually, all noise channels have this error, thus maybe the solution can be on the Channel base class. I have added the code sample to reproduce the error.
I plan on making a PR for this issue later this week. 😄
Issue description
Description of the issue - include code snippets and screenshots here
if relevant. You may use the following template below
Expected behavior: Raise an error showing that the probability (or sum of probabilities) are not compatible with the expected channel behaviour.
Actual behavior: Raises a
RuntimeWarning
for an invalid value encountered in sqrt.Reproduces how often: 100%
System information:
Name: PennyLane
Version: 0.16.0.dev0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: /home/nahum/Documents/pennylane-training/pen-env/lib/python3.6/site-packages
Requires: scipy, toml, appdirs, autoray, semantic-version, networkx, autograd, numpy
Required-by: PennyLane-qiskit
Platform info: Linux-5.4.0-73-generic-x86_64-with-debian-buster-sid
Python version: 3.6.8
Numpy version: 1.19.5
Scipy version: 1.5.4
Installed devices:
Source code and tracebacks
The text was updated successfully, but these errors were encountered: