class_docstr: Test the state_vector() method of various CosineWindow operations.
class_docstr_tok: ["Test","the","state_vector","(",")","method","of","various","CosineWindow","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_CosineWindow_state_vector_bad_wire_order(self):
      """Tests that the provided wire_order must contain the wires in the operation."""
      qsv_op = qml.CosineWindow(wires=[0, 1])
      with pytest.raises(
          WireError,
          match="wire_order must contain all CosineWindow wires",
      ):
          qsv_op.state_vector(wire_order=[1, 2])
  
file_path: pennylane/tests/templates/test_state_preparations/test_cosine_window.py
imports: import pytest
  import numpy
  import pennylane
  from pennylane.wires import WireError
label_desc: Use image node_id 2 for calling the TestStateVector obj's underlying member method code with example usage: obj.test_CosineWindow_state_vector_bad_wire_order() without return types