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

Take account of angles when optimizing for TK2 gate count #1595

Open
cqc-alec opened this issue Sep 30, 2024 · 0 comments
Open

Take account of angles when optimizing for TK2 gate count #1595

cqc-alec opened this issue Sep 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cqc-alec
Copy link
Collaborator

cqc-alec commented Sep 30, 2024

The standard FullPeepholeOptimize pass seeks to minimize the number of 2-qubit gates in the resulting circuit. When the target gate is TK2, this may be too crude a metric. For example, on Quantinuum devices the number of non-zero angles in the gate is important, and a cost function such as (0.3 + 0.7n) where 1<=n<=3 is the number of non-zero angles in the gate may be more appropriate.

@cqc-alec cqc-alec added the enhancement New feature or request label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant