pasqal-io / Pulser

Library for pulse-level/analog control of neutral atom devices. Emulator with QuTiP.
Apache License 2.0
159 stars 57 forks source link

Handling of temperature in SimConfig #604

Closed a-corni closed 7 months ago

a-corni commented 7 months ago

Bug: When creating a SimConfig with temperature 50µK, the temperature is output in K as "4.9999999999999996e-05". image

Origin of the error: The error seems to come from our handling of the temperature in post_init: the temperature is multiplied by 1e-6.

Proposed solution: Dividing by 1e6 seems to solve the issue. See https://docs.python.org/3/tutorial/floatingpoint.html

image