Mathematica Assist. $yx=qxy$

In Mathematica program, How to define a product of two elements $x$ and $y$ such that $$yx=qxy$$ with $q$ is a number commuting with both $x$ and $y$.