the company is willing to sponsor your H1 visa, then you could wait your H1 visa valid then quit your PHD. You cannot apply OPT in this way neither.