[BUG] [Return-types] Update the output shape of qml.probs
for default.qubit.torch
#1607
Closed
1 task done
Labels
bug 🐛
Something isn't working
Expected behavior
Using
default.qubit.torch
and backpropagation,return qml.probs(0), qml.probs(1)
returns a(2, 2)
shape tensor (just as with TensorFlow).Actual behavior
A
(4,)
tensor is returned forreturn qml.probs(0), qml.probs(1)
in Torch+backprop. This could be due to differing behaviour in theDefaultQubitTorch._asarray()
method.Additional information
No response
Source code
The text was updated successfully, but these errors were encountered: