class_docstr: Test inputs and pre-processing.
docstr: Checks exception if the number of features is larger than the number of amplitudes, and
  automatic padding is chosen.
docstr_tok: ["Checks","exception","if","the","number","of","features","is","larger","than","the","number","of","amplitudes",",","and","automatic","padding","is","chosen","."]
code: def test_throws_exception_if_more_features_than_amplitudes_padding(
      self, inpt
  ):
      """Checks exception if the number of features is larger than the number of amplitudes, and
      automatic padding is chosen."""
  
      n_qubits = 2
      dev = qml.device("default.qubit", wires=n_qubits)
  
      @qml.qnode(dev)
      def circuit(x=None):
          qml.AmplitudeEmbedding(
              features=x,
              wires=range(n_qubits),
              pad_with=0.0,
              normalize=False,
          )
          return qml.expval(qml.PauliZ(0))
  
      with pytest.raises(
          ValueError, match="Features must be of length"
      ):
          circuit(x=inpt)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestInputs obj's underlying member method code with example usage: obj.test_throws_exception_if_more_features_than_amplitudes_padding(inpt) and returns: qml