Multiple choice
Execute the circuit and measure. How likely is the outcome |000⟩?
const c = circuit(3); c.x(1); // inject error c.x(1); // correct: X * X = I, restoring |000> return c;
Commit your prediction for P(|000⟩) — then run it.
const c = circuit(3); c.x(1); // inject error c.x(1); // correct: X * X = I, restoring |000> return c;
Commit your prediction for P(|000⟩) — then run it.