Unless a company gives you a no-objection letter when you resign, you cannot come back to Qatar under a different sponsorship for 2 years. Most companies won't give a no objection letter because it cost a lot to hire the employee.