  Spontaneous emission and the inelastic scattering of photons are two natural
processes usually associated with decoherence and the reduction in the capacity
to process quantum information. Here we show that when suitably detected, these
photons are sufficient to build all the fundamental blocks needed to perform
quantum computation in the emitting qubits while protecting them from
deleterious dissipative effects. We exemplify by showing how to teleport an
unknown quantum state and how to efficiently prepare graph states for the
implementation of measurement-based quantum computation.
