class_docstr: Test the state_vector() method of QutritBasisState operation.
class_docstr_tok: ["Test","the","state_vector","(",")","method","of","QutritBasisState","operation","."]
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_QutritBasisState_wrong_param_size(self):
      """Tests that the parameter must be of length num_wires."""
      op = qml.QutritBasisState([0], wires=[0, 1])
      with pytest.raises(
          ValueError,
          match="QutritBasisState parameter and wires must be of equal length.",
      ):
          _ = op.state_vector()
  
file_path: pennylane/tests/ops/qutrit/test_qutrit_state_prep.py
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.wires import WireError
label_desc: Use image node_id 6 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_QutritBasisState_wrong_param_size() without return types