// A measured register's value used in arithmetic at run time: the steps branch // on measured bits and hold no other run-time value. OPENQASM 3.1; include "stdgates.inc"; qubit[2] q; bit[2] c; h q; c = measure q; int[8] k = 2 * int[8](c);