|q⟩ Bad Qubits

← Question Bank

Multiple choice
For this circuit, what is the probability that measuring all 2 qubits yields exactly |10⟩ (qubit 0 leftmost)?
⚛ The apparatus
const theta = Math.PI / 6;
const c = circuit(2);
// 1. prepare GHZ
c.h(0);
c.cx(0, 1);
// 2. encode the phase on both qubits
c.p(theta, 0);
c.p(theta, 1);
// 3. decode back onto qubit 0
c.cx(0, 1);
c.h(0);
// 4. measure
c.measure();
return c;

Commit your prediction for P(|10⟩) — then run it.