cuda-quantum
cuda-quantum copied to clipboard
Async functions should go beyond a single node
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.