push
github
Make `BitArray.{slice_bits,slice_shots,__getitem__}` raise `IndexError` when indices are not valid (backport #12755) (#12844) * Make `BitArray.{slice_bits,slice_shots,__getitem__}` raise `IndexError` when indices are not valid (#12755) * Make BitArray.{slice_bits,slice_shots} raise IndexError when indices are out of bounds * update __getitem__ (cherry picked from commit bfd2eea48) # Conflicts: # qiskit/primitives/containers/bit_array.py * Update bit_array.py --------- Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
7 of 7 new or added lines in 1 file covered. (100.0%)
11 existing lines in 3 files now uncovered.61847 of 68769 relevant lines covered (89.93%)
234023.55 hits per line