-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
numpy>=1.17,<=1.18 #4599
numpy>=1.17,<=1.18 #4599
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, this PR adds the relief valve for terra to land changes in the short term, but we need to get to the bottom of what changed in numpy 1.19.0. Lets open a terra issue (which may end up being a numpy issue after some debug) so we can track this and work to remove this cap (or make it a single version exclude in the setup.py
I opened an issue for tracking this here: #4606 we'll need to get this sorted before the next release. |
Since Qiskit#4613 is fixed it looks like we can remove the CI pin for the latest numpy release. Failures with numpy on test_qasm_2q_unitary haven't been reproducible locally, so there shouldn't be a blocker anymore to running tests with the latest numpy release. This reverts commit 6aca34a. Fixes Qiskit#4606
* Revert "Pin numpy version < 1.19.0 to unblock CI (#4599)" Since #4613 is fixed it looks like we can remove the CI pin for the latest numpy release. Failures with numpy on test_qasm_2q_unitary haven't been reproducible locally, so there shouldn't be a blocker anymore to running tests with the latest numpy release. This reverts commit 6aca34a. Fixes #4606 * Round result from decomp0 The root cause of the issue causing the failure on windows for 2q unitary decomposition of an identity matrix was a rounding issue. The U0r matrix being returned from decomp0() was [[1.00000000e+00+0.00000000e+00j 2.77555756e-17-2.77555756e-17j] [2.77555756e-17-2.77555756e-17j 1.00000000e+00+0.00000000e+00j]] instead of the expected [[1+0j + 0+0j] [0+0j + 1+0j]] this throws off later stages that use the decomposition result. This commit fixes this issue by rounding the output matrices from decomp0() to 13 decimal places (which is what is used for atol and rtol other places in the module) to avoid this type of rounding error. Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
Some tests are failing recently: `test_qasm_2q_unitary` and `test_pulse_limits` It appears to be caused by the recent numpy 1.19.0 release, which was released released on June 20th 2020. This commit unblocks CI by pinning the numpy version so we can continue to make progress while investigating the cause of the issue. * numpy>=1.17,<=1.18 * constraints.txt * !=
Some tests are failing recently:
![Screen Shot 2020-06-22 at 12 46 22 PM](https://user-images.githubusercontent.com/766693/85316568-f4934480-b48a-11ea-8fc1-5624c8d16d18.png)
![Screen Shot 2020-06-22 at 12 46 46 PM](https://user-images.githubusercontent.com/766693/85316571-f5c47180-b48a-11ea-958b-c164b55250ca.png)
@mtreinish suggested that it could be numpy 0.19, released on June 20th. While investigating the issue, pinning the version.