april-tools / cirkit

a python framework to build, learn and reason about probabilistic circuits and tensor networks
https://cirkit-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
71 stars 1 forks source link

Run unit tests in float64 #139

Closed lkct closed 10 months ago

lkct commented 11 months ago

Currently we have some comments in tests saying "due to precision loss we can only use a larger atol/rtol". When error accumulates it might be hard to distinguish numerical issues and true bugs.

We can use float64 instead of float32 in tests to provide a higher precision. The speed loss should not be important for tests.