  In this paper, we propose a deterministic entanglement swapping protocol for
generating a shared three-qubit W state between two remote parties. Our method
offers a reliable alternative to existing probabilistic protocols for W state
entanglement swapping, which is crucial for various quantum information
processing tasks. We present a detailed quantum circuit design, implemented
using the Qiskit simulator, that outlines the preparation of W states and the
execution of joint measurements required for the entanglement swapping process.
Furthermore, we analyze the effects of imperfect operations and noisy
communication channels on the fidelity of the resulting shared W state. To
address these challenges, we introduce a weak measurement-based purification
method that enhances fidelity in the presence of amplitude damping. Through
mathematical analysis and Qiskit simulations, we demonstrate the effectiveness
of our proposed protocol, offering a practical solution for high-fidelity W
state generation in real-world quantum communication scenarios.
