Quantum rotor and its SU(3) realization