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

Fix handling of numpy arrays for indices in marginal_distribution #8288

Merged
merged 3 commits into from
Jul 25, 2022

Commits on Jul 1, 2022

  1. Fix handling of numpy arrays for indices in marginal_distribution

    This commit fixes an issue with the marginal_distribution() function
    where it would previously error if a numpy arrray of ints was passed in
    for the indices parameter. This was caused by the input validation
    looking for empty input by checking `not indices` which isn't valid for
    numpy arrays. This commit fixes this by adjusting the check for
    empty lists to work with any sequence input.
    
    Fixes Qiskit#8283
    mtreinish committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    c22f5f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. Update releasenotes/notes/fix-numpy-indices-marginal-dist-45889e49ba3…

    …37d84.yaml
    
    Co-authored-by: Jim Garrison <jim@garrison.cc>
    mtreinish and garrison authored Jul 25, 2022
    Configuration menu
    Copy the full SHA
    ff956bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a0152f View commit details
    Browse the repository at this point in the history