NVIDIA / cuda-quantum

C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
https://nvidia.github.io/cuda-quantum/
Other
471 stars 172 forks source link

Target multiple architectures in parallel #114

Closed zohimchandani closed 2 months ago

zohimchandani commented 1 year ago

Required prerequisites

Describe the feature

Future workflows will require running on GPUs and QPUs in parallel.

I envision a workflow suggested below to allow error mitigation:

exp_vals = cudaq.observe_n_async(kernel, h, parameters, backed = 'superconducting_provider')  

approx_exp_vals = cudaq.observe_n_async(kernel_clifford_approximation, h, parameters, backed = 'gpu0') 

Both lines should be able to run in parallel via a futures request.

bettinaheim commented 2 months ago

This can be handled via multiple lines of code. At some point, we will need to generalize the platform definition to allow defining platforms with different processors. Until then, we will leave it as is.