Failure pytest test_dia.py on new QuTip 5.2.0 installation

13 views
Skip to first unread message

Martin Braune

unread,
Aug 15, 2025, 1:35:29 PMAug 15
to QuTiP: Quantum Toolbox in Python
I tested fresh installations on Linux and Windows environment,
following installation instruction (venv,  using pip install qutip)

When verifying the installation using pytest, most tests pass, but pytest test_dia.py  fails
on both installations. 
75 fails are mostly AssertionError, like:
FAILED qutip\tests\core\data\test_dia.py::TestClassMethods::test_init_from_scipy[ket-empty] - AssertionError: assert 1 == 0

Thanks, Martin

Éric Giguère

unread,
Aug 15, 2025, 1:55:14 PMAug 15
to QuTiP: Quantum Toolbox in Python
Hi,

This is probably the mismatch we have with scipy 1.16.X.
Scipy 1.16.0 has a bug that would affect some functionality, but scipy 1.16.1 (that you are probably using) should work well with issues only in tests.

The issue is resolved on github and we will push a release with the fix by the end on the month.

Eric

Martin Braune

unread,
Aug 15, 2025, 3:23:12 PMAug 15
to QuTiP: Quantum Toolbox in Python
yes, on both scipy 1.16.1 is used
thx!

Reply all
Reply to author
Forward
0 new messages