qiskit/releasenotes/notes/1.1/obs-array-coerce-0d-28b192f...

6 lines
268 B
YAML

---
fixes:
- |
Fixed `qiskit.primitives.containers.observables_array.ObservablesArray.coerce()`
so that it returns a 0-d array when the input is a single, unnested observable.
Previously, it erroneously upgraded to a single dimension, with shape `(1,)`.