qp.evolve

evolve(op, coeff=1)[source]

Returns a new operator that computes the evolution of op.

\[e^{-i x \bm{O}}\]
Parameters:
  • op (.Operator) – operator to evolve

  • coeff (float) – coefficient multiplying the exponentiated operator

Returns:

evolution operator

Return type:

.Evolution

Examples

We can use qp.evolve to compute the evolution of any PennyLane operator:

>>> op = qp.evolve(qp.X(0), coeff=2)
>>> op
Evolution(-2j PauliX)

Contents

Using PennyLane

Release news

Development

API

Internals