Operators for observables in quantum optics