Invalid simulator requested: dynamics

I installed cudaq using pip inside a conda environment on a cluster with H200 gpus. I can import cudaq and run the basic examples on GPU and CPU. However, when I try to run the dynamics examples, I get an error.

$ python -c "import cudaq; cudaq.set_target('dynamics')"
RuntimeError: Invalid simulator requested: dynamics

Here is my output of nvidia-smi

$ nvidia-smi                                    
Tue Aug 12 10:36:24 2025                                                                 
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.05              Driver Version: 560.35.05      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA H200                    Off |   00000000:06:00.0 Off |                    0 |
| N/A   33C    P0            122W /  700W |  139662MiB / 143771MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA H200                    Off |   00000000:26:00.0 Off |                    0 |
| N/A   34C    P0            113W /  700W |    1069MiB / 143771MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   2  NVIDIA H200                    Off |   00000000:A6:00.0 Off |                    0 |
| N/A   34C    P0            116W /  700W |   28132MiB / 143771MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   3  NVIDIA H200                    Off |   00000000:C6:00.0 Off |                    0 |
| N/A   33C    P0            117W /  700W |    1066MiB / 143771MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
                                                                                          
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A    235197      C   ...-projects/Hiding-AE/.env/bin/python       1528MiB |
|    0   N/A  N/A   3703469      C   ...a/envs/stPhaseTransition/bin/python        586MiB |
|    0   N/A  N/A   3747558      C   python                                      64324MiB |
|    1   N/A  N/A    235197      C   ...-projects/Hiding-AE/.env/bin/python        520MiB |
|    1   N/A  N/A   3747558      C   python                                        526MiB |
|    2   N/A  N/A    235197      C   ...-projects/Hiding-AE/.env/bin/python        520MiB |
|    2   N/A  N/A   1714332      C   python3                                     27060MiB |
|    2   N/A  N/A   3747558      C   python                                        526MiB |
|    3   N/A  N/A    235197      C   ...-projects/Hiding-AE/.env/bin/python        520MiB |
|    3   N/A  N/A   3747558      C   python                                        526MiB |
+-----------------------------------------------------------------------------------------+

@weidma10 Thanks for filing this issue.
Would you please tell me the conda version, python version you used to setup cudaq? It would be nice if you could give us the exact setup steps which will help us repro this issue.

Conda version is 24.11.3

Python is 3.11.13

Pip version 25.2

I am using conda via Miniforge, so it is using the conda-forge channel to install.

Minimal steps for me to reproduce:

conda create -y -n cudaq-min python=3.11 pip
conda activate cudaq-min
pip install cudaq
python -c "import cudaq; cudaq.set_target('dynamics')"

I followed the same setup steps (with same versions) as given above and am unable to repro this issue.

Would you please try in a different clean env?

Yes, I retried it on a clean install with those same commands, and I still get the error.

Do you see this in the logs when you run the above steps?

Successfully installed astpretty-3.0.0 certifi-2025.8.3 charset_normalizer-3.4.3 cuda-quantum-cu12-0.12.0 cudaq-0.12.0 cudensitymat-cu12-0.2.0 cupy-cuda12x-13.4.1 cuquantum-cu12-25.6.0 custatevec-cu12-1.9.0 cutensor-cu12-2.2.0 cutensornet-cu12-2.8.0 fastrlock-0.8.3 idna-3.10 numpy-2.2.6 nvidia-cublas-cu12-12.9.1.4 nvidia-cuda-nvrtc-cu12-12.9.86 nvidia-cuda-runtime-cu12-12.9.79 nvidia-curand-cu12-10.3.10.19 nvidia-cusolver-cu12-11.7.5.82 nvidia-cusparse-cu12-12.5.10.65 nvidia-nvjitlink-cu12-12.9.86 requests-2.32.4 scipy-1.16.1 urllib3-2.5.0

Hi spisal,

I discovered that my pip was installing version 11 of cuda from its cache instead of installing version 12 from scratch. When I reinstalled using pip install --no-cache-dir cudaq, that seems to have fixed the problem, and I can run the dynamics examples now. I didn’t know pip caching was a thing. Thanks for the help! This is solved.

Thanks @weidma10. Please feel free to close this issue.