Segmentation Error
Closed this issue · 0 comments
gzquse commented
Required prerequisites
- Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
- If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug
When running a cudaq circuit (very simply, it could be a GHZ gate) with one GPU over 1,000,000 shots, you get a segmentation error. [default statevector simulation backend]
My workarounds: swap backend with tensortnet should work. However, for 1,000,000 shots, memory should be only approximately 366 KB, which apparently does not exceed the memory.
Steps to reproduce the bug
cudaq.set_target("nvidia")
Running the Cudaq circuit and sampling it for over 1,000,000 shots
Expected behavior
works exactly like the CPU taking longer time instead of segmentation error.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
- CUDA Quantum version:12.2
- Python version: python 3.10
- C++ compiler:
- Operating system: ubuntu 22.02
Suggestions
No response