I'm trying to figure out the following situation. Say we have a Bloch sphere with $|g\rangle$ on the positive z-axis and $|e\rangle$ on the negative z-axis. The state is initially in $|g\rangle$, but undergoes a $\pi/2$ rotation about some axis, and ends up in $\frac{|g\rangle+|e\rangle}{\sqrt{2}}$. Now, I want to find the operator $\hat{R}$ that performs this rotation.
I'm not exactly sure how, but I started thinking along the lines of a general pure qubit state. In this case it is given by $\cos({\theta/2})|g\rangle + e^{i \phi}\sin({\theta/2})|e\rangle$. So we begin with $\theta = 0$, and after the rotation we have $\theta = \pi/2$, $\phi = 0$. As we start parallel to the z-axis, I suppose the rotation is about a combination of the x and the y axis. But I don't really see how to work that out. I also know that $R(\theta)_{x,y} = \cos({\theta/2})*1 - i \sin({\theta/2}) X,Y$ where the 1 is the identity matrix and $X,Y$ the pauli matrices. So its some combination of these two operators, that lead to the state I want. I just can't figure out how to construct it, and I was wondering if you could help me with this.