class_docstr: Test that amplitude embedding gates are combined into a single.
docstr: Test that the transformation is working correctly by joining two AmplitudeEmbedding.
docstr_tok: ["Test","that","the","transformation","is","working","correctly","by","joining","two","AmplitudeEmbedding","."]
code: def test_multi_amplitude_embedding_qnode(self):
      """Test that the transformation is working correctly by joining two AmplitudeEmbedding."""
  
      dev = qml.device("default.qubit", wires=2)
  
      @merge_amplitude_embedding
      @qml.qnode(device=dev)
      def circuit():
          qml.AmplitudeEmbedding([0.0, 1.0], wires=0)
          qml.AmplitudeEmbedding([0.0, 1.0], wires=1)
          qml.Hadamard(wires=0)
          qml.Hadamard(wires=1)
          return qml.state()
  
      assert qml.math.allclose(circuit(), np.array([1, -1, -1, 1]) / 2)
  
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 2 for calling the TestMergeAmplitudeEmbedding obj's underlying member method code with example usage: obj.test_multi_amplitude_embedding_qnode() and returns: qml