Skip to content

Not building with cuQuantum SDK (and cirq) #481

@rugantio

Description

@rugantio

I built qsim locally from this repo, also modifing the Makefile in order to build the cuQuantum files:

TARGETS = qsim-custatevec
TESTS = run-custatevec-tests

In fact in the local folder I have a "qsim_custatevec.cpython-39-x86_64-linux-gnu.so" file, but when I do "pip install ." it does not copy over to "/usr/lib/python3.9/site-packages/qsimcirq/"

If I instantiate a simulator that tries to use custatevec it does not find it:

gpu_options = qsimcirq.QSimOptions(use_gpu=True, gpu_mode=1)
qsim_simulator = qsimcirq.QSimSimulator(qsim_options=gpu_options)

results in a "ValueError: cuStateVec GPU execution requested, but not supported. If your device has GPU support and the NVIDIA cuStateVec library is installed, you may need to compile qsim locally."

Everything works fine with just CUDA11 (gpu_mode=0)

Metadata

Metadata

Assignees

Labels

area/gpuInvolves CUDA, GPUs, and similarpriority/p1High priority

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions