  Multipartite entanglement is indispensable in the implementation of quantum
technologies and the fundamental test of quantum mechanics. Here we study how
the W state and W-like state may be generated in a quantum-dot array by
controlling the coupling between an incident photon and the quantum dots on a
waveguide. We also discuss how the coupling may be controlled to observe the
sudden death of entanglement. Our work can find potential applications in
quantum information processing.
