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 on two wires.
docstr_tok: ["Test","that","the","correct","gates","are","applied","on","two","wires","."]
code: def test_correct_gates_many_wires(self):
      """Test that the correct gates are applied on two wires."""
  
      op = qml.CosineWindow(wires=[0, 1, 2, 3, 4])
      queue = op.decomposition()
  
      assert queue[0].name == "Hadamard"
      assert queue[1].name == "RZ"
      assert queue[2].name == "Adjoint(QFT)"
  
      for ind, q in enumerate(queue[3:]):
          assert q.name == "PhaseShift"
          assert np.isclose(q.data[0], np.pi / 2 ** (ind + 1))
  
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 TestDecomposition obj's underlying member method code with example usage: obj.test_correct_gates_many_wires() without return types