The controlled phase gate contributes exactly when both of its computational-basis input bits are one. It is diagonal and symmetric between its two qubits.
The magic state and a short controlled-NOT gate circuit can apply either or to an input, with a measured bit identifying the branch.
Articles by others on the same topic
There are currently no matching articles.