Checkpoint: Synthesize a Logical Gate
This checkpoint exercises the central skill of the module: turning a target logical rotation into an exact word over the fault-tolerant Clifford+ gate set. You will synthesize a -rotation whose angle is a multiple of , so the result comes out exactly — no approximation error — letting you focus on the synthesis logic itself.
What you are building
The target is the -rotation
Recall the two facts you need, both true up to a global phase (which the unitary grader ignores):
The synthesis idea
Rotations about the same axis add their angles:
So decompose the target angle into a sum of -multiples and emit the corresponding / word:
This is exactly the procedure a real synthesizer follows for angles in the lattice; for generic angles it would instead call an -approximate routine (Solovay–Kitaev or Ross–Selinger), spending more gates for more precision. Here a single suffices, so the synthesized -count is 1.
Try it
Build the Clifford+ word that realizes . The grader compares your circuit's unitary (up to global phase) against — apply then .
Sign in on the full site to ask questions and join the discussion.