class_docstr: Class to test the shape of the Grad/Jacobian/Hessian with different return types.
class_docstr_tok: ["Class","to","test","the","shape","of","the","Grad\/Jacobian\/Hessian","with","different","return","types","."]
docstr: The hessian of multiple measurements with a multiple param array return a single array.
docstr_tok: ["The","hessian","of","multiple","measurements","with","a","multiple","param","array","return","a","single","array","."]
code: def test_hessian_var_probs_multiple_param_array(
      self, dev_name, diff_method, grad_on_execution, shots, interface
  ):
      """The hessian of multiple measurements with a multiple param array return a single array."""
      if diff_method == "adjoint":
          pytest.skip(
              "Test does not supports adjoint because second order diff."
          )
      elif diff_method == "hadamard":
          pytest.skip("Test does not support Hadamard because of var.")
      if shots is not None and diff_method in ("backprop", "adjoint"):
          pytest.skip(
              "Test does not support finite shots and adjoint/backprop"
          )
  
      dev = qml.device(dev_name, wires=2, shots=shots)
  
      params = jax.numpy.array([0.1, 0.2])
  
      @qnode(
          dev,
          interface=interface,
          diff_method=diff_method,
          max_diff=2,
          grad_on_execution=grad_on_execution,
      )
      def circuit(x):
          qml.RX(x[0], wires=[0])
          qml.RY(x[1], wires=[1])
          qml.CNOT(wires=[0, 1])
          return qml.var(qml.PauliZ(0) @ qml.PauliX(1)), qml.probs(
              wires=[0]
          )
  
      hess = jax.hessian(circuit)(params)
  
      assert isinstance(hess, tuple)
      assert len(hess) == 2
  
      assert isinstance(hess[0], jax.numpy.ndarray)
      assert hess[0].shape == (2, 2)
  
      assert isinstance(hess[1], jax.numpy.ndarray)
      assert hess[1].shape == (2, 2, 2)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qnode
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 21 for calling the TestReturn obj's underlying member method code with example usage: obj.test_hessian_var_probs_multiple_param_array(dev_name, diff_method, grad_on_execution, shots, interface) and returns: qml,  qml