code: def expected_entropy_ising_xx(param):
      """
      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 = [eig for eig in eigs if eig > 0]
  
      expected_entropy = eigs * np.log(eigs)
  
      expected_entropy = -np.sum(expected_entropy)
      return expected_entropy
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import VnEntropy, Shots
  from pennylane.measurements.vn_entropy import VnEntropyMP
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling a global function with example usage: expected_entropy_ising_xx(param) and returns: expected_entropy