Skip to content
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

Merged
merged 4 commits into from
Jun 23, 2020
Merged

numpy>=1.17,<=1.18 #4599

merged 4 commits into from
Jun 23, 2020

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Jun 22, 2020

Some tests are failing recently:
Screen Shot 2020-06-22 at 12 46 22 PM
Screen Shot 2020-06-22 at 12 46 46 PM

@mtreinish suggested that it could be numpy 0.19, released on June 20th. While investigating the issue, pinning the version.

requirements.txt Outdated Show resolved Hide resolved
Luciano Bello added 2 commits June 22, 2020 15:01
@1ucian0 1ucian0 marked this pull request as ready for review June 22, 2020 20:04
@1ucian0 1ucian0 requested a review from a team as a code owner June 22, 2020 20:04
Copy link
Member

@mtreinish mtreinish left a 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

@mtreinish
Copy link
Member

I opened an issue for tracking this here: #4606 we'll need to get this sorted before the next release.

@mtreinish mtreinish merged commit 6aca34a into Qiskit:master Jun 23, 2020
This was referenced Jul 1, 2020
mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Jul 7, 2020
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
1ucian0 pushed a commit that referenced this pull request Jul 12, 2020
* 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>
faisaldebouni pushed a commit to faisaldebouni/qiskit-terra that referenced this pull request Aug 5, 2020
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

* !=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants