class_docstr: Tests for the mutual information functions
docstr: Test that relative_entropy is correct with custom wire labels
docstr_tok: ["Test","that","relative_entropy","is","correct","with","custom","wire","labels"]
code: def test_entropy_wire_labels(self, device, tol):
      """Test that relative_entropy is correct with custom wire labels"""
      param = np.array([0.678, 1.234])
      wires = ["a", 8]
      dev = qml.device(device, wires=wires)
  
      @qml.qnode(dev)
      def circuit(param):
          qml.RY(param, wires=wires[0])
          qml.CNOT(wires=wires)
          return qml.state()
  
      rel_ent_circuit = qml.qinfo.relative_entropy(
          circuit, circuit, [wires[0]], [wires[1]]
      )
      actual = rel_ent_circuit((param[0],), (param[1],))
  
      # compare transform results with analytic results
      first_term = np.cos(param[0] / 2) ** 2 * (
          np.log(np.cos(param[0] / 2) ** 2)
          - np.log(np.cos(param[1] / 2) ** 2)
      )
      second_term = np.sin(param[0] / 2) ** 2 * (
          np.log(np.sin(param[0] / 2) ** 2)
          - np.log(np.sin(param[1] / 2) ** 2)
      )
      expected = first_term + second_term
  
      assert np.allclose(actual, expected, atol=tol)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 12 for calling the TestRelativeEntropy obj's underlying member method code with example usage: obj.test_entropy_wire_labels(device, tol) and returns: qml