Open erick-xanadu opened 3 months ago
Hello @erick-xanadu, thank you for bringing this issue to our attention, we will look into this. Do you have any recommendations that you want to prescribe to help us keep these dependencies in sync?
Hi @virajvchaudhari, we are still working on it. We have an idea of how to fix it, but we want to wait until after some design changes happen on our repository. Will keep you updated. Thanks!
Describe the bug Hi,
I am working on Catalyst which is JIT compiler for PennyLane. We have an integration with Amazon Braket that allows users to write quantum circuits expressed as PennyLane's tapes and generate OpenQASM which is then sent to the Amazon Braket for execution.
Catalyst differs a little bit from PennyLane. In particular, Catalyst uses a TOML file to specify which gates and observables are available on the target device. For example, this is a TOML file we use for testing a test device.. PennyLane, on the other hand uses the
operations
andobservables
property on the instance of the device being executed. This sometimes leads to a conflict that may result in errors.In particular
amazon-braket-pennylane-plugin
s 1.27.1 release contained a modification toBraketQubitDevice
's observables property (patch inlined below):The commit removes
SProd
andSum
observables from the list of supported observables by the device. However,SProd
andSum
were not removed Catalyst's TOML file which corresponds to the local braket simulator. And this lead to errors.The error went away with the release of
amazon-braket-pennylane-plugin
version 1.27.2 which added back theSum
andSProd
observables to the list of supported observables. However, it would be nice if we could guarantee thatamazon-braket-pennylane-plugin
's list of supported observables and operations doesn't go out of sync with Catalyst's.To reproduce pip install pennylane-catalyst amazon-braket-pennylane-plugin==1.27.1
will produce the following error:
Expected behavior It should not throw the
CompileError
and return instead the following values:System information A description of your system. Please provide: