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

Router has built in knowledge of gates names swap, move,tswap,tmove, etc. #490

Open
jvansomeren opened this issue May 9, 2023 · 1 comment

Comments

@jvansomeren
Copy link
Collaborator

Router has built-in knowledge of gate names swap, move, tswap, tmove and perhaps more (prep_init, etc.).
Is this ok? Kind of reserved gate names?
Or should it be made configurable to the router what these are?
Or should it be annotated in the configuration file somehow?

@jvansomeren
Copy link
Collaborator Author

The option assume_prep_only_initializes specifies that the prep gate indeed sets the qubit to |0>.
Similarly one could expect options that the other gates (swap, move, tswap, tmove) do what they are supposed to do.
So for prep this is the solution: using an option. But is this a good way to do this?

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