class_docstr: Tests circuits with sample-based measurements
docstr: Test a simple circuit with a single prob measurement
docstr_tok: ["Test","a","simple","circuit","with","a","single","prob","measurement"]
code: def test_single_probs(self):
      """Test a simple circuit with a single prob measurement"""
      x = np.array(0.732)
      qs = qml.tape.QuantumScript(
          [qml.RY(x, wires=0)], [qml.probs(wires=0)], shots=10000
      )
      result = simulate(qs)
  
      assert isinstance(result, np.ndarray)
      assert result.shape == (2,)
      assert np.allclose(
          result, [np.cos(x / 2) ** 2, np.sin(x / 2) ** 2], atol=0.1
      )
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices.qubit import simulate, get_final_state, measure_final_state
label_desc: Use image node_id 2 for calling the TestSampleMeasurements obj's underlying member method code with example usage: obj.test_single_probs() without return types