Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BitArray.{slice_bits,slice_shots,__getitem__} raise IndexError when indices are not valid (backport #12755) #12844

Merged
merged 2 commits into from
Jul 29, 2024

Commits on Jul 29, 2024

  1. Make BitArray.{slice_bits,slice_shots,__getitem__} raise `IndexErro…

    …r` 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 bfd2eea)
    
    # Conflicts:
    #	qiskit/primitives/containers/bit_array.py
    t-imamichi authored and mergify[bot] committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    f02c214 View commit details
    Browse the repository at this point in the history
  2. Update bit_array.py

    ElePT authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    d9c55aa View commit details
    Browse the repository at this point in the history