Skip to content

Updates for scipy, numpy 2, and Python 3.12 #757

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

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

lneuhaus
Copy link
Collaborator

@lneuhaus lneuhaus commented May 13, 2025

Context:
scipy updated to version 1.14.0 on June 24, 2024, and made some breaking changes to their API.

Description of the Change:
This PR updates scipy.integrate.simps to scipy.integrate.simpson when using newer scipy versions, such that things continue working. It is also explicit about the creation of ragged numpy arrays. It furthermore fixes a number of CI issues, to get most test pipelines passing again.

Benefits:
Get all the latest features and bugfixes in newer scipy.

Possible Drawbacks:
N/A

Related GitHub Issues:
N/A

@lneuhaus lneuhaus changed the title Updates for scipy 2 Updates for scipy, numpy 2, and Python 3.12 May 13, 2025
@lneuhaus lneuhaus marked this pull request as ready for review May 13, 2025 22:25
@@ -1,15 +1,15 @@
networkx==2.7.1
numba==0.55.1
numpy==1.21.5
numpy==1.26.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be further along?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no clue really. I guess we could manually bump it, but also I suspect dependabot will do it for us?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just the == that concerns me. I would manually replace all of the versions here with whatever gets installed via setup.py.

@lneuhaus lneuhaus requested a review from a team May 16, 2025 13:38
@heltluke
Copy link
Contributor

Reverted some cosmetic changes, just to make this PR touch fewer files. I think we could easily run black -l 100 strawberryfields/ tests/ in a separate PR.

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

Successfully merging this pull request may close these issues.

2 participants