class_docstr: Unit tests for process_state_with_shots for the classical_shadow
  and shadow_expval measurements
class_docstr_tok: ["Unit","tests","for","process_state_with_shots","for","the","classical_shadow","and","shadow_expval","measurements"]
docstr: Test that shadow expval respects the wire order
docstr_tok: ["Test","that","shadow","expval","respects","the","wire","order"]
code: def test_expval_wire_order(self):
      """Test that shadow expval respects the wire order"""
      state = np.array([[1, 1], [0, 0]]) / np.sqrt(2)
  
      mp = qml.shadow_expval(qml.PauliZ(0), seed=200)
      res = mp.process_state_with_shots(
          state, qml.wires.Wires([0, 1]), shots=3000, rng=100
      )
  
      assert res.shape == ()
      assert np.allclose(res, 1.0, atol=0.05)
  
      res = mp.process_state_with_shots(
          state, qml.wires.Wires([1, 0]), shots=3000, rng=100
      )
  
      assert res.shape == ()
      assert np.allclose(res, 0.0, atol=0.05)
  
imports: import copy
  import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ClassicalShadowMP, Shots
  from pennylane.measurements.classical_shadow import ShadowExpvalMP
label_desc: Use image node_id 6 for calling the TestProcessState obj's underlying member method code with example usage: obj.test_expval_wire_order() without return types