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 provided wire_order must contain the wires in the operation.
docstr_tok: ["Tests","that","the","provided","wire_order","must","contain","the","wires","in","the","operation","."]
code: def test_QutritBasisState_state_vector_bad_wire_order(self):
      """Tests that the provided wire_order must contain the wires in the operation."""
      basis_op = qml.QutritBasisState([0, 1], wires=[0, 1])
      with pytest.raises(
          WireError,
          match="wire_order must contain all QutritBasisState wires",
      ):
          basis_op.state_vector(wire_order=[1, 2])
  
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 4 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_QutritBasisState_state_vector_bad_wire_order() without return types