-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Noisy circuits demo doesn't work when run on Braket devices #309
Comments
@licedric this might be a dimensional issue 🤔 For some reason, either intentional or not, the Braket device is receiving an Either it is something like |
I wonder if this ties in with the other dimensional issue you mentioned? |
Most probably - I think somehow |
Potentially yeah. This could be because Either way, if this is the case this is definitely a bug. Gate parameters should always be passed as scalars to devices. |
Hi @licedric, thanks again for catching this! 🙂 The main pain point is indeed that we're passing a numpy array to the operation. The fact that Tried two other devices, the Qiskit and Qulacs devices ( As Josh noted, however, we'd like to pass scalars to the operations. Changing from Doing this uncovered an edge case with the optimizer and an |
#312 has been added to the This issue draws our attention to further addressing the following:
|
Closing as issue seems to be resolved. If it persists on different envs, please feel free to reopen 🙂 |
Issue description
In the noisy circuits demo, I get an unexpected error in the last cell when replacing the device with
dev = qml.device('braket.local.qubit', backend="braket_dm", wires=2)
There are other unrelated errors in other cells because the Braket device doesn't implement
dev.state
, which is outside the scope of this issue.Expected behavior: (What you expect to happen)
No errors in the last cell.
Actual behavior: (What actually happens)
Error parsing ndarray; see below.
System information: (include your operating system, Python version, Sphinx version, etc.)
Run on Amazon Braket notebook instance, Python version 3.7.10, PennyLane version 0.16.0
Source code and tracebacks
The text was updated successfully, but these errors were encountered: