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