Skip to content

convert SingleQubitCliffordGate to phasedXZ during serialization#6419

Merged
NoureldinYosri merged 1 commit intomainfrom
clifford_xz
Jan 18, 2024
Merged

convert SingleQubitCliffordGate to phasedXZ during serialization#6419
NoureldinYosri merged 1 commit intomainfrom
clifford_xz

Conversation

@NoureldinYosri
Copy link
Copy Markdown
Collaborator

No description provided.

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

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
arg_function_language=arg_function_language,
)
elif isinstance(gate, cirq.PhasedXZGate):
elif isinstance(gate, (cirq.PhasedXZGate, cirq.ops.SingleQubitCliffordGate)):
Copy link
Copy Markdown
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