Skip to content

Relax tolerance of UnitaryOverlap tests#11069

Merged
mtreinish merged 1 commit into
Qiskit:mainfrom
jakelishman:fix-flaky-unitary-overlap
Oct 20, 2023
Merged

Relax tolerance of UnitaryOverlap tests#11069
mtreinish merged 1 commit into
Qiskit:mainfrom
jakelishman:fix-flaky-unitary-overlap

Conversation

@jakelishman
Copy link
Copy Markdown
Member

Summary

The failure rate for the parametric identity tests was about 0.2%, which at our CI scale corresponds to approximately one spurious failure every two days. The alternative to this is to fix the random seed of the test, but similar to other quantum_info tests, we would like some degree of extended coverage. Lifting the tolerance by three orders of magnitude at this circuit size should ensure a zero false-positive rate.

This also changes the test to actually display the failure tolerance, so it's easier to tell from a CI run if a failure was real.

Details and comments

The failure rate for the parametric identity tests was about 0.2%, which
at our CI scale corresponds to approximately one spurious failure every
two days.  The alternative to this is to fix the random seed of the
test, but similar to other `quantum_info` tests, we would like some
degree of extended coverage.  Lifting the tolerance by three orders of
magnitude at this circuit size should ensure a zero false-positive rate.

This also changes the test to actually display the failure tolerance, so
it's easier to tell from a CI run if a failure was real.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. Changelog: None Do not include in the GitHub Release changelog. labels Oct 20, 2023
@jakelishman jakelishman requested a review from a team as a code owner October 20, 2023 13:50
@qiskit-bot
Copy link
Copy Markdown
Collaborator

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

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 6588620468

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 13 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.004%) to 86.898%

Files with Coverage Reduction New Missed Lines %
qiskit/pulse/library/waveform.py 3 93.75%
crates/qasm2/src/lex.rs 4 91.41%
crates/qasm2/src/parse.rs 6 97.6%
Totals Coverage Status
Change from base Build 6588513305: 0.004%
Covered Lines: 73868
Relevant Lines: 85005

💛 - Coveralls

@mtreinish mtreinish added this pull request to the merge queue Oct 20, 2023
Merged via the queue into Qiskit:main with commit 80018cc Oct 20, 2023
mergify Bot pushed a commit that referenced this pull request Oct 20, 2023
The failure rate for the parametric identity tests was about 0.2%, which
at our CI scale corresponds to approximately one spurious failure every
two days.  The alternative to this is to fix the random seed of the
test, but similar to other `quantum_info` tests, we would like some
degree of extended coverage.  Lifting the tolerance by three orders of
magnitude at this circuit size should ensure a zero false-positive rate.

This also changes the test to actually display the failure tolerance, so
it's easier to tell from a CI run if a failure was real.

(cherry picked from commit 80018cc)
@jakelishman jakelishman deleted the fix-flaky-unitary-overlap branch October 20, 2023 16:57
github-merge-queue Bot pushed a commit that referenced this pull request Oct 20, 2023
The failure rate for the parametric identity tests was about 0.2%, which
at our CI scale corresponds to approximately one spurious failure every
two days.  The alternative to this is to fix the random seed of the
test, but similar to other `quantum_info` tests, we would like some
degree of extended coverage.  Lifting the tolerance by three orders of
magnitude at this circuit size should ensure a zero false-positive rate.

This also changes the test to actually display the failure tolerance, so
it's easier to tell from a CI run if a failure was real.

(cherry picked from commit 80018cc)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
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 the GitHub Release changelog. stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. 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