Multielectrode quantum well laser for digital switching