class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Test that the correct gates are applied.
docstr_tok: ["Test","that","the","correct","gates","are","applied","."]
code: def test_correct_gates_single_wire(self):
      """Test that the correct gates are applied."""
  
      op = qml.CosineWindow(wires=[0])
      queue = op.expand().operations
  
      assert queue[0].name == "Hadamard"
      assert queue[1].name == "RZ"
      assert queue[2].name == "Adjoint(QFT)"
      assert queue[3].name == "PhaseShift"
  
      assert np.isclose(queue[3].data[0], np.pi / 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 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_correct_gates_single_wire() without return types