A Group-Theoretical Approach to Quantum Optics