Verifying the Installation: Fatal Python error

110 views
Skip to first unread message

Alejandro Jara

unread,
Sep 13, 2020, 11:59:34 AM9/13/20
to QuTiP: Quantum Toolbox in Python
Hello All,

I would appreciate you can help me with this issue.

I install QuTip, then I run the test to verify the installation. Following is the message I got.

Any idea what could be the problem here?

Thank you!

QuTiP Version:      4.5.2

Numpy Version:      1.18.5

Scipy Version:      1.5.0

Cython Version:     0.29.21

Matplotlib Version: 3.2.2

Python Version:     3.8.3

Number of CPUs:     2

BLAS Info:          INTEL MKL

OPENMP Installed:   False

INTEL MKL Ext:      True

Platform Info:      Darwin (x86_64)

Installation path:  /Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/qutip

==============================================================================

Please cite QuTiP in your publication.

==============================================================================

For your convenience a bibtex reference can be easily generated using `qutip.cite()`

============================= test session starts ==============================

platform darwin -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /Users/Janoja/opt/anaconda3/bin/python3

cachedir: .pytest_cache

rootdir: /Users/Janoja

collected 703 items / 61 deselected / 642 selected                             


opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_basis_transformation.py::test_transformation_to_eigenbasis_is_reversible[2-real_hermitian] PASSED [  0%]



opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_hilbert_dist PASSED [ 35%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_unitarity_known XFAIL [ 35%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_unitarity_bounded XFAIL [ 35%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_bounded SKIPPED [ 35%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_qubit_known_cases SKIPPED [ 35%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_qubit_scalar SKIPPED [ 36%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_qubit_triangle SKIPPED [ 36%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_force_solve SKIPPED [ 36%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_metrics.py::test_dnorm_cptp SKIPPED [ 36%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_mkl.py::test_mkl_spsolve1 PASSED [ 36%]





opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_mkl.py::test_mkl_spsolve10 PASSED [ 38%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_openmp.py::test_openmp_spmv SKIPPED [ 38%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_openmp.py::test_openmp_mesolve SKIPPED [ 38%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_openmp.py::test_openmp_mesolve_td SKIPPED [ 38%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_operators.py::test_jmat_12 PASSED [ 38%]



opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_propagator.py::testPropHDims PASSED [ 55%]

opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_ptrace.py::test_ptrace_rand Fatal Python error: Aborted


Current thread 0x00000001119c3dc0 (most recent call first):

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/qutip/tests/test_ptrace.py", line 115 in test_ptrace_rand

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/python.py", line 182 in pytest_pyfunc_call

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/python.py", line 1477 in runtest

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 135 in pytest_runtest_call

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 217 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 244 in from_call

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 216 in call_runtest_hook

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 186 in call_and_report

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 100 in runtestprotocol

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/runner.py", line 85 in pytest_runtest_protocol

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/main.py", line 272 in pytest_runtestloop

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/main.py", line 247 in _main

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/main.py", line 191 in wrap_session

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/_pytest/config/__init__.py", line 124 in main

  File "/Users/Janoja/opt/anaconda3/lib/python3.8/site-packages/qutip/testing.py", line 60 in run

  File "<stdin>", line 1 in <module>

Abort trap: 6


Nathan Shammah

unread,
Sep 14, 2020, 4:16:28 AM9/14/20
to qu...@googlegroups.com
Hi Alejandro,

It seems something related to the low-level mathematical handling that occurs with ptrace, which is tested with several random values whose allocation have produced problems also in the past. 

QuTiP should work fine even if these tests at testing.run() make this issue emerge, when functions are called one after the other, as in usual usage these problems usually do not occur.

 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/e7f3aa98-34db-47e9-b6c0-6345ea2da2d3n%40googlegroups.com.


--
https://unitary.fund/
Creating a quantum technology ecosystem that benefits the most people.


Alejandro Jara

unread,
Sep 14, 2020, 10:26:26 PM9/14/20
to QuTiP: Quantum Toolbox in Python
Thank you, Nathan!

So, I will try to run a program

Best, 

Alejandro

Reply all
Reply to author
Forward
0 new messages