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 qubit attribute and qubit coordinate attribute #3114

Merged
merged 28 commits into from
Sep 30, 2024

Conversation

kimxworrall
Copy link
Collaborator

Add a base attribute to the stim dialect - StimAttr which is StimPrintable so that all implementing attributes must implement print_stim.

Add two initial attributes - QubitAttr to indicate qubits, and QubitCoordAttr which provides a pair of a coordinate of a physical qubit to a QubitAttr

@kimxworrall kimxworrall added the dialects Changes on the dialects label Aug 29, 2024
@kimxworrall kimxworrall self-assigned this Aug 29, 2024
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 (7c54f35) to head (a09cc57).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3114   +/-   ##
=======================================
  Coverage   90.05%   90.06%           
=======================================
  Files         435      435           
  Lines       54647    54736   +89     
  Branches     8473     8490   +17     
=======================================
+ Hits        49214    49299   +85     
  Misses       4060     4060           
- Partials     1373     1377    +4     

☔ 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 16:23
@kimxworrall kimxworrall changed the base branch from main to kim/stim/dialect August 29, 2024 17:07
Copy link
Member

@superlopuh superlopuh left a comment

Choose a reason for hiding this comment

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

This PR adds some code and infrastructure for stim printing, but never tests it. We should either add the printing code in a future PR or add the tests here.

kimxworrall and others added 5 commits August 30, 2024 09:35
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/dialect to main August 30, 2024 14:34
@superlopuh
Copy link
Member

Let's merge this?

@superlopuh superlopuh merged commit 34d3d11 into main Sep 30, 2024
14 checks passed
@superlopuh superlopuh deleted the kim/stim/first-attributes branch September 30, 2024 15:46
emmau678 pushed a commit that referenced this pull request Oct 8, 2024
…3114)

Add a base attribute to the stim dialect - StimAttr which is
StimPrintable so that all implementing attributes must implement
print_stim.

Add two initial attributes - QubitAttr to indicate qubits, and
QubitCoordAttr which provides a pair of a coordinate of a physical qubit
to a QubitAttr

---------

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