Multiple choice
For this circuit, what is the probability that measuring all 3 qubits yields exactly |110⟩ (qubit 0 leftmost)?
const c = circuit(3); c.x(2); // start at position 1 = |01> // coin toss c.h(0); // decrement when coin = |0> c.x(0); c.cx(0, 2); c.ccx(0, 2, 1); c.x(0); // increment when coin = |1> c.ccx(0, 2, 1); c.cx(0, 2); c.measure(); return c;
Commit your prediction for P(|110⟩) — then run it.