From f29bf3288bf6091377d133f20363ebdf7a8e2a56 Mon Sep 17 00:00:00 2001 From: Tom Bromley <49409390+trbromley@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:09:46 -0400 Subject: [PATCH] Fermionic ops in changelog (#4302) --- doc/releases/changelog-0.31.0.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/releases/changelog-0.31.0.md b/doc/releases/changelog-0.31.0.md index 2663a637070..8f95d19c8a0 100644 --- a/doc/releases/changelog-0.31.0.md +++ b/doc/releases/changelog-0.31.0.md @@ -67,10 +67,10 @@ ```pycon >>> word1 = qml.fermi.from_string('0+ 0- 3+ 3-') >>> word2 = qml.fermi.from_string('3+ 3-') - >>> sentence = 1.2 * word1 - 0.345 * word2 + >>> sentence = 1.2 * word1 + 0.345 * word2 >>> sentence 1.2 * a⁺(0) a(0) a⁺(3) a(3) - - 0.345 * a⁺(3) a(3) + + 0.345 * a⁺(3) a(3) ``` Additionally, any fermionic operator, be it a single fermionic creation/annihilation operator, a Fermi word, or a Fermi sentence, @@ -78,7 +78,7 @@ ```pycon >>> qml.jordan_wigner(sentence) - ((0.1275+0j)*(Identity(wires=[0]))) + ((-0.1275+0j)*(PauliZ(wires=[3]))) + ((-0.3+0j)*(PauliZ(wires=[0]))) + ((0.3+0j)*(PauliZ(wires=[0]) @ PauliZ(wires=[3]))) + ((0.4725+0j)*(Identity(wires=[0]))) + ((-0.4725+0j)*(PauliZ(wires=[3]))) + ((-0.3+0j)*(PauliZ(wires=[0]))) + ((0.3+0j)*(PauliZ(wires=[0]) @ PauliZ(wires=[3]))) ``` Learn how to create fermionic Hamiltonians describing some simple chemical systems by checking