The quantum optics of gravitational waves