  In computing the spectra of quantum mechanical systems one encounters the
Fourier transforms of time correlation functions, as given by the quantum
regression theorem for systems described by master equations. Quantum state
diffusion (QSD) gives a useful method of solving these problems by unraveling
the master equation into stochastic trajectories; but there is no generally
accepted definition of a time correlation function for a single QSD trajectory.
In this paper we show how QSD can be used to calculate these spectra directly;
by formally solving the equations which arise, we arrive at a natural
definition for a two-time correlation function in QSD, which depends explicitly
on both the stochastic noise of the particular trajectory and the time of
measurement, and which agrees in the mean with the ensemble average definition
of correlation functions.
