class_docstr: Tests circuits with sample-based measurements
docstr: Test a simple circuit containing multiple measurements for shot vectors
docstr_tok: ["Test","a","simple","circuit","containing","multiple","measurements","for","shot","vectors"]
code: def test_multi_measurement_shot_vector(self, shots):
      """Test a simple circuit containing multiple measurements for shot vectors"""
      x, y = np.array(0.732), np.array(0.488)
      shots = qml.measurements.Shots(shots)
      qs = qml.tape.QuantumScript(
          [
              qml.RX(x, wires=0),
              qml.CNOT(wires=[0, 1]),
              qml.RY(y, wires=1),
          ],
          [
              qml.expval(qml.PauliZ(0)),
              qml.probs(wires=range(2)),
              qml.sample(wires=range(2)),
          ],
          shots=shots,
      )
      result = simulate(qs)
  
      assert isinstance(result, tuple)
      assert len(result) == len(list(shots))
  
      for shot_res, s in zip(result, shots):
          assert isinstance(shot_res, tuple)
          assert len(shot_res) == 3
  
          assert isinstance(shot_res[0], np.float64)
          assert isinstance(shot_res[1], np.ndarray)
          assert isinstance(shot_res[2], np.ndarray)
  
          assert np.allclose(shot_res[0], np.cos(x), atol=0.1)
  
          assert shot_res[1].shape == (4,)
          assert np.allclose(
              shot_res[1],
              [
                  np.cos(x / 2) ** 2 * np.cos(y / 2) ** 2,
                  np.cos(x / 2) ** 2 * np.sin(y / 2) ** 2,
                  np.sin(x / 2) ** 2 * np.sin(y / 2) ** 2,
                  np.sin(x / 2) ** 2 * np.cos(y / 2) ** 2,
              ],
              atol=0.1,
          )
  
          assert shot_res[2].shape == (s, 2)
  
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 9 for calling the TestSampleMeasurements obj's underlying member method code with example usage: obj.test_multi_measurement_shot_vector(shots) without return types