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

fix sample pulse normalization #4613

Merged
merged 2 commits into from
Jun 27, 2020

Conversation

taalexander
Copy link
Contributor

Summary

Should partially resolve #4599. I'm not sure what changed in numpy 1.19 to cause this, but this appears to be a resolution.

Details and comments

@mergify mergify bot merged commit b4532d3 into Qiskit:master Jun 27, 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
Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
@1ucian0 1ucian0 added the mod: pulse Related to the Pulse module label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: pulse Related to the Pulse module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants