class_docstr: Test that the expval estimation is correct for a variety of observables
docstr: Test that the expval estimation is correct for a maximally
  entangled state
code: def test_max_entangled_expval(self):
      """Test that the expval estimation is correct for a maximally
      entangled state"""
      circuit = max_entangled_circuit(3, shots=100000)
      bits, recipes = circuit()
      shadow = ClassicalShadow(bits, recipes)
  
      obs = [
          qml.PauliX(1),
          qml.PauliX(0) @ qml.PauliX(2),
          qml.PauliZ(2),
          qml.Identity(1) @ qml.PauliZ(2),
          qml.PauliZ(1) @ qml.PauliZ(2),
          qml.PauliX(0) @ qml.PauliY(1),
          qml.PauliX(0) @ qml.PauliY(1) @ qml.Identity(2),
          qml.PauliY(0) @ qml.PauliX(1) @ qml.PauliY(2),
      ]
  
      expected = [0, 0, 0, 0, 1, 0, 0, -1]
  
      actual = shadow.expval(obs, k=10)
      assert actual.shape == (8,)
      assert actual.dtype == np.float64
      assert qml.math.allclose(actual, expected, atol=1e-1)
  
imports: import pytest
  import numpy
  import pennylane
  import pennylane.numpy
  from pennylane.shadows import ClassicalShadow, median_of_means, pauli_expval
label_desc: Use image node_id 2 for calling the TestExpvalEstimation obj's underlying member method code with example usage: obj.test_max_entangled_expval() without return types