Multiple choice
For this circuit, what is the probability that measuring all 2 qubits yields exactly |01⟩ (qubit 0 leftmost)?
const c = circuit(2); c.h(0); c.h(1); // iteration 1 c.cz(0, 1); c.h(0); c.h(1); c.x(0); c.x(1); c.cz(0, 1); c.x(0); c.x(1); c.h(0); c.h(1); // iteration 2 c.cz(0, 1); c.h(0); c.h(1); c.x(0); c.x(1); c.cz(0, 1); c.x(0); c.x(1); c.h(0); c.h(1); return c;
Commit your prediction for P(|01⟩) — then run it.