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

* Removes static numpy initialization strategy for the Pulse simulator #609

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

atilag
Copy link
Member

@atilag atilag commented Feb 11, 2020

Summary

It was causing the error: Cannot import numpy.core.multiarray only on
older versions of CentOS.

The real error was caused by a failed initialization of numpy, which was throwing this error before:

RuntimeError: _ARRAY_API is not "PyCapsule" object

Details and comments

The fix was fairly easy actually, even though it took me a while to figure out why (taking into account that it was working in all other platforms, and in Debug mode!) -- we've just removed static initialization of numpy array API.
We must pay attention to possible performance regressions.

It was causing the error: Cannot import numpy.core.multiarray only on
older versions of CentOS.
@atilag atilag merged commit 62d4337 into Qiskit:master Feb 11, 2020
atilag added a commit to atilag/qiskit-aer that referenced this pull request Feb 12, 2020
Qiskit#609)

It was causing the error: Cannot import numpy.core.multiarray only on
older versions of CentOS.
atilag added a commit that referenced this pull request Feb 12, 2020
#609) (#611)

It was causing the error: Cannot import numpy.core.multiarray only on
older versions of CentOS.
@mtreinish mtreinish added the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label Feb 18, 2020
hhorii pushed a commit to hhorii/qiskit-aer that referenced this pull request Feb 28, 2020
Qiskit#609)

It was causing the error: Cannot import numpy.core.multiarray only on
older versions of CentOS.
@atilag atilag deleted the fix-numpy-import-error branch June 1, 2020 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants