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 DEFGATE AS CIRCUIT #43

Open
stylewarning opened this issue Jan 31, 2020 · 2 comments
Open

Add DEFGATE AS CIRCUIT #43

stylewarning opened this issue Jan 31, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@stylewarning
Copy link
Member

stylewarning commented Jan 31, 2020

It Would Be Nice to define gates by some circuit decomposition. This is different than DEFCIRCUIT since those are simply for expansion and not meant to represent "Gates".

DEFGATE CZ p q AS CIRCUIT:
    H p
    CNOT p q
    H p

This is not a DEFCIRCUIT! This is the expression of a unitary operation (which is not expanded!) as a sequence of gates.

Concrete qubit indices shouldn't be allowed.

@stylewarning stylewarning added the enhancement New feature or request label Jan 31, 2020
@stylewarning
Copy link
Member Author

(I'm open to another keyword besides CIRCUIT.)

@stylewarning
Copy link
Member Author

Other ideas: AS PRODUCT, AS SEQUENCE, AS OTHER-GATES

Other note: If somebody implements this, you'd need to check for circularity.

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