Multiple choice
For this circuit, what is the probability that measuring all 2 qubits yields exactly |10⟩ (qubit 0 leftmost)?
const c = circuit(2);
const theta = Math.PI / 8;
// e^{-i*theta*ZZ}
c.cx(0, 1);
c.rz(2 * theta, 1);
c.cx(0, 1);
// e^{-i*theta*(X⊗I)}
c.rx(2 * theta, 0);
return c;Commit your prediction for P(|10⟩) — then run it.