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