Predict the output
You apply the Hadamard gate to and then measure in the computational basis. What is the probability of outcome 1?
return circuit(1).h(0);
Commit your prediction for P(|1⟩) — then run it.
return circuit(1).h(0);
Commit your prediction for P(|1⟩) — then run it.