Skip to content
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

Merged
merged 15 commits into from
Nov 11, 2024

Conversation

NoureldinYosri
Copy link
Collaborator

@NoureldinYosri NoureldinYosri commented Nov 5, 2024

This PR just adds the new proto message and its serialization to/from dataclass

@NoureldinYosri NoureldinYosri marked this pull request as ready for review November 5, 2024 20:36
@NoureldinYosri NoureldinYosri marked this pull request as draft November 6, 2024 15:38
@NoureldinYosri NoureldinYosri marked this pull request as ready for review November 7, 2024 23:08
Copy link
Collaborator

@eliottrosenberg eliottrosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Nour!

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.85%. Comparing base (4bc068c) to head (5758840).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a 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.

cirq-google/cirq_google/ops/dynamical_decoupling_tag.py Outdated Show resolved Hide resolved
class DynamicalDecouplingTag:
"""A tag to indicate using DD to fill qubit time."""

protocol: str = attrs.field() # Which DD protocol to use.
Copy link
Collaborator

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').

Copy link
Collaborator Author

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

cirq-google/cirq_google/ops/dynamical_decoupling_tag.py Outdated Show resolved Hide resolved
@CirqBot CirqBot added the size: L 250< lines changed <1000 label Nov 11, 2024
@NoureldinYosri NoureldinYosri merged commit d1b0430 into quantumlib:main Nov 11, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants