question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QVMError when multiprocessing

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
notmgskcommented, Aug 5, 2019

@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.

0reactions
notmgskcommented, Aug 5, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found