It has been a while without using Latex, my wish is to reproduce a table like the one attached below. How can I make it?
\begin{document}
\begin{table}
\capthe tion{Resource analysis for proposed compiler.}
\begin{tabular}{lSSSSSS}
\toprule
\multirow{2}{*}{n-qubits} &
\multicolumn{2}{c}{Total gates} &
\multicolumn{2}{c}{Depth steps} \\
& {State Generation} & {QFT} & {StateGeneration} & {QFT} & \\
\midrule
2 & 7 & 11 & 5 & 9 \\
4 & 13 & 42 & 7 & 25 \\
6 & 19 & 93 & 9 & 41 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}