class_docstr: Tests that the template defines the correct decomposition.
docstr: Checks the state for real and complex inputs.
docstr_tok: ["Checks","the","state","for","real","and","complex","inputs","."]
code: def test_prepares_correct_broadcasted_state(self, inpt, normalize):
      """Checks the state for real and complex inputs."""
  
      n_qubits = 2
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.AmplitudeEmbedding(
              features=x, wires=range(n_qubits), normalize=normalize
          )
          return qml.state()
  
      state = circuit(x=inpt)
      assert np.allclose(state, inpt)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_prepares_correct_broadcasted_state(inpt, normalize) and returns: qml