The RZ gate rotates the amplitudes of a single-qubit state in opposite directions. For angle θ, the |0⟩ amplitude turns clockwise by θ/2, while the |1⟩ amplitude turns counterclockwise by θ/2. Their magnitudes, and therefore the outcome probabilities, remain unchanged. section 3.2.2
Represent a state as a pair of amplitudes and update both directions:
- Multiply the |0⟩ amplitude by cis(-θ/2). section 3.2.2
- Multiply the |1⟩ amplitude by cis(θ/2). section 3.2.2
- Keep both amplitude magnitudes, and thus both measurement probabilities, unchanged. section 3.2.2
Applying RZ(π/3)
theta = pi/3 state = [cis(-theta/2)*state[0], cis(theta/2)*state[1]] section 3.2.2
Figure 3.22 The general form of the effect of the RZ gate on a pair of amplitudes
Visualizes the opposite rotations applied to the two amplitudes. section 3.2.2
