-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactoring]: split devices.noise_utils
into qis.noise_utils
and devices.noise_utils
#6453
Conversation
…/cirq/qis/noise_utils_test.py
…/cirq/qis/noise_utils_test.py
…/cirq/qis/noise_utils_test.py
…/cirq/qis/noise_utils_test.py
…/qis/noise_utils.py
…/qis/noise_utils.py
…/qis/noise_utils.py
…/qis/noise_utils.py
devices.noise_utils
into qis.noise_utils
and devices.noise_utils
b42bf59
to
b91f1fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
@@ -0,0 +1,123 @@ | |||
# Copyright 2021 The Cirq Developers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update the year?
@@ -0,0 +1,97 @@ | |||
# Copyright 2021 The Cirq Developers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. I'm not creating new content. it's the same file. @pavoljuhas what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think either way is fine in this case, feel free to leave it as is.
For new module with new code we should use current year.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the
BREAKING CHANGE
label because if it will break users of these functions who will have to import the functions from qis rather than devices.
Can you add deprecated proxies to the moved functions at their original modules?
The @deprecated
decorator at cirq._compat
should help with that.
@pavoljuhas ptal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with updated import name suggestion
… `devices.noise_utils` (quantumlib#6453)
Some of the functions in devices.noise_utils do conversion between different errors. these functions are not specific to devices but fall more appropriately under qis.
This change is because these functions will be used in
cirq.experiments
I added the
BREAKING CHANGE
label because if it will break users of these functions who will have to import the functions from qis rather than devices.