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

✨ Allow for setting the gate set for the Clifford synthesis #327

Open
pehamTom opened this issue Jun 2, 2023 · 0 comments
Open

✨ Allow for setting the gate set for the Clifford synthesis #327

pehamTom opened this issue Jun 2, 2023 · 0 comments
Assignees
Labels
enhancement Anything related to improvements of the existing library

Comments

@pehamTom
Copy link
Member

pehamTom commented Jun 2, 2023

What's the problem this feature will solve?

At the moment the gate set {H, S, I, X, Y, Z, CX} is hardcoded in the Clifford synthesis algorithm. It would be hugely beneficial to make the gate set a configurable parameter.

Describe the solution you'd like

The single-qubit gates are coded into constexpr all over the code. These would have to be made dynamic. Furthermore, the functionality of the gates needs to be declared for all possible single and two-qubit gates. There are quite a few, but there is still a relatively small amount of different rules.

Instead of handling all cases via an enormous switch-statement we could have a LUT that just encodes the columns and the type of column operation for every gate. Since every gate performs a (mixture) of column XORs and swaps on 2 columns, this would probably allow for the most concise formulation.

@pehamTom pehamTom added the enhancement Anything related to improvements of the existing library label Jun 2, 2023
@pehamTom pehamTom assigned burgholzer and pehamTom and unassigned burgholzer Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Anything related to improvements of the existing library
Projects
None yet
Development

No branches or pull requests

2 participants