Skip to content

Commit

Permalink
Added doc-string
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaybsoni committed Oct 16, 2023
1 parent e68a56f commit a22a883
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pennylane/templates/subroutines/approx_time_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ class ApproxTimeEvolution(Operation):
r"""Applies the Trotterized time-evolution operator for an arbitrary Hamiltonian, expressed in terms
of Pauli gates.
.. note::
This operation behaves identically to :class:`~pennylane.TrotterProduct` and will be deprecated in
future releases, please use :class:`~pennylane.TrotterProduct` as the prefered operation for this
functionality.
The general time-evolution operator for a time-independent Hamiltonian is given by
.. math:: U(t) \ = \ e^{-i H t},
Expand Down

0 comments on commit a22a883

Please sign in to comment.