Skip to content

Commit

Permalink
Update jacobian_tape.py (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
antalszava committed Nov 4, 2020
1 parent 91dea7a commit 7ca83e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pennylane/tape/tapes/jacobian_tape.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class JacobianTape(QuantumTape):
import pennylane.tape
with qml.tape.QuantumTape() as tape:
with qml.tape.JacobianTape() as tape:
qml.RX(0.432, wires=0)
qml.RY(0.543, wires=0)
qml.CNOT(wires=[0, 'a'])
qml.RX(0.133, wires='a')
expval(qml.PauliZ(wires=[0]))
qml.expval(qml.PauliZ(wires=[0]))
The Jacobian is computed using finite difference:
Expand Down

0 comments on commit 7ca83e4

Please sign in to comment.