class_docstr: Tests that the ControlledSequence is executable and differentiable in a QNode context
class_docstr_tok: ["Tests","that","the","ControlledSequence","is","executable","and","differentiable","in","a","QNode","context"]
docstr: Test executing and getting the gradient of a circuit with a
  ControlledSequence based on a CompositeOp
docstr_tok: ["Test","executing","and","getting","the","gradient","of","a","circuit","with","a","ControlledSequence","based","on","a","CompositeOp"]
code: def test_gradient_with_composite_op_base(self):
      """Test executing and getting the gradient of a circuit with a
      ControlledSequence based on a CompositeOp"""
  
      @qml.prod
      def U(thetas):
          qml.RX(thetas[0], wires=0)
          qml.RX(thetas[1], wires=1)
  
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev)
      def circuit(thetas):
          qml.ControlledSequence(U(thetas), control=[2, 3])
          return qml.expval(qml.PauliZ(0))
  
      thetas = pnp.array([1.0, 1.0], requires_grad=True)
      _ = circuit(thetas)
      _ = qml.grad(circuit)(thetas)
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 9 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_gradient_with_composite_op_base() and returns: qml