|q⟩ Bad Qubits

← Question Bank

Multiple choice
This circuit is measured once in the computational basis. What is P(|0⟩)?
⚛ The apparatus
const c = circuit(1);
// forward Clifford word: H, S, H
c.h(0);
c.s(0);
c.h(0);
// inverse: reverse order and invert each gate (H^-1 = H, S^-1 = Sdg)
c.h(0);
c.sdg(0);
c.h(0);
c.measure();
return c;

Commit your prediction for P(|0⟩) — then run it.