Multiple choice
After running this circuit, what is the probability of measuring |10⟩?
const c = circuit(2); // Subroutine A c.ry(Math.PI / 3, 0); // Oracle: phase-flip |10> via X(1), CZ(0,1), X(1) c.x(1); c.cz(0, 1); c.x(1); // Diffuser c.ry(-Math.PI / 3, 0); // A_dag c.x(0); c.x(1); // phase-flip |00> c.cz(0, 1); c.x(0); c.x(1); c.ry(Math.PI / 3, 0); // A return c;
Commit your prediction for P(|10⟩) — then run it.