In this paper, we study quantum codes over F-q from cyclic codes over F-q + uF(q) + vF(q) + uvF(q), where u(2) = u, v(2) = v, uv = vu, q = p(m), and p is an odd prime. We give the structure of cyclic codes over F-q + uF(q) + vF(q) + uvF(q) and obtain self-orthogonal codes over F-q as Gray images of linear and cyclic codes over F-q + uF(q) + vF(q) + uvF(q). In particular, we decompose a cyclic code over F-q + uF(q) + vF(q) + uvF(q) into four cyclic codes over F-q to determine the parameters of the corresponding quantum code.