You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The basis state indices sampled by qml.sample are integers.
Actual behavior
The basis state indices sampled by qml.sample are converted to floats within _qubit_device.py::QubitDevice.statistics because the _asarray method is called on them.
This is not impacting correctness in any way, and is an artifact of the strategy we use to track execution for backprop differentiation. So, I'm closing this issue.
Expected behavior
The basis state indices sampled by
qml.sample
are integers.Actual behavior
The basis state indices sampled by
qml.sample
are converted to floats within_qubit_device.py::QubitDevice.statistics
because the_asarray
method is called on them.Additional information
No response
Source code
Tracebacks
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: