Multiple choice
After running this circuit, what is the probability that all 2 qubits together read |10⟩ (qubit 0 leftmost)?
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(|10⟩) — then run it.