|q⟩ Bad Qubits

← Question Bank

Predict the output
On the seeded simulator (seed 2954), this circuit runs for 1024 shots. About how many come out |000⟩? Estimate P(|000⟩) × 1024 and pick the closest option.
⚛ The apparatus
const c = circuit(3);
// prepare periodic state: period 2, nonzero at {0,2,4,6}
c.h(0); c.h(1);
// 3-qubit QFT
c.h(0);
c.cp(Math.PI / 2, 1, 0);
c.cp(Math.PI / 4, 2, 0);
c.h(1);
c.cp(Math.PI / 2, 2, 1);
c.h(2);
// bit-reversal SWAPs
c.swap(0, 2);
// measure all qubits
c.measure();
return c;

Commit your prediction for counts of |000⟩ over 1024 shots — then run it.