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

Increase coverage of clifford protocols to parity_gates #6338

Merged
merged 4 commits into from Nov 11, 2023

Conversation

NoureldinYosri
Copy link
Collaborator

part of #5906 (comment)

@NoureldinYosri NoureldinYosri marked this pull request as ready for review November 6, 2023 21:34
@NoureldinYosri NoureldinYosri requested review from vtomole, cduck and a team as code owners November 6, 2023 21:34
Comment on lines 298 to 299
).on(*qubits)
] + clifford_gate.SingleQubitCliffordGate.Z_sqrt.on_each(*qubits)
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT - for the sake of symmetry with XX and YY pow gates

Suggested change
).on(*qubits)
] + clifford_gate.SingleQubitCliffordGate.Z_sqrt.on_each(*qubits)
).on(*qubits),
clifford_gate.SingleQubitCliffordGate.Z_sqrt.on_each(*qubits),
]

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

LGTM with a few small nits.

@NoureldinYosri NoureldinYosri enabled auto-merge (squash) November 11, 2023 00:17
Copy link

codecov bot commented Nov 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (11ae0bd) 97.83% compared to head (a40cc50) 97.84%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6338   +/-   ##
=======================================
  Coverage   97.83%   97.84%           
=======================================
  Files        1108     1108           
  Lines       96372    96398   +26     
=======================================
+ Hits        94285    94317   +32     
+ Misses       2087     2081    -6     
Files Coverage Δ
cirq-core/cirq/ops/parity_gates.py 99.42% <100.00%> (+1.26%) ⬆️
cirq-core/cirq/ops/parity_gates_test.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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

@NoureldinYosri NoureldinYosri merged commit 0b90ed6 into master Nov 11, 2023
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants