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

Numpy 2.0 will have breaking changes #2399

Open
purva-thakre opened this issue Jun 4, 2024 · 4 comments
Open

Numpy 2.0 will have breaking changes #2399

purva-thakre opened this issue Jun 4, 2024 · 4 comments

Comments

@purva-thakre
Copy link
Contributor

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
Copy link
Member

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

@purva-thakre
Copy link
Contributor Author

purva-thakre commented Jun 20, 2024

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.

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

@purva-thakre
Copy link
Contributor Author

purva-thakre commented Jul 15, 2024

As noted in vprusso/toqito#656 (comment), numpy changed the representation for scalar type in 2.0. These show up in the print outputs.

https://numpy.org/neps/nep-0051-scalar-representation.html

So, the scalar outputs for examples in the documentation are expected to fail for the same reason when we upgrade to the latest numpy release.

@natestemen
Copy link
Member

news from today's cirq community call: the next cirq release will include support for numpy 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants