|q⟩ Bad Qubits

← Question Bank

Multiple choice
For this circuit, what is the probability that measuring all 3 qubits yields exactly |010⟩ (qubit 0 leftmost)?
⚛ The apparatus
const c = circuit(3);
c.h(0);
c.swap(0, 2);
c.h(2);
c.cp(-Math.PI / 2, 1, 2);
c.h(1);
c.cp(-Math.PI / 4, 0, 2);
c.cp(-Math.PI / 2, 0, 1);
c.h(0);
c.measure();
return c;

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