pyzx icon indicating copy to clipboard operation
pyzx copied to clipboard

Feature Request: Adding Phase Gadgets

Open y-richie-y opened this issue 4 years ago • 1 comments

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

y-richie-y avatar Apr 25 '20 13:04 y-richie-y

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 avatar Apr 26 '20 12:04 jvdwetering