Hi @SHAN ,
There may be a few things going on here.
-
On one hand it looks like you have a mix of different versions for different devices. I’m not sure how that happened but the safest way to proceed is to create a new virtual environment where you
pip install pennylane pennylane-qiskit
Note that we will release a new version of PennyLane on Monday or Tuesday so you may want to wait until Wednesday to update so that you have the newest version installed. -
Once you have this you can test your code. If the problem persists then you can test using
default.qubit
withdiff_method="parameter-shift"
. Let us know if you need help on how to set this. If this test fails then it means that the code is not “hardware-compatible”. You may need to change the way you’re handling your inputs or the way you’re using the embeddings (see point 3). -
Your issue seems related to the issue mentioned in this other thread. As mentioned in post #6 in that thread, using qml.transforms.broadcast_expand might help you.
Why don’t you give it a try and let us know if this works for you?
I hope this helps!