|q⟩ Bad Qubits

← Question Bank

Predict the output
Sampling this circuit 1024 times on the seeded simulator (seed 8466), how many shots land on |000⟩? Estimate P(|000⟩) × 1024 and pick the closest option.
⚛ The apparatus
const c = circuit(3);
c.h(0); c.h(1); c.h(2);

// Oracle: phase-flip |000>
c.x(0); c.x(1); c.x(2);
c.h(2); c.ccx(0, 1, 2); c.h(2);
c.x(0); c.x(1); c.x(2);

// Oracle: phase-flip |111>
c.h(2); c.ccx(0, 1, 2); c.h(2);

// Diffuser
c.h(0); c.h(1); c.h(2);
c.x(0); c.x(1); c.x(2);
c.h(2); c.ccx(0, 1, 2); c.h(2);
c.x(0); c.x(1); c.x(2);
c.h(0); c.h(1); c.h(2);

return c;

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