QVMError when multiprocessing
See original GitHub issueHi,
I would like to parallelize running of quantum circuits to get faster estimates of their gradients. One library that makes multiprocessing pretty painless is ray.
When I create the workers for running multiple circuits in parallel, I get the following error
pyquil.api._errors.QVMError: Unhandled memory fault at #x0
There is a useful debugging feature ray provides to serialize the computation, at which point the error no longer occurs. The QVM doesn’t crash nor does it write any error messages that indicate some failure. I am wondering if there is perhaps simply an issue with throughput and maybe the request got dropped?
Thanks, Vincent
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
python - Exception thrown in multiprocessing Pool not detected
I had the same problem. The cause is as follows: the worker process catches Exception and puts a failure code and the exception...
Read more >Fix FileNotFoundError With Multiprocessing in Python
We can fix the error by blocking the main process long enough to allow the child processes to start-up and run. This could...
Read more >NAVDAS 2001 - DTIC
forecast error covariance was (in conception, but not in execution) ... adjoint code has the same properties with respect to multiprocessing as the...
Read more >passer/passer_lib.py at master · activecm/passer - GitHub
#This "ERROR" signature matches other protocols. ... else: #More strictly, elif type(dests['suspicious']) is multiprocessing.queues.
Read more >OpenMP* Support - Intel
The OpenMP API provides symmetric multiprocessing (SMP) with the following major features: Relieves you from implementing the low-level ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vipasu I’m doing some testing for these changes (making sure they fix the above) and then I’ll update the packages. I’ll post a message here when I’ve finished.
Your above code now runs to completion. If you have docker installed, you can test these changes by running the following command: ~
docker run -p 5555:5555 -it rigetti/quilc:edge -R -p 5555 -Pjdrtf2 --compute-gate-volume --without-pretty-printing
~docker run -p 5000:5000 -it rigetti/qvm:edge -S
and then your script above should run using this as the QVM.