  We introduce the notion of $Q$-commuting operators which is a generalization
of commuting operators. We prove a generalized version of commutant lifting
theorem and Ando's dilation theorem in the context of $Q$-commuting operators.
