class_docstr: Tests for the aqft operations
class_docstr_tok: ["Tests","for","the","aqft","operations"]
docstr: Test if after using the qml.adjoint transform the resulting operation is
  the inverse of AQFT.
docstr_tok: ["Test","if","after","using","the","qml.adjoint","transform","the","resulting","operation","is","the","inverse","of","AQFT","."]
code: def test_AQFT_adjoint_identity(self, order, n_qubits, tol):
      """Test if after using the qml.adjoint transform the resulting operation is
      the inverse of AQFT."""
  
      dev = qml.device("default.qubit", wires=n_qubits)
  
      @qml.qnode(dev)
      def circ(n_qubits, order):
          qml.adjoint(qml.AQFT)(order=order, wires=range(n_qubits))
          qml.AQFT(order=order, wires=range(n_qubits))
          return qml.state()
  
      assert np.allclose(1, circ(n_qubits, order)[0], tol)
  
      for i in range(1, n_qubits):
          assert np.allclose(0, circ(n_qubits, order)[i], tol)
  
file_path: pennylane/tests/templates/test_subroutines/test_aqft.py
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestAQFT obj's underlying member method code with example usage: obj.test_AQFT_adjoint_identity(order, n_qubits, tol) and returns: qml