[BUG] Usingqml.sample(counts=True)
twice (with and without observable) yields incorrect output
#2863
Closed
1 task done
Labels
bug 🐛
Something isn't working
Expected behavior
The output of
qml.sample(counts=True)
inreturn qml.sample(qml.PauliY(0), counts=True), qml.sample(counts=True)
should correspond to raw computational basis state samples.Actual behavior
The output samples correspond to
qml.PauliY(0)
.Additional information
No response
Source code
Tracebacks
No response
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: