1
$\begingroup$

I'm running a set of quantum circuits using the ibmq_qasm_simulator. However, sometimes my code works for the simulation, but sometimes it doesn't, and the system shows me the following message:

BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

I don't know why am I always getting this error. My Python version is 3.7.8, is there a way I can fix this issue? Thanks!

$\endgroup$
  • 1
    $\begingroup$ @KAJ226 Thanks for the comment! I've seen that post and tried all the methods suggested. I was using the simulator:) $\endgroup$ – Zhengrong Jan 3 at 3:38
  • 1
    $\begingroup$ Ah, I figured. Did you checked to see if it was a memory problem? $\endgroup$ – KAJ226 Jan 3 at 3:50
  • 1
    $\begingroup$ How big of a circuit were you running? Since you are using ibmq_qasm_simulator then you do have up to 32 qubits... so maybe it is not an issue... have you figured out anything yet? I am curious about this myself. $\endgroup$ – KAJ226 Jan 4 at 16:36
  • 1
    $\begingroup$ @KAJ226 My circuit has 8 qubits, but I'm doing 150 jobs for each running, and every single job has a list of 10 circuits. There's a Matplotlib command in my function, maybe that's the cause of my error, but sometimes it works, thats weird $\endgroup$ – Zhengrong Jan 4 at 23:54
  • 1
    $\begingroup$ Matplotlib might be the cause actually. look at this thread: github.com/Qiskit/qiskit-ignis/issues/419 $\endgroup$ – KAJ226 Jan 5 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.