Allow PrimitiveJob
to use Python processes rather than threads in _submit
.
#12989
Labels
PrimitiveJob
to use Python processes rather than threads in _submit
.
#12989
What should we add?
In
primitive_job.py
:Any backend that's using
PrimitiveJob
is locked into using Python's threading, which can cause locks when interacting with other non-Python languages with their own thread schedulers. Python processes don't have this problem (because they avoid the GIL). This behaviour is currently blocking me when using a custom backend I've written. It'd be great if thePrimitiveJob
could obey the preference set in theQISKIT_PARALLEL
environment variable.The text was updated successfully, but these errors were encountered: