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

convert SingleQubitCliffordGate to phasedXZ during serialization #6419

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

NoureldinYosri
Copy link
Collaborator

No description provided.

@NoureldinYosri NoureldinYosri marked this pull request as ready for review January 18, 2024 23:39
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7da7f64) 97.81% compared to head (f184150) 97.81%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6419   +/-   ##
=======================================
  Coverage   97.81%   97.81%           
=======================================
  Files        1111     1111           
  Lines       97107    97115    +8     
=======================================
+ Hits        94986    94994    +8     
  Misses       2121     2121           

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

@NoureldinYosri NoureldinYosri merged commit a3eed6b into main Jan 18, 2024
38 checks passed
@@ -175,7 +175,9 @@ def _serialize_gate_op(
out=msg.phasedxpowgate.exponent,
arg_function_language=arg_function_language,
)
elif isinstance(gate, cirq.PhasedXZGate):
elif isinstance(gate, (cirq.PhasedXZGate, cirq.ops.SingleQubitCliffordGate)):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be done explicitly, e.g. with optimize_for_target_gateset rather than implicitly during serialization? IIRC, we prefer to make transformations like this explicit to the user.

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.

3 participants