class_docstr: Tests for the expval function
class_docstr_tok: ["Tests","for","the","expval","function"]
docstr: Test that the expectation value of an operator with permuted wires is the same.
docstr_tok: ["Test","that","the","expectation","value","of","an","operator","with","permuted","wires","is","the","same","."]
code: def test_permuted_wires(self):
      """Test that the expectation value of an operator with permuted wires is the same."""
      obs = qml.prod(
          qml.PauliZ(8),
          qml.s_prod(2, qml.PauliZ(10)),
          qml.s_prod(3, qml.PauliZ("h")),
      )
      obs_2 = qml.prod(
          qml.s_prod(3, qml.PauliZ("h")),
          qml.PauliZ(8),
          qml.s_prod(2, qml.PauliZ(10)),
      )
  
      dev = qml.device("default.qubit", wires=["h", 8, 10])
  
      @qml.qnode(dev)
      def circuit():
          qml.RX(1.23, wires=["h"])
          qml.RY(2.34, wires=[8])
          return qml.expval(obs)
  
      @qml.qnode(dev)
      def circuit2():
          qml.RX(1.23, wires=["h"])
          qml.RY(2.34, wires=[8])
          return qml.expval(obs_2)
  
      assert circuit() == circuit2()
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation, Shots
  from pennylane.measurements.expval import ExpectationMP
label_desc: Use image node_id 11 for calling the TestExpval obj's underlying member method code with example usage: obj.test_permuted_wires() and returns: qml, qml