code: def expected_entropy_ising_xx(param, alpha):
      """
      Return the analytical entropy for the IsingXX.
      """
      eig_1 = (
          1
          + np.sqrt(
              1 - 4 * np.cos(param / 2) ** 2 * np.sin(param / 2) ** 2
          )
      ) / 2
      eig_2 = (
          1
          - np.sqrt(
              1 - 4 * np.cos(param / 2) ** 2 * np.sin(param / 2) ** 2
          )
      ) / 2
      eigs = [eig_1, eig_2]
      eigs = np.array([eig for eig in eigs if eig > 0])
  
      if alpha == 1 or qml.math.isclose(alpha, 1):
          return qml.math.entr(eigs)
  
      return qml.math.log(qml.math.sum(eigs**alpha)) / (1 - alpha)
  
file_path: pennylane/tests/shadow/test_shadow_entropies.py
imports: import pytest
  import pennylane
  import pennylane.numpy
  from pennylane.shadows import ClassicalShadow
  from pennylane.shadows.classical_shadow import _project_density_matrix_spectrum
label_desc: Use image node_id 2 for calling a global function with example usage: expected_entropy_ising_xx(param, alpha) and returns: unknown, qml