Skip to content

Commit

Permalink
Update pennylane/transforms/insert_ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dwierichs authored May 13, 2024
1 parent 976388e commit e5216a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pennylane/transforms/insert_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def insert(
.. code-block:: python3
from functools import partial
dev = qml.device("default.mixed", wires=2)
@partial(qml.transforms.insert, op=qml.AmplitudeDamping, op_args=0.2, position="end")
Expand Down

0 comments on commit e5216a8

Please sign in to comment.