Multiple choice
Execute the circuit and measure. How likely is the outcome |0⟩?
// H|0> = (1/sqrt2)(|0> + |1>) = |+>. const c = circuit(1); c.h(0); return c;
Commit your prediction for P(|0⟩) — then run it.
// H|0> = (1/sqrt2)(|0> + |1>) = |+>. const c = circuit(1); c.h(0); return c;
Commit your prediction for P(|0⟩) — then run it.