class_docstr: Test the state_vector() method of various state-prep operations.
class_docstr_tok: ["Test","the","state_vector","(",")","method","of","various","state-prep","operations","."]
docstr: Tests that the state-vector provided must have norm equal to 1.
docstr_tok: ["Tests","that","the","state-vector","provided","must","have","norm","equal","to","1","."]
code: def test_StatePrep_state_norm_not_one_fails(self, vec):
      """Tests that the state-vector provided must have norm equal to 1."""
      with pytest.raises(
          ValueError,
          match="Sum of amplitudes-squared does not equal one.",
      ):
          _ = qml.StatePrep(vec, wires=[0, 1])
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.wires import WireError
label_desc: Use image node_id 8 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_StatePrep_state_norm_not_one_fails(vec) without return types