-
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
Add DynamicalDecouplingTag to cirq-google #6782
Conversation
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.
Thank you, Nour!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6782 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 1083 1085 +2
Lines 93550 93592 +42
=======================================
+ Hits 91540 91583 +43
+ Misses 2010 2009 -1 ☔ View full report in Codecov by Sentry. |
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.
Please use program_pb2
as import name.
Otherwise LGTM with nitpicky suggestions.
class DynamicalDecouplingTag: | ||
"""A tag to indicate using DD to fill qubit time.""" | ||
|
||
protocol: str = attrs.field() # Which DD protocol to use. |
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.
Nit: attrs.field()
seems unnecessary. Also please describe in the docstring, e.g.,
Attributes:
protocol: The name of the decoupling protocol (eg 'X', 'XY4').
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.
Added the docstring
Nit: attrs.field() seems unnecessary. Also please describe in the docstring, e.g.,
this is requried by attrs
for the validation code
This PR just adds the new proto message and its serialization to/from dataclass