Should Calibrator pre-built Settings be lower case? #2015
Closed
andreamari
started this conversation in
General
Replies: 2 comments 1 reply
-
As constants, shouldn’t they be in all caps, i.e. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Completed in 5504756. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using use the
Calibrator
one typically must import some pre-made instances of theSettings
class. E.g.from mitiq.calibration import ZNESettings
or
from mitiq.calibration import PECSettings
based on the usual Python convention for names, it is hard to realize that they are not classes but just instances of the
Settings
class.So, people may be tempted to do something like this:
zne_settings = ZNESettings()
which is wrong.
If you think this not an important problem, we can ignore and close this issue.
Otherwise, what about renaming the settings as
zne_settings
,pec_settings
orZNE_SETTINGS
,PEC_SETTINGS
?Beta Was this translation helpful? Give feedback.
All reactions