class_docstr: Test Hermitian edge cases.
docstr: Test that an hermitian expectation with various wires permuted works
docstr_tok: ["Test","that","an","hermitian","expectation","with","various","wires","permuted","works"]
code: def test_hermitian_two_wires_permuted(self, w1, w2, shots, theta):
      """Test that an hermitian expectation with various wires permuted works"""
      dev = qml.device("default.qubit", wires=4, shots=shots)
      theta = 0.543
  
      A = np.array(
          [
              [1, 2j, 1 - 2j, 0.5j],
              [-2j, 0, 3 + 4j, 1],
              [1 + 2j, 3 - 4j, 0.75, 1.5 - 2j],
              [-0.5j, 1, 1.5 + 2j, -1],
          ]
      )
  
      @qml.qnode(dev)
      def circuit():
          qml.RX(theta, wires=[w1])
          qml.RY(2 * theta, wires=[w2])
          qml.CNOT(wires=[w1, w2])
          return qml.expval(qml.Hermitian(A, wires=[w1, w2]))
  
      res = circuit()
  
      # make sure the mean matches the analytic mean
      expected = (
          88 * np.sin(theta)
          + 24 * np.sin(2 * theta)
          - 40 * np.sin(3 * theta)
          + 5 * np.cos(theta)
          - 6 * np.cos(2 * theta)
          + 27 * np.cos(3 * theta)
          + 6
      ) / 32
  
      assert np.allclose(res, expected, atol=0.01, rtol=0)
  
imports: import itertools
  import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 3 for calling the TestEdgeHermitian obj's underlying member method code with example usage: obj.test_hermitian_two_wires_permuted(w1, w2, shots, theta) and returns: qml