Multiple choice
After this circuit, what is P(|10⟩) for the whole 2-qubit register measured together (qubit 0 leftmost)?
const c = circuit(2); c.h(0); // (|00⟩ + |10⟩)/√2 c.z(0); // (|00⟩ − |10⟩)/√2 c.x(1); // (|01⟩ − |11⟩)/√2 c.cx(0, 1); // |11⟩ → |10⟩ ⇒ (|01⟩ − |10⟩)/√2 return c;
Commit your prediction for P(|10⟩) — then run it.