Parallel Qutip: parfor and parallel_map

93 views
Skip to first unread message

Diego Morachis Galindo

unread,
Oct 8, 2019, 3:26:39 PM10/8/19
to QuTiP: Quantum Toolbox in Python
Hello

I'm currently trying to run a parallel code example given in Qutip User's Guide version 4.4, on page 69, which simulates a Landau-Zener-Interferometry map. The code is not "ready to go", so you have to add a litle bit more lines to implement it.  Whenever I run the code I get errors related to the parfor or parallel_map functions. I'm a little bit of a noobie in Python and Qutip and I can't find the way to get around this. The last set of errors which appear after running the code are:

 
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Lz_py.py", line 35, in <module>
    a,b = parallel_map(task,range(len(eps_list)),task_args=(eps_list,))
  File "/home/diego/anaconda3/lib/python3.7/site-packages/qutip/parallel.py", line 260, in parallel_map
    return [ar.get() for ar in async_res]
  File "/home/diego/anaconda3/lib/python3.7/site-packages/qutip/parallel.py", line 260, in <listcomp>
    return [ar.get() for ar in async_res]
  File "/home/diego/anaconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
    raise self._value
ImportError: Building module cqobjevo_compiled_coeff_7879700862880314382 failed: ["distutils.errors.CompileError: command 'gcc' failed with exit status 1\n"]

How may I fix this problem?

Thanks
Diego
Lz_py.py

Nathan Shammah

unread,
Oct 8, 2019, 9:27:40 PM10/8/19
to qu...@googlegroups.com
Hi, 

I, just to say that I tried to replicate your error and I got it too.

Bests, 

Nathan 



--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qutip/84777e39-a5f7-47aa-8610-9be46badbed3%40googlegroups.com.

Nathan Shammah

unread,
Oct 8, 2019, 9:29:03 PM10/8/19
to qu...@googlegroups.com
Dear Diego, 

Can you open an issue on Github, so that we can keep track of it more easily?

Thank you, 

Nathan 
Reply all
Reply to author
Forward
0 new messages