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

Numpy version incompatibility with Aer 0.4.0 #592

Closed
woodsp-ibm opened this issue Feb 6, 2020 · 3 comments · Fixed by #594
Closed

Numpy version incompatibility with Aer 0.4.0 #592

woodsp-ibm opened this issue Feb 6, 2020 · 3 comments · Fixed by #594
Labels
bug Something isn't working

Comments

@woodsp-ibm
Copy link
Member

woodsp-ibm commented Feb 6, 2020

  • Qiskit Aer version: 0.4
  • Python version: 3.6+
  • Operating system: Linux

When Terra tries to load Aer provider, with numpy 1.15.4, which was default on our Aqua build, and conforms to > 1.13 we get this

line 440, in <module>
    from .cy.spmath import (zcsr_transpose, zcsr_adjoint, zcsr_mult)
  File "stringsource", line 105, in init qiskit.providers.aer.pulse.qutip_lite.cy.spmath
AttributeError: type object 'qiskit.providers.aer.pulse.qutip_lite.cy.spmath.ar' has no attribute '__reduce_cython__'

We have tried locally and get similar error with 1.15.4. (I was running 1.16.3 which seems ok, and latest 1.18.1 seemed fine too)

@woodsp-ibm woodsp-ibm added the bug Something isn't working label Feb 6, 2020
mtreinish added a commit to mtreinish/qiskit-aer that referenced this issue Feb 6, 2020
It appears that the newly added pulse simulator has an implicit
requirement on having a newer version of numpy installed. We should
encode this minimum in the aer package requirements so people don't
accidently install aer with a version of numpy too old to work.

Fixes Qiskit#592
atilag pushed a commit that referenced this issue Feb 6, 2020
It appears that the newly added pulse simulator has an implicit
requirement on having a newer version of numpy installed. We should
encode this minimum in the aer package requirements so people don't
accidently install aer with a version of numpy too old to work.

Fixes #592
mtreinish added a commit to mtreinish/qiskit-aer that referenced this issue Feb 6, 2020
It appears that the newly added pulse simulator has an implicit
requirement on having a newer version of numpy installed. We should
encode this minimum in the aer package requirements so people don't
accidently install aer with a version of numpy too old to work.

Fixes Qiskit#592

(cherry picked from commit 12f97c8)
@nonhermitian
Copy link
Contributor

Just for the record, this is a bug in Cython 0.27, not a NumPy issue. It has been fixed in 0.28 and later.

cython/cython#1953

atilag pushed a commit that referenced this issue Feb 7, 2020
It appears that the newly added pulse simulator has an implicit
requirement on having a newer version of numpy installed. We should
encode this minimum in the aer package requirements so people don't
accidently install aer with a version of numpy too old to work.

Fixes #592

(cherry picked from commit 12f97c8)
@yulunwang
Copy link

Just for the record, this is a bug in Cython 0.27, not a NumPy issue. It has been fixed in 0.28 and later.

cython/cython#1953

Hi @nonhermitian, I have the same error here but my Cython is 0.29.2. Do you have any idea? Thx

@nonhermitian
Copy link
Contributor

Yeah. They said it fixed but it is not. Numpy needs to be updated.

mtreinish added a commit to mtreinish/qiskit that referenced this issue Feb 18, 2020
The translated docs builds are failing because of Qiskit/qiskit-aer#592
which is caused by using a version of numpy incompatible with the pulse
simulator. This has been fixed in aer on master and the stable/0.4.0
branch pending a 0.4.1 release. But, until that is ready we need to
manual ensure we're using a newer numpy version to avoid this issue in
the docs builds.
SooluThomas pushed a commit to Qiskit/qiskit-metapackage that referenced this issue Feb 18, 2020
* Bump numpy on poBranch

The translated docs builds are failing because of Qiskit/qiskit-aer#592
which is caused by using a version of numpy incompatible with the pulse
simulator. This has been fixed in aer on master and the stable/0.4.0
branch pending a 0.4.1 release. But, until that is ready we need to
manual ensure we're using a newer numpy version to avoid this issue in
the docs builds.

* Bump pip and friends too
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.

3 participants