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

Add missing atol argument to floating-point test #10439

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

jakelishman
Copy link
Member

Summary

The other assertion in this test has the atol parameter, but this one is missing it, which can occasionally lead to off-by-one-bit differences in the complex multiplication outputs.

Details and comments

The test test.python.quantum_info.operators.symplectic.test_sparse_pauli_op.TestSparsePauliOpMethods.test_mul has been flaky in CI since #10264, due to a pre-existing missing atol parameter.

The other assertion in this test has the `atol` parameter, but this one
is missing it, which can occasionally lead to off-by-one-bit differences
in the complex multiplication outputs.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: None Do not include in changelog labels Jul 17, 2023
@jakelishman jakelishman requested review from a team and ikkoham as code owners July 17, 2023 15:00
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core
  • @ikkoham

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5577280832

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 8 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.006%) to 86.018%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 93.76%
crates/qasm2/src/lex.rs 1 90.63%
crates/qasm2/src/parse.rs 6 95.71%
Totals Coverage Status
Change from base Build 5576886076: -0.006%
Covered Lines: 72279
Relevant Lines: 84028

💛 - Coveralls

@mtreinish mtreinish enabled auto-merge July 17, 2023 15:50
@mtreinish mtreinish added this pull request to the merge queue Jul 17, 2023
Merged via the queue into Qiskit:main with commit fafb750 Jul 17, 2023
13 checks passed
mergify bot pushed a commit that referenced this pull request Jul 17, 2023
The other assertion in this test has the `atol` parameter, but this one
is missing it, which can occasionally lead to off-by-one-bit differences
in the complex multiplication outputs.

(cherry picked from commit fafb750)
github-merge-queue bot pushed a commit that referenced this pull request Jul 17, 2023
The other assertion in this test has the `atol` parameter, but this one
is missing it, which can occasionally lead to off-by-one-bit differences
in the complex multiplication outputs.

(cherry picked from commit fafb750)

Co-authored-by: Jake Lishman <[email protected]>
@jakelishman jakelishman deleted the fix-flaky-sparsepauliop-test branch July 17, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog stable backport potential The bug might be minimal and/or import enough to be port to stable type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants