Text this: Exact and approximate log-likelihood ratio of M-ary QAM with two-time dimensions