|q⟩ Bad Qubits

← Question Bank

Multiple choice
This circuit is measured once in the computational basis. What is P(|01⟩)?
⚛ The apparatus
const c = circuit(2);
c.h(0); c.h(1);
// Oracle: phase-flip |01⟩ (qubit 0 = 0, qubit 1 = 1)
c.x(0);
c.cz(0, 1);
c.x(0);
// 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(|01⟩) — then run it.