qiskit/releasenotes/notes/1.2/fix-bitarray-slice-bits-sho...

12 lines
446 B
YAML

---
upgrade_primitives:
- |
:meth:`.BitArray.slice_bits` and :meth:`.BitArray.slice_shots`
will now raise ``IndexError`` when indices are out of bounds.
They used to raise ``ValueError`` in the case.
- |
:meth:`.BitArray.__getitem__` will now raise ``IndexError``
when indices are out of bounds or the number of dimensions
of indices does not match that of BitArray.
They used to raise ``ValueError`` in the case.