TE and TM
TE or TM mode is mainly dependent on waveguide and QW strain compensation type, if it is compressive strain, then the beam will be TE mode, direction is align with slow axis (slow angle direction); if it is tensile strain compensation, then the beam will be TM mode, direction is align with the fast axis (larger angle direction).
Hope this help