Say I have a matrix
$$ Z=\begin{pmatrix}-\frac{1}{\sqrt 2} & \frac{i}{\sqrt 2} \\ \frac{i}{\sqrt 2} & -\frac{1}{\sqrt 2} \end{pmatrix} $$
and another matrix
$$ U(\theta, \phi, \lambda) = \begin{pmatrix} \cos\left(\frac{\theta}{2}\right) & -e^{i\lambda} \sin\left(\frac{\theta}{2}\right) \\ e^{i\phi} \sin\left(\frac{\theta}{2}\right) & e^{i(\lambda + \phi)} \cos\left(\frac{\theta}{2}\right) \end{pmatrix} $$
I now want to solve for $\theta$, $\phi$ and $\lambda$ such that $Z=U$ ($0 \leq \phi <2\pi$, $0\leq \theta \leq \pi$ and $0\leq \lambda < 2\pi$). Is there any way to do this directly using say Solve
? From the documentation, it seems that it works only for single equations rather than matrix equations like these. Is there any workaround so that I can directly solve for the three parameters and store them in three different variables?