Predict the output
Sampling this circuit 1024 times on the seeded simulator (seed 6073), how many shots land on |00⟩? Estimate P(|00⟩) × 1024 and pick the closest option.
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 counts of |00⟩ over 1024 shots — then run it.