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

Flaky pulse-optimal UnitarySynthesis test with Numpy 1.26 #11287

Closed
jakelishman opened this issue Nov 21, 2023 · 0 comments · Fixed by #11307
Closed

Flaky pulse-optimal UnitarySynthesis test with Numpy 1.26 #11287

jakelishman opened this issue Nov 21, 2023 · 0 comments · Fixed by #11307
Labels
bug Something isn't working

Comments

@jakelishman
Copy link
Member

Environment

  • Qiskit Terra version: 0.45.0
  • Python version: 3.8
  • Operating system: Linux

What is happening?

CI shows a flaky test with Numpy 1.25+, which was the reason for #11232, and why we can't yet merge #11262. The test is test.python.transpiler.test_unitary_synthesis.TestUnitarySynthesis.test_two_qubit_synthesis_not_pulse_optimal.

How can we reproduce the issue?

Example return from CI:

test.python.transpiler.test_unitary_synthesis.TestUnitarySynthesis.test_two_qubit_synthesis_not_pulse_optimal
-------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/tmp/terra-tests/test/python/transpiler/test_unitary_synthesis.py", line 365, in test_two_qubit_synthesis_not_pulse_optimal
    self.assertGreaterEqual(num_ops["sx"], 16)

      File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/unittest/case.py", line 1275, in assertGreaterEqual
    self.fail(self._formatMessage(msg, standardMsg))

      File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/unittest/case.py", line 715, in fail
    raise self.failureException(msg)

    AssertionError: 15 not greater than or equal to 16

What should happen?

Reliable CI.

Any suggestions?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant