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

Add CZ Gate and fix cx bug #7

Closed
wants to merge 3 commits into from

Conversation

contra-bit
Copy link
Contributor

Hello Dear Maintainers,

it seems that there has been a Bug regression and the cx bug has reappeared again.

I have improve the tests, so that the tests now include CX and cx.

Further I have also added the CZ gate.

Merging this PR, will fix the CI for PR for YaoHIR , which again will fix the notebooks for PR [PR 102 for ZXCalculus.jl]https://github.com/QuantumBFS/ZXCalculus.jl/pull/102l)

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2734669) 92.46% compared to head (d750ba3) 92.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   92.46%   92.68%   +0.21%     
==========================================
  Files           4        4              
  Lines         239      246       +7     
==========================================
+ Hits          221      228       +7     
  Misses         18       18              

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

@Roger-luo
Copy link
Member

Roger-luo commented Feb 8, 2024

I believe we had the same conversation about this before, this change is violating the definition of OpenQASM 2.0

please read Table I carefully https://arxiv.org/pdf/1707.03429v2.pdf

@Roger-luo Roger-luo closed this Feb 8, 2024
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.

2 participants