class_docstr: Test the support for executing tapes with multiple different
  measurements using a device with shot vectors
class_docstr_tok: ["Test","the","support","for","executing","tapes","with","multiple","different","measurements","using","a","device","with","shot","vectors"]
docstr: Test scalar-valued and computational basis counts measurements.
docstr_tok: ["Test","scalar-valued","and","computational","basis","counts","measurements","."]
code: def test_scalar_counts_no_obs(
      self, shot_vector, meas1, meas2, device
  ):
      """Test scalar-valued and computational basis counts measurements."""
      dev = qml.device(device, wires=3, shots=shot_vector)
      raw_shot_vector = [
          shot_tuple.shots
          for shot_tuple in dev.shots.shot_vector
          for _ in range(shot_tuple.copies)
      ]
  
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.apply(meas1), qml.apply(meas2)
  
      qnode = qml.QNode(circuit, dev)
      qnode.construct([0.5], {})
  
      res = qml.execute(
          tapes=[qnode.tape], device=dev, gradient_fn=None
      )
  
      all_shots = sum(
          shot_tuple.copies for shot_tuple in dev.shots.shot_vector
      )
  
      assert isinstance(res[0], tuple)
      assert len(res[0]) == all_shots
      assert all(isinstance(r, tuple) for r in res[0])
  
      for idx, _ in enumerate(raw_shot_vector):
          for i, r in enumerate(res[0][idx]):
              if i % 2 == 0:
                  assert isinstance(r, (np.ndarray, np.float64))
                  assert meas2.obs is None
                  expected_shape = ()
                  assert r.shape == expected_shape
              else:
                  assert isinstance(r, dict)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 5 for calling the TestMixMeasurementsShotVector obj's underlying member method code with example usage: obj.test_scalar_counts_no_obs(shot_vector, meas1, meas2, device) and returns: qml,  qml