cuda-quantum icon indicating copy to clipboard operation
cuda-quantum copied to clipboard

Async functions should go beyond a single node

Open zohimchandani opened this issue 6 months ago • 2 comments

Required prerequisites

  • [X] Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.

Describe the feature

observe_async can be used with the mqpu backend.

If I am on a cluster with 2 nodes and 4 gpus per node, my target.num_qpus() = 4 but cudaq.mpi.num_ranks() = 8.

I would now like to execute observe_async(kernel, hamiltonian, qpu_id = 7) however the error is that qpu_id must be <= target.num_qpus()

Can we get all async functions to work beyond a node, please?

Thanks.

zohimchandani avatar Aug 14 '24 10:08 zohimchandani