From 0c4b15dd36c26618413e27cde11022e764781616 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 10 Nov 2023 17:31:29 -0500 Subject: [PATCH] Revert "Relax CI constraint on `numpy<1.25` (#11020)" Removing the restriction on the numpy version has introduced some non-determinism to some of the unitary synthesis tests that is causing a flaky failure in CI. This commit reverts the version cap removal to unblock CI. In parallel we should debug the source of the instability causing the test to fail so we can run CI using the latest version of numpy. This reverts commit fb8a69df2ffa99bd399b4c0365f875ae4b9f70f6. --- constraints.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/constraints.txt b/constraints.txt index 5d9636415de9..07b9862e426c 100644 --- a/constraints.txt +++ b/constraints.txt @@ -2,6 +2,11 @@ # 4.0+. The pin can be removed after nbformat is updated. jsonschema==3.2.0 +# Numpy 1.25 deprecated some behaviours that we used, and caused the isometry +# tests to flake. See https://github.com/Qiskit/qiskit-terra/issues/10305, +# remove pin when resolving that. +numpy<1.25 + # Scipy 1.11 seems to have caused an instability in the Weyl coordinates # eigensystem code for one of the test cases. See # https://github.com/Qiskit/qiskit-terra/issues/10345 for current details.