Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable parallel distribution for tensornet and tensornet-mps #2326

Open
1 task done
zohimchandani opened this issue Oct 29, 2024 · 0 comments
Open
1 task done

Enable parallel distribution for tensornet and tensornet-mps #2326

zohimchandani opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zohimchandani
Copy link
Collaborator

Required prerequisites

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

Describe the feature

Hamiltonian batching workflows do not work on the tensornet and tensornet-mps backend. We need to add a mqpu version of those I believe.

import cudaq
from cudaq import spin

# cudaq.set_target("nvidia", option="mqpu")
cudaq.set_target('tensornet')
# cudaq.set_target('tensornet-mps')

cudaq.mpi.initialize()

qubit_count = 15
term_count = 100

kernel = cudaq.make_kernel()
qubits = kernel.qalloc(qubit_count)
kernel.h(qubits[0])
for i in range(1, qubit_count):
    kernel.cx(qubits[0], qubits[i])

hamiltonian = cudaq.SpinOperator.random(qubit_count, term_count)

result = cudaq.observe(kernel, hamiltonian, execution=cudaq.parallel.thread).expectation()

cudaq.mpi.finalize()
RuntimeError: The current quantum_platform does not support parallel distribution of observe() expectation value computations.
@zohimchandani zohimchandani added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant