Let $GR(p^2,m)$ be the Galois ring with $p^{2m}$ elements and characteristic $p^2$. Let $Z^m_{p^2}$ be the cross product of $m$ copies of $Z_{p^2}$ which is the set of integers from zero up to $p^2-1$.
Let $a \in GR(p^2,m)$ where $p$ is an odd prime and $m$ is a positive integer. As $a$ varies over $GR(p^2,m)$, consider the set of values $ A=\left\{\sum_{x \in GR(p^2,m)}w^{Tr(ax)} \right\}$ where $w=e^{2\pi i/p^2}$, $Tr:GR(p^2,m)\rightarrow GR(p^2,1)$ is the trace function.
Let $b \in Z^m_{p^2}$ where $p$ is an odd prime. As $b$ varies over $Z^m_{p^2}$, consider the set of values $ B=\left\{\sum_{x \in Z^m_{p^2}}w^{b \cdot x} \right\}$ where $w=e^{2\pi i/p^2}$, $b \cdot x$ is the classical dot product of $b$ and $x$. Are the sets $A$ and $B$ equal?
Considering finite fields, the answer would be yes. However, there are zero divisors here which is confusing.
Many thanks in advance.