OPENQASM 3.1; qubit[6] q; qubit r; let evens = q[0:2:5]; let tail = q[-2:] ++ r; h evens; x tail; cx q[{1, 3}], q[{2, 4}];