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 Request: Adding Phase Gadgets #36

Open
y-richie-y opened this issue Apr 25, 2020 · 1 comment
Open

Feature Request: Adding Phase Gadgets #36

y-richie-y opened this issue Apr 25, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@y-richie-y
Copy link
Contributor

Is there an easy way of adding a phase gadget to a graph / circuit?

@jvdwetering
Copy link
Collaborator

For Circuits there is the gate type ParityPhase, that acts as a phase-gadget on the specified set of qubits. There is no straightforward way right now to add a phase-gadget to a Graph other than adding the two vertices yourself. It might indeed be a good idea to add an easy function to do that though.

@jvdwetering jvdwetering added the enhancement New feature or request label May 12, 2022
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

2 participants