class_docstr: Tests that the template defines the correct decomposition.
docstr: Checks the output if the features and entangler weights are nonzero,
  which makes the circuit only depend on the ZZ gate.
docstr_tok: ["Checks","the","output","if","the","features","and","entangler","weights","are","nonzero",",","which","makes","the","circuit","only","depend","on","the","ZZ","gate","."]
code: def test_output_zz(self, weights, target, tol):
      """Checks the output if the features and entangler weights are nonzero,
      which makes the circuit only depend on the ZZ gate."""
  
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.QAOAEmbedding(features=x, weights=weights, wires=range(2))
          return [qml.expval(qml.PauliZ(i)) for i in range(2)]
  
      res = circuit(x=[np.pi / 2, np.pi / 2])
  
      assert np.allclose(res, target, atol=tol, rtol=0)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 6 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_output_zz(weights, target, tol) and returns: unknown