mitiq
mitiq copied to clipboard
Check-type validation for ndarray with Numpy 1.22.2
Pre-Report Checklist
- [x] I am running the latest version of mitiq
- [x] I checked to make sure that this bug has not already been reported
Issue Description
Check-type validation raises several errors in [type-arg] for missing ndarray. See discussion in #1118.
How to Reproduce
If useful, provide a numbered list of the steps that result in the error.
Otherwise, just fill out the "Code Snippet" and "Error Output" sections below.
Code Snippet
Include a snippet of the mitiq code that produces the error here.
Error Output
Additionally, please copy and paste the output of the above code here.
Environment Context
Use the about()
function to summarize information on operating system, python version and dependencies.
from mitiq import about
about()
Additional Python Environment Details (pip freeze
or conda list
):
Copy and paste the output of `pip freeze` or `conda list` here.
Removed #1156 from 0.15.0 milestone - solve #1214 in 0.15.0 milestone instead (incremental fix).
Upgrading numpy to a version greater than 1.21 will also fix the one security vulnerability we have open.