class_docstr: Tests for the qfunc_transform decorator differentiability
class_docstr_tok: ["Tests","for","the","qfunc_transform","decorator","differentiability"]
docstr: Test ansatz
docstr_tok: ["Test","ansatz"]
code: def ansatz(x):
      """Test ansatz"""
      qml.Hadamard(wires=0)
      qml.CRX(x, wires=[0, 1])
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestQFuncTransformGradients obj's underlying member method code with example usage: obj.ansatz(x) without return types