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 parameter must be of shape (2**num_wires,).
docstr_tok: ["Tests","that","the","parameter","must","be","of","shape","(","2","*","*","num_wires",",",")","."]
code: def test_StatePrep_wrong_param_size_fails(self):
      """Tests that the parameter must be of shape (2**num_wires,)."""
      with pytest.raises(
          ValueError, match="State vector must have shape"
      ):
          _ = qml.StatePrep([0, 1], wires=[0, 1])
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.wires import WireError
label_desc: Use image node_id 9 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_StatePrep_wrong_param_size_fails() without return types