Skip to content

Commit

Permalink
doc: Fix typo in qml.var usage (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
WingCode authored Sep 6, 2024
1 parent df838cb commit 715f589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/devices/braket_local.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ For example:
qml.RY(y, wires=[0])
qml.RX(x, wires=[0])
qml.CNOT(wires=[0, 1])
return qml.expval(qml.PauliZ(0)), var(qml.PauliZ(1))
return qml.expval(qml.PauliZ(0)), qml.var(qml.PauliZ(1))
When executed, the circuit will perform the computation on the local machine.

Expand Down
2 changes: 1 addition & 1 deletion doc/devices/braket_remote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For example:
qml.RY(y, wires=[0])
qml.RX(x, wires=[0])
qml.CNOT(wires=[0, 1])
return qml.expval(qml.PauliZ(0)), var(qml.PauliZ(1))
return qml.expval(qml.PauliZ(0)), qml.var(qml.PauliZ(1))
When executed, the circuit performs the computation on the Amazon Braket service.

Expand Down

0 comments on commit 715f589

Please sign in to comment.