Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update evolve.py #7016

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions pennylane/ops/functions/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def evolve(*args, **kwargs): # pylint: disable=unused-argument
e^{-i x \bm{O}}

Args:
op (.Operator): operator to evolve
op (.Operator): operator to evolve. This must be passed as a _positional_ argument. Passing it as a keyword argument will result in an error.
coeff (float): coefficient multiplying the exponentiated operator

Returns:
Expand All @@ -61,7 +61,7 @@ def evolve(*args, **kwargs): # pylint: disable=unused-argument
</html>

Args:
op (.ParametrizedHamiltonian): Hamiltonian to evolve
op (.ParametrizedHamiltonian): Hamiltonian to evolve. This must be passed as a _positional_ argument.

Returns:
.ParametrizedEvolution: time evolution :math:`U(t_0, t_1)` of the Hamiltonian
Expand Down