class_docstr: Test that the expval transform is applied correctly
class_docstr_tok: ["Test","that","the","expval","transform","is","applied","correctly"]
docstr: Test that the expval estimation is correct for a uniform
  superposition of qubits
docstr_tok: ["Test","that","the","expval","estimation","is","correct","for","a","uniform","superposition","of","qubits"]
code: def test_hadamard_forward(self):
      """Test that the expval estimation is correct for a uniform
      superposition of qubits"""
      obs = [
          qml.PauliX(1),
          qml.PauliX(0) @ qml.PauliX(2),
          qml.PauliX(0) @ qml.Identity(1) @ qml.PauliX(2),
          qml.PauliY(2),
          qml.PauliY(1) @ qml.PauliZ(2),
          qml.PauliX(0) @ qml.PauliY(1),
          qml.PauliX(0) @ qml.PauliY(1) @ qml.Identity(2),
      ]
      expected = [1, 1, 1, 0, 0, 0, 0]
  
      circuit = hadamard_circuit(3, shots=100000)
      circuit = qml.shadows.shadow_expval(circuit, obs)
  
      actual = circuit()
  
      assert qml.math.allclose(actual, expected, atol=1e-1)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.shadows.transforms import _replace_obs
label_desc: Use image node_id 1 for calling the TestExpvalTransform obj's underlying member method code with example usage: obj.test_hadamard_forward() without return types