Closed isaacdevlugt closed 1 year ago
Thanks @isaacdevlugt! I'm curious, I thought we had a fallback option in PL for devices that didn't support broadcasting 🤔
The problem is that default qubit execution supports broadcasting, just not device differentiation.
Boils down to "preprocessing needs to be able to depend on the circuit and what we want to do to the circuit".
Expected behavior
If a circuit with
diff_method = "adjoint"
is attempted to be broadcasted, the error message should say something to the effect that that isn't supported.Actual behavior
Additional information
Indirectly found from a forum post: https://discuss.pennylane.ai/t/parameter-broadcast-bug/2975/3
Source code
Tracebacks
System information
Existing GitHub issues