Test fail

47 views
Skip to first unread message

Christoffer Holm Vejlin

unread,
Aug 30, 2021, 10:51:03 AM8/30/21
to QuTiP: Quantum Toolbox in Python
Hey

I have an issue where the test for driven cavity power gmres which can't find a solution within 1000 iterations

Simon Cross

unread,
Aug 31, 2021, 9:32:41 AM8/31/21
to qu...@googlegroups.com
Hi Christopher,

Could you describe the issue in a bit more detail? E.g. a command or
small Python script that produces the error and a description of what
you expect to see and the result you get?

Yours sincerely,
Simon Cross

Christoffer Holm Vejlin

unread,
Sep 1, 2021, 6:41:32 AM9/1/21
to QuTiP: Quantum Toolbox in Python
Yes of course, It is when I run the qutip test command, that it states that the test for driven cavity power gmres that it fails to find a solution within the 1000 iterations the test requires

Simon Cross

unread,
Sep 1, 2021, 8:19:12 AM9/1/21
to qu...@googlegroups.com
Hi Christoffer,

These tests all pass for me and in our CI runs, e.g.

$ pytest qutip/tests/test_steadystate.py -k gmres -v

qutip/tests/test_steadystate.py::test_qubit_power_gmres PASSED
[ 16%]
qutip/tests/test_steadystate.py::test_qubit_gmres PASSED
[ 33%]
qutip/tests/test_steadystate.py::test_ho_power_gmres PASSED
[ 50%]
qutip/tests/test_steadystate.py::test_ho_gmres PASSED
[ 66%]
qutip/tests/test_steadystate.py::test_driven_cavity_power_gmres PASSED
[ 83%]
qutip/tests/test_steadystate.py::test_driven_cavity_gmres PASSED
[100%]

So some more digging will likely be required to figure out what is
going on. Which specific test is failing? Is it failing on every run
or only sometimes? What hardware and software are you running on?
Which QuTiP version?

Yours sincerely,
Simon Cross

Jake Lishman

unread,
Sep 1, 2021, 9:55:09 AM9/1/21
to qu...@googlegroups.com
This sounds vaguely familiar to me, but I don't think we ever had a full open issue or PR about it specifically.  I think before it appeared with certain configurations on Windows, and it would converge accurately if we just upped the number of iterations by a little bit.

Jake

--
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/CAD5NRCGEnE5gcb0X0SYExR1fwaqQGOVvUJ_xFQG1jN5HUWsCyw%40mail.gmail.com.


Christoffer Holm Vejlin

unread,
Sep 1, 2021, 10:10:08 AM9/1/21
to QuTiP: Quantum Toolbox in Python
It is the test  qutip/tests/test_steadystate.py::test_driven_cavity_power_gmres that fails and it fails every time. I am using spyder version 5.1.0 with qutip version 4.5.3 on a windows 10 pc. As for the hardware I can both provide the full (if needed) and the summery here:
OS Name Microsoft Windows 10 Pro
Version 10.0.19043 Build 19043
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-RAK2QCV
System Manufacturer To Be Filled By O.E.M.
System Model To Be Filled By O.E.M.
System Type x64-based PC
System SKU To Be Filled By O.E.M.
Processor Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz, 3601 Mhz, 8 Core(s), 16 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. P4.00, 15/03/2019
SMBIOS Version 2.8
Embedded Controller Version 255.255
BIOS Mode Legacy
BaseBoard Manufacturer ASRock
BaseBoard Product Z390 Taichi Ultimate
BaseBoard Version
Platform Role Desktop
Secure Boot State Unsupported
PCR7 Configuration Binding Not Possible
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United Kingdom
Hardware Abstraction Layer Version = "10.0.19041.1151"
Username DESKTOP-RAK2QCV\FyrsteTower
Time Zone Romance Summer Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.9 GB
Available Physical Memory 7.71 GB
Total Virtual Memory 19.9 GB
Available Virtual Memory 6.43 GB
Page File Space 4.00 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualisation-based security Not enabled
Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and the device is not Modern Standby, Un-allowed DMA-capable bus/device(s) detected, TPM is not usable
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualisation Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes


Simon Cross

unread,
Sep 1, 2021, 11:26:59 AM9/1/21
to qu...@googlegroups.com
Hi everyone,

On Wed, Sep 1, 2021 at 4:10 PM Christoffer Holm Vejlin
<christoff...@gmail.com> wrote:
>
> It is the test qutip/tests/test_steadystate.py::test_driven_cavity_power_gmres that fails and it fails every time. I am using spyder version 5.1.0 with qutip version 4.5.3 on a windows 10 pc. As for the hardware I can both provide the full (if needed) and the summery here:

Thanks Christoffer!

Everyone: Since we seem not to have CI on Windows currently, perhaps
that is a good first step for addressing this kind of issue? Does
anyone have a sense of how much work that will be? Adding the lines to
CI might be easy, but maybe making everything pass nicely will be
tricky?

Christoffer: You could try 4.6.2 (which is the latest stable release)
although I didn't see anything in the commit history that seems likely
to have fixed the issue since 4.5.3, so I wouldn't be surprised if the
test failure is still present.

On the upside, it's helpful that this fails all the time rather than
intermittently.

Yours sincerely,
Simon Cross
Reply all
Reply to author
Forward
0 new messages