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

tensor_network method powered by cuQuantum is not available #1790

Closed
HaoTy opened this issue Apr 24, 2023 · 3 comments
Closed

tensor_network method powered by cuQuantum is not available #1790

HaoTy opened this issue Apr 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@HaoTy
Copy link

HaoTy commented Apr 24, 2023

Informations

  • Qiskit Aer version: 0.12.0
  • Qiskit Aer GPU version: 0.11.2
  • Python version: 3.9.16
  • Operating system: Ubuntu 20.04.5 LTS

What is the current behavior?

Specifying method="tensor_network" ( #1637 ) with device="GPU" produces AerError: "Invalid simulation method tensor_network" for the latest release.

Steps to reproduce the problem

pip install qiskit
pip install cuquantum-python-cu11 cupy-cuda11x
pip install qiskit-aer-gpu

This should install qiskit-aer 0.12.0, qiskit-aer-gpu 0.11.2, and cuQuantum with cuTensorNet support. Then

from qiskit_aer import AerSimulator

backend = AerSimulator(method="tensor_network", device="GPU")

What is the expected behavior?

tensor_network should be available for AerSimulator when cuTensorNet is functional.

Suggested solutions

Not sure if it's related, but the latest version of qiskit-aer-gpu (available on PyPI) is 0.11.2.

@HaoTy HaoTy added the bug Something isn't working label Apr 24, 2023
@hhorii
Copy link
Collaborator

hhorii commented Apr 27, 2023

0.12.0 is not available through PyPI (though we will fix this issue soon). Could you compile and try Aer from codes?

@mtreinish
Copy link
Member

Actually the qiskit-aer-gpu package does not include the cuQuantum support. If you'd like to use cuQuantum you will need to compile aer from source. There instructions on how to do this here: https://github.com/Qiskit/qiskit-aer/blob/main/CONTRIBUTING.md#building-with-gpu-support including the options needed to build the cuQuantum support.

@HaoTy
Copy link
Author

HaoTy commented Apr 27, 2023

Thanks for the clarification. I was aware that cuStateVec_enable needs Aer to be built from source with appropriate flags, but somehow forgot that this would likely be the case for tensor_network as well :/

@HaoTy HaoTy closed this as completed Apr 27, 2023
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

No branches or pull requests

3 participants