You cannot come back without completing your contract period as per the new Law. Even if you cancel your Visa, You have wait outside Qatar for the remaining 2 years.

If you want to switch jobs before completing contract period,you need NOC from your current employer.