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

Restore approx 0 rounding to decomp0 method #4862

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

mtreinish
Copy link
Member

Summary

In #4656 we added rounding to the output of the decomp0 method to handle
a case where differing FP precision on windows environments was causing
an expected result in running two_qubit_cnot_decompose on np.eye(4)
with numpy 1.19.x installed leading to a hard failure in the qasm tests.
This seemed to reliably unblock testing and make unit tests work
reliably. However, that original fix from #4656 was superseded by #4835
which was a fix for a more general issue with the reproducibility of the
decompositions and reverted. Since #4835 has merged we've been seeing an
uptick in the failure rate on the same unitary qasm test that #4656
fixed, so the change in #4835 was not actually sufficient for the
windows case. This commit restores the fix from #4656 to unblock CI and
fix the reproducability of the decompositions across systems.

Details and comments

Fixes #4856

@mtreinish mtreinish requested a review from a team as a code owner August 4, 2020 11:44
In Qiskit#4656 we added rounding to the output of the decomp0 method to handle
a case where differing FP precision on windows environments was causing
an expected result in running two_qubit_cnot_decompose on np.eye(4)
with numpy 1.19.x installed leading to a hard failure in the qasm tests.
This seemed to reliably unblock testing and make unit tests work
reliably. However, that original fix from Qiskit#4656 was superseded by Qiskit#4835
which was a fix for a more general issue with the reproducibility of the
decompositions and reverted. Since Qiskit#4835 has merged we've been seeing an
uptick in the failure rate on the same unitary qasm test that Qiskit#4656
fixed, so the change in Qiskit#4835 was not actually sufficient for the
windows case. This commit restores the fix from Qiskit#4656 to unblock CI and
fix the reproducability of the decompositions across systems.

Fixes Qiskit#4856
@kdk kdk added this to the 0.15 milestone Aug 4, 2020
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.

TestUnitaryCircuit.test_qasm_2q_unitary failing on windows
2 participants