Multiple choice
This circuit is measured once in the computational basis. What is P(|01⟩)?
const c = circuit(2); c.x(1); // |00> -> |01> c.h(0); // -> (|01> + |11>)/sqrt(2) c.cx(0, 1); // -> (|01> + |10>)/sqrt(2) c.z(0); // -> (|01> - |10>)/sqrt(2) return c;
Commit your prediction for P(|01⟩) — then run it.