Roger Federer's return to the ATP Tour lasted just two matches at the Qatar Open as he was beaten in the last eight by the brilliant Nikoloz Basilashvili.