class_docstr: Test that the state reconstruction is correct for a variety of states
class_docstr_tok: ["Test","that","the","state","reconstruction","is","correct","for","a","variety","of","states"]
docstr: Test that the state reconstruction is correct for a uniform
  superposition of qubits
docstr_tok: ["Test","that","the","state","reconstruction","is","correct","for","a","uniform","superposition","of","qubits"]
code: def test_hadamard_state(self, wires, diffable):
      """Test that the state reconstruction is correct for a uniform
      superposition of qubits"""
      circuit = hadamard_circuit(wires)
      circuit = qml.shadows.shadow_state(
          circuit, wires=range(wires), diffable=diffable
      )
  
      actual = circuit()
      expected = np.ones((2**wires, 2**wires)) / (2**wires)
  
      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 TestStateForward obj's underlying member method code with example usage: obj.test_hadamard_state(wires, diffable) without return types