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 length num_wires.
docstr_tok: ["Tests","that","the","parameter","must","be","of","length","num_wires","."]
code: def test_BasisState_wrong_param_size(self):
      """Tests that the parameter must be of length num_wires."""
      op = qml.BasisState([0], wires=[0, 1])
      with pytest.raises(
          ValueError,
          match="BasisState parameter and wires must be of equal length.",
      ):
          _ = op.state_vector()
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.wires import WireError
label_desc: Use image node_id 20 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_BasisState_wrong_param_size() without return types