Skip to content

Fix pretty-printing of Clifford gates - #576

Open
thierry-martinez wants to merge 1 commit into
TeamGraphix:masterfrom
thierry-martinez:clifford-names
Open

Fix pretty-printing of Clifford gates#576
thierry-martinez wants to merge 1 commit into
TeamGraphix:masterfrom
thierry-martinez:clifford-names

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

This commit implements clifford_to_str, which relies on the QASM3 decomposition (into I, X, Y, Z, S, S†, and H), since it is more compact than the HSZ decomposition.

CLIFFORD_LABEL is removed from _db as names were ambiguous. The QASM3 decomposition has been made optimal and is now tested.

All members of the Clifford class now appear in the documentation and docstrings are fixed.

This commit implements `clifford_to_str`, which relies on the QASM3
decomposition (into `I`, `X`, `Y`, `Z`, `S`, `S†`, and `H`), since
it is more compact than the HSZ decomposition.

`CLIFFORD_LABEL` is removed from `_db` as names were ambiguous.
The QASM3 decomposition has been made optimal and is now tested.

All members of the `Clifford` class now appear in the documentation
and docstrings are fixed.
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.12%. Comparing base (0412960) to head (6cc5ca2).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #576   +/-   ##
=======================================
  Coverage   89.11%   89.12%           
=======================================
  Files          49       49           
  Lines        7716     7723    +7     
=======================================
+ Hits         6876     6883    +7     
  Misses        840      840           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant