|q⟩ Bad Qubits

← Question Bank

Multiple choice
Execute the circuit and measure. How likely is the outcome |11⟩?
⚛ The apparatus
const c = circuit(2);
// Uniform superposition
c.h(0); c.h(1);
// Oracle: phase-flip |11>
c.cz(0, 1);
// Diffuser: reflect about the mean
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(|11⟩) — then run it.