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 only_reduce parameter to GreedyPauliSimp #1669

Merged
merged 43 commits into from
Nov 11, 2024
Merged

Conversation

sjdilkes
Copy link
Contributor

GreedyPauliSimp resynthesises a circuit from the PauliGraph structure.

It's possible that this resynthesis ends up adding more two-qubit gates than the original circuit had.

This new parameter allows the user to specify to only return the resynthesised circuit if it reduces the number of two-qubit gates.

Related issues

Please mention any github issues addressed by this PR.

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@sjdilkes sjdilkes marked this pull request as ready for review November 11, 2024 13:55
@sjdilkes sjdilkes requested a review from yao-cqc November 11, 2024 13:55
@yao-cqc
Copy link
Contributor

yao-cqc commented Nov 11, 2024

We should also update the changelog

@sjdilkes sjdilkes merged commit d6d5801 into main Nov 11, 2024
32 checks passed
@sjdilkes sjdilkes deleted the only-return-smaller-answers branch November 11, 2024 14:46
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