|q⟩ Bad Qubits

← Question Bank

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