def METHOD_NAME(self):
    """Tests the autograd interface."""
    weight = pnp.array(0.5, requires_grad=True)
    dev = qml.device("default.qubit", wires=4)
    circuit = qml.QNode(circuit_template, dev)
    circuit(weight)
    grad_fn = qml.grad(circuit)
    # since test cases are hard to construct
    # for this template, just check that the gradient is computed
    # without error
    grad_fn(weight)