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

Nicer string representation for _InverseCompositeGate #6262

Merged
merged 4 commits into from
May 29, 2024

Conversation

tanujkhattar
Copy link
Collaborator

cirq.inverse(g) would not have a string representation corresponding to g.__str__()† instead of (g.__repr__() ** -1).

@tanujkhattar tanujkhattar requested review from vtomole, cduck and a team as code owners August 25, 2023 22:23
@CirqBot CirqBot added the Size: XS <10 lines changed label Aug 25, 2023
@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.81%. Comparing base (e4b6ab2) to head (a8cce7b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6262      +/-   ##
==========================================
- Coverage   97.81%   97.81%   -0.01%     
==========================================
  Files        1063     1061       -2     
  Lines       91796    91489     -307     
==========================================
- Hits        89794    89487     -307     
  Misses       2002     2002              

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

@dstrain115 dstrain115 added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 20, 2024
@tanujkhattar tanujkhattar enabled auto-merge (squash) April 9, 2024 20:47
@CirqBot
Copy link
Collaborator

CirqBot commented May 5, 2024

Automerge cancelled: Can only automerge into master.

@CirqBot CirqBot removed the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label May 5, 2024
@pavoljuhas pavoljuhas disabled auto-merge May 29, 2024 19:53
@pavoljuhas pavoljuhas enabled auto-merge (squash) May 29, 2024 19:55
@pavoljuhas pavoljuhas merged commit a9776d0 into quantumlib:main May 29, 2024
34 checks passed
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Change `cirq.inverse(g)` string representation to `g.__str__()†` instead of `(g.__repr__() ** -1)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants