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

Check 2x2 unitary in has_stabilizer_effect #2938

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

fedimser
Copy link
Collaborator

If everything else fails (i.e. op and its gate don't declare has_stabilizer effect), and op has unitary, 2hich is 2x2 unitary, explicilty check if that unitary has stabilizer effect.
After this change has_stabilizer_effect returns True exactly for those gates which are supported by CliffordSimulator.
This is follow-up to PR #2803.

This is copy of PR #2885 which ended up in urepairable state because of CLA.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Apr 24, 2020
@fedimser fedimser requested a review from viathor April 24, 2020 21:40
@fedimser fedimser added the Ready for Re-Review For when reviewers take their time. label Apr 24, 2020
@smitsanghavi smitsanghavi merged commit 46327bd into quantumlib:master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining. Ready for Re-Review For when reviewers take their time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants