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.