OPENQASM 3.1; qubit q; bit c; c = measure q; while (c == 0) { x q; c = measure q; }