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 jacobian of multiple measurements with a multiple params return a tuple of arrays.
docstr_tok: ["The","jacobian","of","multiple","measurements","with","a","multiple","params","return","a","tuple","of","arrays","."]
code: def test_jacobian_multiple_measurement_multiple_param(
      self, dev, diff_method, grad_on_execution, device_vjp
  ):
      """The jacobian of multiple measurements with a multiple params return a tuple of arrays."""
  
      @qnode(
          dev,
          interface="autograd",
          diff_method=diff_method,
          grad_on_execution=grad_on_execution,
          device_vjp=device_vjp,
      )
      def circuit(a, b):
          qml.RY(a, wires=0)
          qml.RX(b, wires=0)
          return qml.expval(qml.PauliZ(0)), qml.probs(wires=[0, 1])
  
      a = np.array(0.1, requires_grad=True)
      b = np.array(0.2, requires_grad=True)
  
      def cost(x, y):
          return anp.hstack(circuit(x, y))
  
      jac = qml.jacobian(cost)(a, b)
  
      assert isinstance(jac, tuple)
      assert len(jac) == 2
  
      assert isinstance(jac[0], np.ndarray)
      assert jac[0].shape == (5,)
  
      assert isinstance(jac[1], np.ndarray)
      assert jac[1].shape == (5,)
  
imports: import autograd
  import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qnode
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 8 for calling the TestReturn obj's underlying member method code with example usage: obj.test_jacobian_multiple_measurement_multiple_param(dev, diff_method, grad_on_execution, device_vjp) and returns: qml,  qml, anp