Skip to content

remove partial CZs if allow_partial_czs=False#6436

Merged
NoureldinYosri merged 9 commits intomainfrom
partial_czs
Feb 2, 2024
Merged

remove partial CZs if allow_partial_czs=False#6436
NoureldinYosri merged 9 commits intomainfrom
partial_czs

Conversation

@NoureldinYosri
Copy link
Copy Markdown
Collaborator

fixes #6428

At the point where the function gets called no partial CZs should be there excpet CZ**-1 which gets replaced by CZ

@CirqBot CirqBot added the size: M 50< lines changed <250 label Feb 1, 2024
@NoureldinYosri NoureldinYosri marked this pull request as ready for review February 1, 2024 21:49
@NoureldinYosri NoureldinYosri requested review from a team, cduck and vtomole as code owners February 1, 2024 21:49
@NoureldinYosri NoureldinYosri changed the title remove partial CZs if allow_partial_czs remove partial CZs if allow_partial_czs=False Feb 1, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ee56c59) 97.81% compared to head (3f15e1e) 97.81%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6436      +/-   ##
==========================================
- Coverage   97.81%   97.81%   -0.01%     
==========================================
  Files        1111     1111              
  Lines       97121    97163      +42     
==========================================
+ Hits        95000    95040      +40     
- Misses       2121     2123       +2     

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

Comment thread cirq-core/cirq/transformers/analytical_decompositions/two_qubit_to_cz_test.py Outdated
@NoureldinYosri NoureldinYosri enabled auto-merge (squash) February 2, 2024 19:13
@NoureldinYosri NoureldinYosri merged commit e9e12ee into main Feb 2, 2024
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
@pavoljuhas pavoljuhas deleted the partial_czs branch January 22, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup_operations replaces CZ with CZ**-1

3 participants