we describe an integrated waveguide device that creates entanglement between a sequence of periodically spaced photons in a single input and output mode . the device consists of a polarization maintaining integrated waveguide chip containing a number of delay lines , integrated multimode interferometers with the potential for rapid switching , a polarization controller and off chip computer logic and timing . the device is capable of creating a diverse array of outputs such as linear cluster states and ring cluster states in a single output mode .