I am hoping to disentangle some subtle distinctions between solving the hidden subgroup problem on a quantum computer and performing classical Fourier analysis on functions on groups valued in fields.
Given a group $G$, a subgroup $H \le G$, and a set $X$, we say $f: G \rightarrow X$ hides $H$ if $f$ is constant on cosets of $H$ and different on distinct cosets.
The function $f$ may be evaluated using an oracle using $\mathcal{O}(\log |G| + \log |X|)$ bits. Using information from the oracle, we want to determine a generating set for $H$.
My confusion is in the set $X$, which seems to have little to no structure. I am most interested in the nonabelian case where $G=S_n$ is the symmetric group. We are essentially using $X$ to label basis states via $x \in X \mapsto | x \rangle$ so that we can create superpositions like $\frac{1}{\sqrt{|G|}}\sum_{g \in G}|g \rangle |f(g)\rangle$.
At that point one can the quantum Fourier transform to try to extract information about $H$ using various coset states.
In practice, what is $X$? For instance, if I define $f_G(\sigma) = \sigma G$ for a graph $G$, I need to represent $G$ via an adjacency matrix (otherwise the unlabeled graph is hard to represent, one would need the orbit under all permutations, or the stabilizer). Adjacency matrices $A$ (labeled graphs) can be represented as $\binom{N}{2}$ ordered bits, so then just integers $k_A$ between 0 and $2^{\binom{n}{2}+1}$. Is $X$ just this finite set of integers?
It seems natural to just embed graphs into a field, say $F_q$ via a generator $\alpha$ for the multiplicative group via $A \mapsto \alpha^{k_A}$. Then $f_G: S_n \rightarrow F_q$ via this embedding $X \rightarrow F_q$. $f_G$ should still be constant on cosets and distinct on different cosets. It seems like one could study $f_G$ using classical nonabelian Fourier analysis over $F_q$. Similarly, one could choose an embedding to $\mathbb{C}$ and study $f_G: S_n \rightarrow \mathbb{C}$.
Is there a reason replacing $X$ by a field and studying the harmonic analysis of $f_G$ is a nonstarter?