|q⟩ Bad Qubits

← Question Bank

Multiple choice
Execute the circuit and measure. How likely is the outcome |10⟩?
⚛ The apparatus
const c = circuit(2);
c.h(0); c.h(1);
// oracle: mark |10⟩ by temporarily flipping qubit 1
c.x(1);
c.cz(0, 1);
c.x(1);
// diffuser
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(|10⟩) — then run it.