We consider a general proposal for generating a train of entangled single-p
hoton wavepackets. The photons are created inside a resonator via an intera
ction with an active medium. In the course of the generation process photon
s are transferred to the continuum outside the resonator through cavity los
s. We show that wave packets generated in this way can be regarded as indep
endent logical qubits. This and the possibility of producing strong entangl
ement between the qubits suggests many applications in quantum communicatio
n. We give a specific example in the context of cavity QED and show that un
desired decoherence effects can be efficiently reduced in the considered sc
heme.