Skip to content

Conversation

dstrain115
Copy link
Collaborator

  • This adds support for parameters in InternalTag.

- This adds support for parameters in InternalTag.
@dstrain115 dstrain115 requested review from wcourtney, vtomole, verult and a team as code owners February 12, 2025 19:04
@CirqBot CirqBot added the size: S 10< lines changed <50 label Feb 12, 2025
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.18%. Comparing base (60f2590) to head (c953938).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7060   +/-   ##
=======================================
  Coverage   98.18%   98.18%           
=======================================
  Files        1089     1089           
  Lines       95202    95244   +42     
=======================================
+ Hits        93473    93515   +42     
  Misses       1729     1729           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


kw_dict = {}
for k, v in msg.internal_tag.tag_args.items():
kw_dict[k] = arg_func_langs.arg_from_proto(v, arg_function_language='exp')
Copy link
Collaborator

@pavoljuhas pavoljuhas Feb 21, 2025

Choose a reason for hiding this comment

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

Should we set arg_function_language also in the to_proto method above at line 71?

Also, let us do the msg.WhichOneof check (L83) first before building kw_dict.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

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.

LGTM with a minor comment.

@dstrain115 dstrain115 added this pull request to the merge queue Feb 24, 2025
Merged via the queue into quantumlib:main with commit aee2c30 Feb 24, 2025
38 checks passed
@dstrain115 dstrain115 deleted the internal_tag_params branch February 24, 2025 14:09
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
* Support parameters in InternalTag

- This adds support for parameters in InternalTag.

* Address comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants