Skip to content

Commit

Permalink
Update requirements to use NumPy 2
Browse files Browse the repository at this point in the history
This updates the minimum NumPy version requirement to 2.0, and updates
a few other packages to versions that are compatible with NumPy 2.0.

Note: NumPy 2.1 was released 3 weeks ago, but at this time, Cirq can
only upgrade to 2.0. This is due to the facts that (a) Google's
internal codebase is moving to NumPy 2.0.2, and not 2.1 yet; and (b)
conflicts arise with some other packages used by Cirq if NumPy 2.1 is
required right now. These considerations will no doubt change in the
near future, at which time we can update Cirq to use NumPy 2.1 or
higher.
  • Loading branch information
mhucka committed Sep 19, 2024
1 parent 6613ca4 commit eb98361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cirq-core/cirq/contrib/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ ply>=3.6
pylatex~=1.4

# quimb
quimb~=1.7
quimb>=1.8
opt_einsum
kahypar
4 changes: 2 additions & 2 deletions cirq-core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ attrs>=21.3.0
duet>=0.2.8
matplotlib~=3.0
networkx>=2.4
numpy~=1.22
numpy>=2.0
pandas
sortedcontainers~=2.0
scipy~=1.0
scipy~=1.1
sympy
typing_extensions>=4.2
tqdm

0 comments on commit eb98361

Please sign in to comment.