OPENQASM 3.1; input uint n; qubit[n] q; h q[0]; for uint i in [0:n-2] { cx q[i], q[i + 1]; }