Closed isaacdevlugt closed 9 hours ago
I'd bet the issue is that the features are treated as a hyperparameter, not as a numeric array. So we don't convert it to numpy, and any non-backprop device can't handle things that aren't numpy.
Closing as this was resolved in https://github.com/PennyLaneAI/pennylane/pull/6021
Expected behavior
I expect that a circuit running on
default.qubit
orlightning.qubit
, where the circuit containsBasisEmbedding
, should work withjit
.Actual behavior
Using
lightning.qubit
fails.Additional information
I think this will also affect
BasisState
Source code
Tracebacks
System information
Existing GitHub issues