pasqal-io / Pulser

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

Improve the NoiseModel unused parameters warning message #752

Closed HGSilveri closed 1 month ago

HGSilveri commented 1 month ago

The warning message indicating there are unused parameters in the NoiseModel now includes the non-zero noise parameters, e.g. for

pulser.NoiseModel(p_false_pos=0.1, runs=10)

Before:

UserWarning: 'runs' is not used by any active noise type ('SPAM',).

After:

UserWarning: 'runs' is not used by any active noise type in ('SPAM',) when the only defined parameters are ['p_false_pos'].

Fixes #742 .