unitaryfund / mitiq

Mitiq is an open source toolkit for implementing error mitigation techniques on most current intermediate-scale quantum computers.
https://mitiq.readthedocs.io
GNU General Public License v3.0
344 stars 145 forks source link

Numpy 2.0 will have breaking changes #2399

Open purva-thakre opened 3 weeks ago

purva-thakre commented 3 weeks ago

image

Saw this on Twitter. This issue is a placeholder to read the migration guide for the breaking changes.

https://numpy.org/news/#numpy-20-release-date-june-16

nathanshammah commented 1 week ago

Numpy 2.0 has now been released! Curious about how bad it will be in terms of breaking changes for Mitiq...

purva-thakre commented 1 week ago

During last week's community call, we discussed waiting for the dependabot PR to upgrade to the latest release.

If we have a large number of errors, we also discussed pinning the numpy version to the latest compatible one while we worked on the fixes.

https://github.com/unitaryfund/mitiq/blob/bf82e84410e1805437e15f1d26b0c5be8e8dcb8a/requirements/requirements.txt#L1

We will probably have to wait until most of our dependencies use the latest version of numpy.