Given a spin state: $|s\rangle$ = some linear combination of $|\uparrow\rangle + |\downarrow\rangle$ possibly with an imaginary component. How do you get from the definition of a magnetic momentum operator $\hat{\mu}_e = g\mu_B\hat{\sigma}$ to the expectation value of the electron spin magnetic moment?
$g$ is the gyrmoagnetic factor and is approximately 2.0023.
$\mu_B =\frac{e\hbar}{2m_o}$ is the Bohr magneton.
$\hat{\sigma}$ is the Pauli spin matrix.
I feel like this is the operation
$\langle s| \hat{\mu}_e |s\rangle$
If it is, I need an example walk-through with some arbitrary complex $|s\rangle$