class_docstr: Class to test the shape of the Hessian with different return types and shot vectors.
class_docstr_tok: ["Class","to","test","the","shape","of","the","Hessian","with","different","return","types","and","shot","vectors","."]
docstr: The hessian of multiple measurements with multiple params return a tuple of arrays.
docstr_tok: ["The","hessian","of","multiple","measurements","with","multiple","params","return","a","tuple","of","arrays","."]
code: def test_hessian_probs_expval_multiple_params(
      self,
      dev_name,
      diff_method,
      gradient_kwargs,
      shots,
      num_copies,
      interface,
  ):
      """The hessian of multiple measurements with multiple params return a tuple of arrays."""
      dev = qml.device(dev_name, wires=2, shots=shots)
  
      par_0 = tf.Variable(0.1, dtype=tf.float64)
      par_1 = tf.Variable(0.2, dtype=tf.float64)
  
      @qnode(
          dev,
          diff_method=diff_method,
          interface=interface,
          max_diff=2,
          **gradient_kwargs,
      )
      def circuit(x, y):
          qml.RX(x, wires=[0])
          qml.RY(y, wires=[1])
          qml.CNOT(wires=[0, 1])
          return qml.expval(qml.PauliZ(0) @ qml.PauliX(1)), qml.probs(
              wires=[0]
          )
  
      with tf.GradientTape() as tape1:
          with tf.GradientTape(persistent=True) as tape2:
              res = circuit(par_0, par_1)
              res = qml.math.stack(
                  [tf.experimental.numpy.hstack(r) for r in res]
              )
  
          jac = tape2.jacobian(
              res, (par_0, par_1), experimental_use_pfor=False
          )
          jac = qml.math.stack(jac)
  
      hess = tape1.jacobian(jac, (par_0, par_1))
  
      assert isinstance(hess, tuple)
      assert len(hess) == 2
      for h in hess:
          assert isinstance(h, tf.Tensor)
          assert h.shape == (2, num_copies, 3)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qnode
label_desc: Use image node_id 3 for calling the TestReturnShotVectorHessian obj's underlying member method code with example usage: obj.test_hessian_probs_expval_multiple_params(dev_name, diff_method, gradient_kwargs, shots, num_copies, interface) and returns: qml,  qml