From d85d92be9f157672b40deb647ffa5990ba0c16e9 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Sun, 15 Sep 2024 11:46:01 -0700 Subject: [PATCH] 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. --- cirq-core/cirq/contrib/requirements.txt | 3 ++- cirq-core/requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cirq-core/cirq/contrib/requirements.txt b/cirq-core/cirq/contrib/requirements.txt index 9bb5ef009e86..e1665af21f1c 100644 --- a/cirq-core/cirq/contrib/requirements.txt +++ b/cirq-core/cirq/contrib/requirements.txt @@ -4,5 +4,6 @@ ply>=3.6 pylatex~=1.4 # quimb -quimb~=1.7 +quimb>=1.8 opt_einsum +kahypar diff --git a/cirq-core/requirements.txt b/cirq-core/requirements.txt index b526c8354551..87f827961b8e 100644 --- a/cirq-core/requirements.txt +++ b/cirq-core/requirements.txt @@ -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