With complex coefficients $\alpha$ and $\beta$ and a real parameter $\omega$, how can we find the value(s) of $\omega$ such the following equations are satisfied
\begin{equation} | \alpha \cos \omega + \beta \sin \omega |^2 =1/2 \end{equation}, and
\begin{equation} | \beta \sin \omega - \alpha \cos \omega |^2 =1/2? \end{equation}
Edit: There was a correction. The question is perfect now.
Let $\alpha = \alpha_1 + i\alpha_2$ and $\beta = \beta_1 + i\beta_2$, $\alpha_1, \alpha_2, \beta_1, \beta_2 \in \mathbb{R}$.
The equation is , $$ |\alpha\cos{\omega} + \beta\sin{\omega}|^2 = \frac{1}{2}. $$
By substituting $\alpha = \alpha_1 + i\alpha_2$ and $\beta = \beta_1 + i\beta_2$ into this equation, one has
$$ |(\alpha_1 + i\alpha_2)\cos{\omega} + (\beta_1 + i\beta_2)\sin{\omega}|^2 = \\ |(\alpha_1\cos{\omega} + \beta_1\sin{\omega}) + i(\alpha_2\cos{\omega} + \beta_2\sin{\omega})|^2 = \\ (\alpha_1\cos{\omega} + \beta_1\sin{\omega})^2 + (\alpha_2\cos{\omega} + \beta_2\sin{\omega})^2 = \frac{1}{2} \Leftrightarrow \\ (\alpha^2_1+\alpha^2_2)\cos^2{\omega} + 2(\alpha_1\beta_1 + \alpha_2\beta_2)\cos{\omega}\sin{\omega} + (\beta^2_1 + \beta^2_2)\sin^2{\omega} = \frac{1}{2}(cos^2{\omega} + \sin^2{\omega}) \Leftrightarrow \\ (\alpha^2_1+\alpha^2_2-\frac{1}{2})\cos^2{\omega} + 2(\alpha_1\beta_1 + \alpha_2\beta_2)\cos{\omega}\sin{\omega} + (\beta^2_1 + \beta^2_2-\frac{1}{2})\sin^2{\omega} = 0. $$
Now, let $A = \alpha^2_1+\alpha^2_2-\frac{1}{2}$, $B = 2(\alpha_1\beta_1 + \alpha_2\beta_2)$, $C = \beta^2_1 + \beta^2_2-\frac{1}{2}$, and let us us divide both sides of the equation by $\sin^2{\omega}$ assuming that $\sin{\omega}\ne 0$, i.e., $\omega\ne \pi n, n = 0, \pm 1, \pm 2, \ldots$.
Then we have a new equation
$$ A\cot^2{\omega} + B\cot{\omega} + C = 0 \Leftrightarrow |u = \cot{\omega}| \Leftrightarrow Au^2 + Bu + C = 0, $$
which is a quadratic equation.