From 715f58964669a261cf1cd48e9fb6799e0a92ef05 Mon Sep 17 00:00:00 2001 From: WingCode Date: Fri, 6 Sep 2024 23:33:07 +0200 Subject: [PATCH] doc: Fix typo in qml.var usage (#261) --- doc/devices/braket_local.rst | 2 +- doc/devices/braket_remote.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/devices/braket_local.rst b/doc/devices/braket_local.rst index 762c4bd5..f1f9453f 100644 --- a/doc/devices/braket_local.rst +++ b/doc/devices/braket_local.rst @@ -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. diff --git a/doc/devices/braket_remote.rst b/doc/devices/braket_remote.rst index 1b8d70e2..14e50e80 100644 --- a/doc/devices/braket_remote.rst +++ b/doc/devices/braket_remote.rst @@ -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.