Multiple choice
Execute the circuit and measure. How likely is the outcome |0⟩?
const theta = Math.PI / 2; const c = circuit(1); c.h(0); c.p(theta, 0); c.h(0); return c;
Commit your prediction for P(|0⟩) — then run it.
const theta = Math.PI / 2; const c = circuit(1); c.h(0); c.p(theta, 0); c.h(0); return c;
Commit your prediction for P(|0⟩) — then run it.