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

Balancing T-gates and Toffoli gates in the final cost #2

Open
PabloAMC opened this issue Dec 21, 2021 · 0 comments
Open

Balancing T-gates and Toffoli gates in the final cost #2

PabloAMC opened this issue Dec 21, 2021 · 0 comments
Assignees
Labels
bug Something isn't working code refactorization enhancement New feature or request

Comments

@PabloAMC
Copy link
Owner

PabloAMC commented Dec 21, 2021

Explanation

Some costs like Toffolis or controlled swaps are more naturally performed using Toffoli gates, while others (eg rotations) are more suitable for T-gates. This does not mean that Clifford+either of them is not universal, but it may not be the most efficient. Thus, while right now all costs are expressed as T-gates, being able to balance both in the final cost function would be beneficial.

Also, probably we should take into account better methods to count the Toffoli or T-gate synthesis cost, which I am not sure is right at the moment.

What changes are required.

  • Sort each kind of subroutine in utils in Toffoli or T gate, and change their cost correspondingly.
  • Change each method cost to take into account both costs.
  • Find a way to take into account the synthesis cost of both T-gates and Toffolis.
@PabloAMC PabloAMC added bug Something isn't working code refactorization enhancement New feature or request labels Dec 21, 2021
@PabloAMC PabloAMC self-assigned this Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code refactorization enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant