class_docstr: Test inputs and pre-processing.
docstr: Checks exception when state is not normalized and `normalize=False`.
docstr_tok: ["Checks","exception","when","state","is","not","normalized","and","`","normalize=False","`","."]
code: def test_throws_exception_if_not_normalized(self, inpt):
      """Checks exception when state is not normalized and `normalize=False`."""
      not_nrmlzd = 2 * inpt
      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),
              pad_with=None,
              normalize=False,
          )
          return [qml.expval(qml.PauliZ(i)) for i in range(n_qubits)]
  
      with pytest.raises(
          ValueError, match="Features must be a vector of norm"
      ):
          circuit(x=not_nrmlzd)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestInputs obj's underlying member method code with example usage: obj.test_throws_exception_if_not_normalized(inpt) and returns: unknown