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%)
5 existing lines in 2 files now uncovered.61865 of 68769 relevant lines covered (89.96%)
234580.36 hits per line