class_docstr: Tests for the qft operations
docstr: Test if using the qml.adjoint transform the resulting operation is
  the inverse of QFT.
docstr_tok: ["Test","if","using","the","qml.adjoint","transform","the","resulting","operation","is","the","inverse","of","QFT","."]
code: def test_QFT_adjoint_identity(self, n_qubits, tol):
      """Test if using the qml.adjoint transform the resulting operation is
      the inverse of QFT."""
  
      dev = qml.device("default.qubit", wires=n_qubits)
  
      @qml.qnode(dev)
      def circ(n_qubits):
          qml.adjoint(qml.QFT)(wires=range(n_qubits))
          qml.QFT(wires=range(n_qubits))
          return qml.state()
  
      assert np.allclose(1, circ(n_qubits)[0], tol)
  
      for i in range(1, n_qubits):
          assert np.allclose(0, circ(n_qubits)[i], tol)
  
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 3 for calling the TestQFT obj's underlying member method code with example usage: obj.test_QFT_adjoint_identity(n_qubits, tol) and returns: qml