GPU and QuEST¶
Note
These functions are in every build, but the backends they load are not part
of the pip package. GPU simulation requires GPU access (see
Get GPU access), and QuEST requires the separate
libmaestroquest plugin. Without them, the is_*_available functions
return False. is_quest_available also returns False until
init_quest has loaded the plugin. is_distributed_gpu_available and
finalize_distributed_mpi_gpu exist in Linux builds only.
- get_gpu_device_count() int¶
Number of CUDA-capable devices visible to the process, or 0 if the GPU library cannot be loaded or none are visible; -1 on CUDA discovery errors. Does not initialize a simulator.