Skip to content

Commit d85d92b

Browse files
committed
Update requirements to use NumPy 2
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.
1 parent 6cf50eb commit d85d92b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cirq-core/cirq/contrib/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ ply>=3.6
44
pylatex~=1.4
55

66
# quimb
7-
quimb~=1.7
7+
quimb>=1.8
88
opt_einsum
9+
kahypar

cirq-core/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ attrs>=21.3.0
44
duet>=0.2.8
55
matplotlib~=3.0
66
networkx>=2.4
7-
numpy~=1.22
7+
numpy>=2.0
88
pandas
99
sortedcontainers~=2.0
10-
scipy~=1.0
10+
scipy~=1.1
1111
sympy
1212
typing_extensions>=4.2
1313
tqdm

0 commit comments

Comments
 (0)