Hands-on lab · 1 step
Amplitude-encode the vector (1, 2, 3, 4)
Prepare the amplitude encoding of on two qubits with at most five gates from : one rotation for the split on qubit and a uniformly controlled on qubit , compiled into two rotations and two CNOTs.
0/1 step passedBest score 0/100
Step 1: Prepare (1, 2, 3, 4)/√30
Starting from , prepare the normalised amplitude encoding of :
The index of is : qubit 0 is the most significant bit, so sit in the half and in the half .
Allowed gates: and , at most five gates in total. Angles are entered in radians. The grader computes the fidelity of your final state and requires , so give each angle to at least seven significant digits.