OpenQL icon indicating copy to clipboard operation
OpenQL copied to clipboard

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

Open jvansomeren opened this issue 2 years ago • 1 comments

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 avatar May 09 '23 14:05 jvansomeren

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?

jvansomeren avatar May 28 '23 21:05 jvansomeren