Closed Qottmann closed 2 years ago
This is indeed just not implemented yet. But I have been working on the templates a bit. Let me get back to you tomorrow with a fix :)
And yes, in some cases using broadcasting this way will speed up your QNode :)
The above mentioned #2810 introduces broadcasting to templates. Note that the speedup only can be achieved once #2627 is merged! If it is required immediately, one could checkout the branch of #2627 and copy the changes to AmplitudeEmbedding
over to that branch (as they are quite minimal). Otherwise, a bit more patience would be required, I'm afraid :grimacing:
I think this should be resolved now and can be closed? @Qottmann
Not sure if this is a bug or just not implemented yet. I want to use parameter broadcasting with different initial states via
qml.AmplitudeEmbedding
. Here is an example without parameter broadcasting:I would expect the following to work with parameter broadcasting:
but I get
Is there an easy fix for that @dwierichs ? And am I right in assuming this does some sort of vectorization under the hood and I can expect some speed ups for that? This would be nice for a QML demo, since for-looping through many state examples takes quite a lot of time.