Ask your HR manager regarding the policies for resignation. As per qatar law, any employee can resign with a valid reason without completing the contract period (check qatar labor law Article 51). But for resignation, there might be some benefits you might not get depending on your company policy (Company's rights).