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

dialects: (stim) Add first annotation op #3115

Merged
merged 36 commits into from
Oct 2, 2024

Conversation

kimxworrall
Copy link
Collaborator

Stim contains Annotations, which are lines of code that are not part of the operational semantics, but provide information that may be used for error-correction or other compiler analyses.

In this dialect they are stored as attributes on other operations, but the annotation operations are kept to allow users to direct these within their code.

This pr adds the first, which is a qubit coord op - indicating an assignment of a reference to a qubit to a physical coordinate. An array of these can also be attached to a stimcircuitop.

@kimxworrall kimxworrall self-assigned this Aug 29, 2024
@kimxworrall kimxworrall added the dialects Changes on the dialects label Aug 29, 2024
@kimxworrall kimxworrall changed the base branch from main to kim/stim/first-attributes August 29, 2024 17:03
@kimxworrall kimxworrall requested a review from superlopuh August 29, 2024 17:03
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.06%. Comparing base (b986f4a) to head (6aa6d24).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3115   +/-   ##
=======================================
  Coverage   90.05%   90.06%           
=======================================
  Files         438      438           
  Lines       54931    54952   +21     
  Branches     8535     8536    +1     
=======================================
+ Hits        49470    49491   +21     
  Misses       4071     4071           
  Partials     1390     1390           

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

@kimxworrall kimxworrall marked this pull request as ready for review August 29, 2024 17:08
Clean up some of the parser implementation ie. use in_angle_brackets

Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
Base automatically changed from kim/stim/first-attributes to main September 30, 2024 15:46
@kimxworrall kimxworrall merged commit 5eab358 into main Oct 2, 2024
14 checks passed
@kimxworrall kimxworrall deleted the kim/stim/first-annotation-op branch October 2, 2024 14:13
emmau678 pushed a commit that referenced this pull request Oct 8, 2024
Stim contains _Annotations_, which are lines of code that are not part
of the operational semantics, but provide information that may be used
for error-correction or other compiler analyses.

In this dialect they are stored as attributes on other operations, but
the annotation operations are kept to allow users to direct these within
their code.

This pr adds the first, which is a qubit coord op - indicating an
assignment of a reference to a qubit to a physical coordinate. An array
of these can also be attached to a stimcircuitop.

---------

Co-authored-by: Emilien Bauer <papychacal@gmail.com>
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants