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

Is there a reason user defined gates are not supported? #3

Open
wjyoumans opened this issue Nov 16, 2021 · 1 comment
Open

Is there a reason user defined gates are not supported? #3

wjyoumans opened this issue Nov 16, 2021 · 1 comment

Comments

@wjyoumans
Copy link

User defined gates are included even in the common include file qelib1.inc, for example:

gate sx a { sdg a; h a; sdg a; }

Is there any plan to support these? Is there a difficulty with adding them? (If it just hasn't been looked at yet I'd be happy to try myself, just making sure it isn't a well-known difficulty).

Currently these error with MissingSemicolon.

@wjyoumans
Copy link
Author

I see user defined gates are supported, like the Hadamard gate in the README example. I think it is an issue with having multiple instructions in the definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant