Tensor Network Calculation of the Logarithmic Correction Exponent in the XY Model