class_docstr: 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
code: def test_hadamard_reconstruction(self, wires):
      """Test that the state reconstruction is correct for a uniform
      superposition of qubits"""
      circuit = hadamard_circuit(wires)
      bits, recipes = circuit()
      shadow = ClassicalShadow(bits, recipes)
  
      state = shadow.global_snapshots()
      assert state.shape == (10000, 2**wires, 2**wires)
  
      state = np.mean(state, axis=0)
      expected = np.ones((2**wires, 2**wires)) / (2**wires)
  
      assert qml.math.allclose(state, 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 1 for calling the TestStateReconstruction obj's underlying member method code with example usage: obj.test_hadamard_reconstruction(wires) without return types