Windows Instalation Verification Issues

89 views
Skip to first unread message

pedro alvarez

unread,
Apr 10, 2018, 8:43:01 PM4/10/18
to QuTiP: Quantum Toolbox in Python
It gave this result in the end of the qutip.testing, what can i do to fix it?



C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\wigner.py:226: DeprecationWarning: `factorial` is deprecated!
Importing `factorial` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.factorial` instead.
  sqrt(factorial(m) / factorial(n)) *
C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\wigner.py:226: DeprecationWarning: `factorial` is deprecated!
Importing `factorial` from scipy.misc is deprecated in scipy 1.0.0. Use `scipy.special.factorial` instead.
  sqrt(factorial(m) / factorial(n)) *
ok
wigner: compare wigner methods for random state vectors ... ok
Wigner: Compare Wigner fft and iterative for rand. ket ... ok
Wigner: Compare Wigner fft and iterative for rand. dm ... ok
Wigner: Compare Wigner clenshaw and iterative for rand. dm ... ok
Wigner: Compare Wigner sparse clenshaw and iterative for rand. dm ... ok

======================================================================
ERROR: Steady state: Thermal qubit - direct solver
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\tests\test_steadystate.py", line 61, in test_qubit_direct
    rho_ss = steadystate(H, c_op_list, method='direct')
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\steadystate.py", line 234, in steadystate
    return _steadystate_direct_sparse(A, ss_args)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\steadystate.py", line 400, in _steadystate_direct_sparse
    v = mkl_spsolve(L, b, perm = in_perm, verbose = ss_args['verbose'])
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 405, in mkl_spsolve
    lu.delete()
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 202, in delete
    byref(c_int(0)), np_error)
OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFF

----------------------------------------------------------------------
Ran 488 tests in 2874.574s

FAILED (SKIP=9, errors=1)

Alex Pitchford

unread,
Apr 11, 2018, 7:13:38 AM4/11/18
to qu...@googlegroups.com
Seems you had only one error out of many tests. Possible it was a one off. Does it occur each time you run the tests?

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pedro alvarez

unread,
Apr 12, 2018, 8:08:31 AM4/12/18
to qu...@googlegroups.com
It always end up skipping about 9 tests and with 1 or 4 errors, i tested again and came this result

 sqrt(factorial(m) / factorial(n)) *
ok
wigner: compare wigner methods for random state vectors ... ok
Wigner: Compare Wigner fft and iterative for rand. ket ... ok
Wigner: Compare Wigner fft and iterative for rand. dm ... ok
Wigner: Compare Wigner clenshaw and iterative for rand. dm ... ok
Wigner: Compare Wigner sparse clenshaw and iterative for rand. dm ... ok

======================================================================
ERROR: MKL spsolve : Single RHS vector (Complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\tests\test_mkl.py", line 69, in test_mklspsolve2
    y = mkl_spsolve(A.data,b)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 405, in mkl_spsolve
    lu.delete()
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 202, in delete
    byref(c_int(0)), np_error)
OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFF

======================================================================
ERROR: MKL splu : Repeated RHS solve (Complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\tests\test_mkl.py", line 163, in test_mkl_spsolve6
    lu.delete()
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 202, in delete
    byref(c_int(0)), np_error)
OSError: exception: access violation reading 0x000001DCFFFFFFE8

======================================================================
ERROR: MKL spsolve : Solution shape same as input RHS vec
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\tests\test_mkl.py", line 184, in test_mkl_spsolve7
    out = mkl_spsolve(A,b)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 405, in mkl_spsolve
    lu.delete()
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 202, in delete
    byref(c_int(0)), np_error)
OSError: exception: access violation reading 0x000001DCFFFFFFE8

======================================================================
ERROR: MKL spsolve : Hermitian (complex) solver
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\tests\test_mkl.py", line 217, in test_mkl_spsolve9
    y = mkl_spsolve(A, b, hermitian=1)
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 405, in mkl_spsolve
    lu.delete()
  File "C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip\_mkl\spsolve.py", line 202, in delete
    byref(c_int(0)), np_error)
OSError: exception: access violation reading 0x000001DCFFFFFFE8

----------------------------------------------------------------------
Ran 488 tests in 4901.258s

FAILED (SKIP=9, errors=4)

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.

Alex Pitchford

unread,
Apr 12, 2018, 10:49:52 AM4/12/18
to qu...@googlegroups.com
It will always skip some tests.
These errors are strange though.  Looks like some issue with your intel mkl
Can you send us the output from:

qutip.about()

Thanks

pedro alvarez

unread,
Apr 12, 2018, 11:49:56 AM4/12/18
to qu...@googlegroups.com
Here it is.

QuTiP: Quantum Toolbox in Python
Copyright (c) 2011 and later.
A. J. Pitchford, P. D. Nation, R. J. Johansson, A. Grimsmo, and C. Granade

QuTiP Version:      4.2.0
Numpy Version:      1.13.3
Scipy Version:      1.0.1
Cython Version:     0.28.1
Matplotlib Version: 2.2.2
Python Version:     3.6.5
Number of CPUs:     8
BLAS Info:          INTEL MKL
OPENMP Installed:   False
INTEL MKL Ext:      True
Platform Info:      Windows (AMD64)
Installation path:  C:\IntelPython3\envs\qutip-env\lib\site-packages\qutip

Alex Pitchford

unread,
Apr 12, 2018, 12:07:27 PM4/12/18
to qu...@googlegroups.com
There does not seem to be anything wrong with your setup there.
However, there does appear to be something wrong with your mkl.

How did you install qutip? I see you are not using Anaconda, so did you install from source?

Paul Nation

unread,
Apr 12, 2018, 12:11:19 PM4/12/18
to qu...@googlegroups.com
This is seen occasionally.  It is something wrong with accessing the MKL.  I have not seen this problem when working on Winodws, so it is hard to diagnose.  Also, it is possible to manually set the Steady state LU solver, so a workaround exists.

To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

For more options, visit https://groups.google.com/d/optout.

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

pedro alvarez

unread,
Apr 12, 2018, 2:05:52 PM4/12/18
to qu...@googlegroups.com
I installed using conda, and created an environment "qutip-env" as shown on the qutip manual.

To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qutip/AFoBWzy3YZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qutip+unsubscribe@googlegroups.com.

Alex Pitchford

unread,
Apr 13, 2018, 7:06:47 AM4/13/18
to qu...@googlegroups.com
Ok. Sorry, it did not look like a normal anaconda Python install.

You could maybe try rebuilding the extensions
$ python setup.py build_ext

or create another env and try installing from source.

But I am really not sure this will help. It would seem that some kind of fix for mkl is what you need, rather than a fix for qutip. The error is coming from an mkl components. So you might be best to see if you can generate that error in a small snippet, based on the code that is generating the error.

Or, as Paul says, there are other methods in qutip for lu solving. So you could just get on with using qutip for whatever it is you are looking to do, and then work round this error if it occurs.

Alex
Reply all
Reply to author
Forward
0 new messages