class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Checks the state produced using the rotation='X' strategy.
docstr_tok: ["Checks","the","state","produced","using","the","rotation=","'","X","'","strategy","."]
code: def test_state(
      self,
  ):
      """Checks the state produced using the rotation='X' strategy."""
  
      features = [np.pi / 2, np.pi / 2, np.pi / 4, 0]
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.AngleEmbedding(features=x, wires=range(4), rotation="X")
          qml.PauliX(wires=0)
          qml.AngleEmbedding(features=x, wires=range(4), rotation="X")
          return [qml.expval(qml.PauliZ(i)) for i in range(4)]
  
      res = circuit(x=features)
      target = [1, -1, 0, 1]
  
      assert np.allclose(res, target)
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 4 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_state() and returns: unknown