Checkpoint: Phase Engineering
Throughout this module you have met the three standard phase tools: the Hadamard gate to create superpositions, the S gate to add a relative phase, and the T gate to add a relative phase. This checkpoint asks you to combine them to hit a precise target in the complex plane.
The target state
Your goal is the single-qubit state
The factor places the amplitude at in the complex plane, squarely in the second quadrant. Working out the Cartesian form,
so the two amplitudes are (real, positive) and (magnitude , angle ). Both have the same magnitude, which means a -basis measurement still gives 50/50 — the phase is hidden unless you use interference to reveal it.
Phase as addition
Phase gates accumulate by addition. A phase gate applied after yields a combined relative phase of . Writing the angles of the standard gates,
So the recipe is: put the qubit in an equal superposition with , then rotate its Bloch vector by with , then by another with .
Why this is useful
In algorithms such as the quantum Fourier transform, specific relative phases of the form are required at each step. Many of those fractions decompose into sums of and increments — precisely the contributions of and . Knowing how to build an exact phase from a small palette of gates is the core skill behind compiling quantum algorithms onto real hardware.
Try it
Engineer the state using , , and . The grader checks the full statevector (up to global phase), so both the magnitude and angle of each amplitude must match.
After running, look at the amplitude panel: the entry should read on the positive real axis, and the entry should sit at in the complex plane — real part , imaginary part (each scaled by ).
Sign in on the full site to ask questions and join the discussion.