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 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_StatePrep_state_vector_bad_wire_order(self):
      """Tests that the provided wire_order must contain the wires in the operation."""
      qsv_op = qml.StatePrep([0, 0, 0, 1], wires=[0, 1])
      with pytest.raises(
          WireError, match="wire_order must contain all StatePrep wires"
      ):
          qsv_op.state_vector(wire_order=[1, 2])
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.wires import WireError
label_desc: Use image node_id 7 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_StatePrep_state_vector_bad_wire_order() without return types