A two-qubit parity phase gate multiplies odd-parity computational vectors by and fixes even-parity ones. With ,The first controlled-NOT gate computes in the second wire, the phase gate multiplies by , and the last controlled-NOT gate restores the original bits. This compute-phase-uncompute construction leaves the data unchanged except for the desired phases. The more general Pauli-string phase by parity computation uses the same mechanism. In terms of the Pauli Z gate, ; the scalar factor ensures equality as a matrix, rather than only up to global phase.
The phase gate with angle . It rotates the Bloch vector by around , and . It is not a Clifford gate: it takes the positive eigenstate to a state with vector , outside the stabilizer octahedron.
For , the difference vanishes on and multiplies by . Its operator norm is therefore . Choosing the nearest angle on the grid , with circular distance, gives and a uniform bound of this size on the output-state norm error. This bound concerns state vectors, not an asserted equality with measurement-probability error.
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 controlled-Z gate is . Conjugating the target of a controlled-NOT gate by Hadamard gates turns controlled-NOT into controlled-Z.
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.