Hands-on lab · 1 step
Basis-encode the bit string 1011
Prepare the basis encoding of the bit string on four qubits, using at most three gates. Qubit 0 is the leftmost (most significant) bit, so the target is the basis vector with index of .
0/1 step passedBest score 0/100
Step 1: Prepare the basis state of 1011
Starting from , prepare the basis encoding of the bit string :
the column vector with a in position (counting from ) and everywhere else. Qubit carries bit , and qubit 0 is the leftmost, most significant bit.
Only gates are allowed, at most three of them. The grader computes the fidelity of your final state and requires .