The concurrence of two alternate qubits in a four-qubit Heisenberg
XX chain is investigated when a uniform magnetic field
B is included. It is found that there is no thermal entanglement between alternate qubits if
B is close to zero. A magnetic field can induce entanglement in a certain range both for the antiferromagnetic and ferromagnetic cases. Near zero temperature, the entanglement undergoes two sudden changes with increasing value of the magnetic field
B. This is due to the changes in the ground state. This novel property may be used as a quantum entanglement switch. The anisotropy in the system can also induce the entanglement between two alternate qubits.