In Qatar you need a visa to work in the country or if you are a partner or family member of someone who intends working there you will also need a visa. In order to process your visa you will need a Qatar national to act as your sponsor. As all businesses in Qatar are owned by citizens of Qatar it is normally your new employer who will also be your sponsor.
According to Qatar Airways, Pakistani nationals can obtain a visa on arrival for a maximum stay of 30 days under the new rules. They can also apply to extend their stay by another 30 days.