Functional 4QAM receiver