I'm practicing with qiskit experiments. Try to work it with GPU installed in my system. But it takes 100% performance of CPU and didn't consider the GPU.
Kindly help me to run the qiskit codes with GPU.
Thanks..
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.
Sign up to join this communityAccording to qiskit-aer README, you can install qiskit-aer-gpu
to utilize GPU for simulation. This package requires CUDA® 10.1 or newer previously installed. CUDA® itself would require a set of specific GPU drivers. On Linux, you can install by pip install qiskit-aer-gpu
, on other platforms you need to build the package from source.
Note that qiskit-aer
and qiskit-aer-gpu
are mutually exclusive. They contain the same code but the latter supports CUDA. If you install both at the same it will interfere with each other. See this answer for more details.
Furthermore, you can use cusvaer
or cuStateVec
from NVIDIA’s cuQuantum SDK (requires CUDA as well) with Qiskit to utilize GPU for simulation. See some code examples here and the cuQuantum documentation.
pip install qiskit-aer-gpu
This will overwrite your current qiskit-aer
package installation giving you the same functionality found in the canonical qiskit-aer
package, plus the ability to run the GPU supported simulators: statevector, density matrix, and unitary." If this information is correct (no need to uninstall qiskit-aer
anymore), can you update your answer to reflect so please?
$\endgroup$
Feb 19 at 15:11
cudaErrorNoKernelImageForDevice
$\endgroup$