Conversion to complex potential can (maybe) be optimized in hamiltonian_elec_base_local_sub
In the spinor case, we have operations like
pot(3) + M_zI*pot(4)
which might be faster if we do instead
cmplx(pot(3),pot(4))
Also, the complex potential does not need to be recomputed for each state in the PACKED case.