class_docstr: Tests for the qft operations
docstr: Test if the QFT matrix is equal to a manually-calculated version for 3 qubits
docstr_tok: ["Test","if","the","QFT","matrix","is","equal","to","a","manually-calculated","version","for","3","qubits"]
code: def test_QFT(self):
      """Test if the QFT matrix is equal to a manually-calculated version for 3 qubits"""
      op = qml.QFT(wires=range(3))
      res = op.matrix()
      exp = QFT
      assert np.allclose(res, exp)
  
file_path: pennylane/tests/templates/test_subroutines/test_qft.py
imports: import pytest
  import numpy
  from gate_data import QFT
  import pennylane
label_desc: Use image node_id 1 for calling the TestQFT obj's underlying member method code with example usage: obj.test_QFT() without return types