Relative phase describes the phase difference between two components of one quantum state. In , changes the phase of the component compared with . The probabilities in the computational basis are 1/2 and 1/2 for every .
Measure in the basis and instead. The + outcome has probability . Varying from 0 to changes this probability from one to zero. The measurement combines the two amplitudes so their phase difference affects the result.
This is the quantum version of a basic interference experiment. A path delay changes the phase of one contribution, and recombining the paths converts that phase into a change in detected intensity or outcome frequency.
Set . The computational basis still gives equal outcome probabilities, and so does the X basis in this case. A measurement in the Y basis can detect this phase. Which basis reveals the phase depends on the reference built into the measurement.