Multiple choice
Execute the circuit and measure. How likely is the outcome |01011⟩?
const c = circuit(5); c.x(1); // injected bit-flip error on data qubit 1 // Stabilizer g1 = Z0 Z1 -> ancilla 3 (parity of qubits 0 and 1) c.cx(0, 3); c.cx(1, 3); // Stabilizer g2 = Z1 Z2 -> ancilla 4 (parity of qubits 1 and 2) c.cx(1, 4); c.cx(2, 4); c.measure(); return c;
Commit your prediction for P(|01011⟩) — then run it.