class_docstr: Tests for integration with the PassthruQNode
docstr: Test that jacobian of a QNode with an attached default.mixed.tf device
  gives the correct result in the case of parameters multiplied by scalars
docstr_tok: ["Test","that","jacobian","of","a","QNode","with","an","attached","default.mixed.tf","device","gives","the","correct","result","in","the","case","of","parameters","multiplied","by","scalars"]
code: def test_jacobian_variable_multiply(self, decorator, interface, tol):
      """Test that jacobian of a QNode with an attached default.mixed.tf device
      gives the correct result in the case of parameters multiplied by scalars
      """
      x = 0.43316321
      y = 0.2162158
      z = 0.75110998
      weights = tf.Variable([x, y, z], trainable=True)
  
      dev = qml.device("default.mixed", wires=1)
  
      @decorator
      @qml.qnode(dev, interface=interface, diff_method="backprop")
      def circuit(p):
          qml.RX(3 * p[0], wires=0)
          qml.RY(p[1], wires=0)
          qml.RX(p[2] / 2, wires=0)
          return qml.expval(qml.PauliZ(0))
  
      assert circuit.gradient_fn == "backprop"
      res = circuit(weights)
  
      expected = np.cos(3 * x) * np.cos(y) * np.cos(z / 2) - np.sin(
          3 * x
      ) * np.sin(z / 2)
      assert np.allclose(res, expected, atol=tol, rtol=0)
  
      with tf.GradientTape() as tape:
          out = circuit(weights)
  
      res = tape.jacobian(out, weights)
  
      expected = np.array(
          [
              -3
              * (
                  np.sin(3 * x) * np.cos(y) * np.cos(z / 2)
                  + np.cos(3 * x) * np.sin(z / 2)
              ),
              -np.cos(3 * x) * np.sin(y) * np.cos(z / 2),
              -0.5
              * (
                  np.sin(3 * x) * np.cos(z / 2)
                  + np.cos(3 * x) * np.cos(y) * np.sin(z / 2)
              ),
          ]
      )
  
      assert qml.math.allclose(res, expected, atol=tol, rtol=0)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_mixed import DefaultMixed
label_desc: Use image node_id 1 for calling the TestPassthruIntegration obj's underlying member method code with example usage: obj.test_jacobian_variable_multiply(decorator, interface, tol) and returns: qml