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

Question about multi-GPU support #635

Open
jakurzak opened this issue Nov 7, 2023 · 3 comments
Open

Question about multi-GPU support #635

jakurzak opened this issue Nov 7, 2023 · 3 comments
Assignees

Comments

@jakurzak
Copy link
Contributor

jakurzak commented Nov 7, 2023

Is there multi-GPU support in Qsim or there any plans to implement it?
Is there any intention to implement distributed memory capabilities?
What can I do when the number of qubits is such that the memory of a single GPU is exceeded?
Any feedback appreciated!

@sergeisakov
Copy link
Collaborator

There is no native multi-GPU support in qsim and there are no plans to implement it. Note that there is multi-GPU support in qsimcirq via NVIDIA cuQuantum Appliance.

@jakurzak
Copy link
Contributor Author

jakurzak commented Nov 7, 2023

Sorry for a naive question, but what about the technique described here: https://quantumai.google/qsim/tutorials/qsimcirq?authuser=1#advanced_applications_distributed_execution

@95-martin-orion
Copy link
Collaborator

What about the technique described here: {...}

The "circuit cutting" technique applied by qsimh is equivalent to running multiple completely separate simulations and combining the final results. No communication takes place during circuit execution. Note also that qsimh is fairly out of date - it does not have a Cirq interface or support running on GPU (in contrast with qsim.)

Depending on the exact circuit you want to simulate, you might still be able to use this technique to distribute the work and avoid exceeding GPU memory limits. However, you would need to manually construct the cut circuits and feed them into qsim (not qsimh) for simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants