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

[FEATURE] Add support for ctrl gate modifier #32

Open
TheGupta2012 opened this issue Oct 21, 2024 · 0 comments
Open

[FEATURE] Add support for ctrl gate modifier #32

TheGupta2012 opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TheGupta2012
Copy link
Contributor

Feature Description

openqasm3 defines the ctrl quantum gate modifier on arbitrary quantum gate operations. Current support is only for the inv and pow modifiers but having support for arbitrary control modifiers would be pretty cool!

Implementation (Optional)

It might not be very straightforward to implement arbitrary controlled gate operations. For reference, we can see how qiskit's synthesis library does the decomposition. It will be good to do some digging there before starting with implementation as I am not entirely sure if it can be done without ancillas OR that it handles every arbitrary gate.

  • First, we should see what all support is present in qiskit and try to get some inspiration from their synthesizers.
  • Build implementation for ctrl @ which only uses 1 qubit as control AND gates from basic gate set.
  • Expand this 1-qubit control to custom gate support
  • Once we have this basic MWP, we can look to expand it and start thinking about arbitrary controlled gate compilation -
    • multi control
    • multi target
    • minimizing ancillas
@TheGupta2012 TheGupta2012 added the enhancement New feature or request label Oct 21, 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