I have an overdetermined system of $m$ equations ($i = 1, 2, \dots, m$) $$ \sum_{j=1}^n A_{ij} \, x_j = y_i \pmod{2\pi} $$ where the $x$ coefficients are unknown, and $m > n$. This is, essentially, the linear least squares problem but on $\mathbb{R}/\mathbb{Z}$. But I have no idea if there is a good way to solve or work with this kind of problem.
For context, I am trying to solve for phases of some set of $m$ equations involving complex variables,
$$ y_i = \prod_{\{j\}} x_j $$
where $i = 1, 2, \dots, m$, ${j}$ is some subset of $j = {1, 2, \dots, n}$ and $m > n$. If you take the logarithm of this equations,
$$ \ln(y_i) = \sum_{\{j\}} \ln(x_j) $$
which can be written as
$$ \ln(y_i) = \sum_{j=1}^{n} A_{ij} \ln(x_j) $$
where $A_{ij}$ is a term that is either $0$ or $1$ depending on whether the corresponding $x_j$ showed up in the product above.
Taking the imaginary part of this equation, I get a set of linear equations involving just the phases (arguments) of the complex variables but since phases wrap around every $2 \pi$, I don't think I can solve these in the regular linear least squares manner.