Closed dwierichs closed 2 months ago
@dwierichs I re-ran the example and it seems like this bug is no longer present. But I may have missed something -- do you mind double checking, and closing the bug if so?
Hi @josh146.
Did you run it with "default.qubit"
instead of "default.qubit.jax"
? Then I also don't see it anymore.
With "default.qubit.jax"
, which is of course deprecated, it is still there.
Okay! let's close it then
Expected behavior
When using a shot vector, there should be an output shape depending on the length of the shot vector, but not on the particular entries. This should hold for
probs
.In particular, in the code example the outputs should have the same shape.
Actual behavior
The shape differs between a shot vector with 2 equal entries and a shot vector with differing entries.
Additional information
The issue seems to be caused by the different treatment of the two cases by
range
andbin_size
in the shot vector logic.Source code
Tracebacks
System information
Existing GitHub issues