1
$\begingroup$

I'm trying to use the AerStatevector method with GPUs. I know that GPUs on my server are correctly configured, and indeed, if I use AerSimulator I'm able to use them with no problem. Now, by using the following code: AerStatevector(qc, device='GPU') where qc is a given quantum circuit, I'm getting the following error:

 RuntimeError: This program was not compiled for SM 61  
: cudaErrorInvalidDevice: invalid device ordinal

On the other hand, If I use just AerStatevector(qc), it works correctly. Any hints? More generally, I'm moving to qiskit 1.0, and I would like to perform statevector simulations by using GPUs.

Where can I look for some tutorials?

$\endgroup$

2 Answers 2

1
$\begingroup$

Check this tutorial out. There's a mention of using GPU with AerSimulator.

$\endgroup$
0
$\begingroup$

The qiskit-aer-gpu module depends on cuTensorNet. cuTensorNet supports GPU architectures of Volta, Ampere, and Hopper, which are all sm70 or higher.

Since you have sm61, I am guessing your GPU architecture is Pascal.

Unfortunately, I do not think there is a solution to this mismatch in architecture.

New contributor
Erik Kjellgren is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.