qutip / qutip-cupy

CuPy linear-algebra backend for QuTiP
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

Add thorough data layer tests #16

Closed hodgestar closed 3 years ago

hodgestar commented 3 years ago

The data layer is fundamental to how all operations on QuTiP Qobjs are performed, so we need to be really sure they're correct in all cases.

To achieve this we need to generate tests that thoroughly cover the possible inputs and combinations of dispatch functions. One possible approach / source of ideas is to reuse the test utilities from the data layer itself (see https://github.com/qutip/qutip/blob/dev.major/qutip/tests/core/data/test_mathematics.py).

Another possible approach is to use hypothesis -- see https://hypothesis.readthedocs.io/en/latest/numpy.html.

MrRobot2211 commented 3 years ago

This has been tackled in #10 .