class_docstr: Test that amplitude embedding gates are combined into a single.
docstr: Check that the decorator works.
docstr_tok: ["Check","that","the","decorator","works","."]
code: def test_decorator(self):
      """Check that the decorator works."""
  
      @merge_amplitude_embedding
      def qfunc():
          qml.AmplitudeEmbedding([0, 1, 0, 0], wires=[0, 1])
          qml.AmplitudeEmbedding([0, 1], wires=2)
  
          return qml.state()
  
      dev = qml.device("default.qubit", wires=3)
      qnode = qml.QNode(qfunc, dev)
      assert qnode()[3] == 1.0
  
file_path: pennylane/tests/transforms/test_optimization/test_merge_amplitude_embedding.py
imports: import pytest
  from pennylane import numpy
  import pennylane
  from pennylane.transforms.optimization import merge_amplitude_embedding
  from pennylane._device import DeviceError
label_desc: Use image node_id 4 for calling the TestMergeAmplitudeEmbedding obj's underlying member method code with example usage: obj.test_decorator() and returns: qml