Structure-factor witnesses of thermal entanglement: exact optimal covariance criteria for the XY chain | Quantum Network