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 using the amplitude execution method.
docstr_tok: ["Checks","the","state","using","the","amplitude","execution","method","."]
code: def test_state_execution_amplitude(self):
      """Checks the state using the amplitude execution method."""
  
      features = np.array([1.2, 0.3])
      n_wires = 2
      dev = qml.device("default.gaussian", wires=n_wires)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.SqueezingEmbedding(
              features=x, wires=range(n_wires), method="amplitude", c=1
          )
          return qml.expval(qml.NumberOperator(wires=0))
  
      # TODO: come up with better test case
      assert np.allclose(circuit(x=features), 2.2784, atol=0.001)
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 2 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_state_execution_amplitude() and returns: qml