Hands-on lab · 1 step
Three-bit phase estimation of a phase gate
Complete a three-qubit phase-estimation circuit around the controlled powers , , of a black-box phase gate , whose eigenvector is with eigenvalue . For the phase is . The grader substitutes , , and and requires the counting register to read with with certainty.
Step 1: Read the eigenphase in three bits
The register has four qubits, all starting in . Qubits form the counting register with qubit the most significant bit, ; qubit is the target.
The circuit already contains three controlled placeholders acting on qubit : U1 controlled by qubit (weight ), U2 controlled by qubit (weight ) and U4 controlled by qubit (weight ). Keep each exactly once and add gates from , at most operations in total including the three placeholders, and no measurements.
The grader runs four cases, substituting :
- phase-1-8: () must give the counting distribution ;
- phase-3-8: must give ;
- phase-5-8: must give ;
- phase-4-8: () must give .
Each check compares the full vector of the counting qubits, summed over qubit , within . After the controlled powers the counting register holds when , so the last stage must undo the Fourier transform.