Per IBM's documentation for quantum circuits, the general unitary operator is defined as: $\hat{U}=\begin{bmatrix}cos(\frac{\theta}{2})&-e^{i\phi}sin(\frac{\theta}{2})\\e^{i\phi}sin(\frac{\theta}{2})&e^{i\phi+i\lambda}cos(\frac{\theta}{2})\end{bmatrix}$ For a better understanding I was working ...