From 7f2f3fc83a52070855e11859cf383e97aa46c432 Mon Sep 17 00:00:00 2001 From: antalszava Date: Sun, 23 Nov 2025 13:09:27 +0100 Subject: [PATCH 1/2] Fix summation index in QFT equation --- demonstrations_v2/tutorial_qpe/demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demonstrations_v2/tutorial_qpe/demo.py b/demonstrations_v2/tutorial_qpe/demo.py index a72acb027d..d0d4d93d9e 100644 --- a/demonstrations_v2/tutorial_qpe/demo.py +++ b/demonstrations_v2/tutorial_qpe/demo.py @@ -81,7 +81,7 @@ "When in doubt, take the Fourier transform"; or in our case, "When in doubt, take the quantum Fourier transform (QFT)". .. math:: - \text{QFT}|\theta\rangle = \frac{1}{\sqrt{2^n}}\sum_{k=0} e^{2 \pi i\theta k} |k\rangle. + \text{QFT}|\theta\rangle = \frac{1}{\sqrt{2^n}}\sum^{n-1}_{k=0} e^{2 \pi i\theta k} |k\rangle. Note that this results in a uniform superposition, where each basis state has an additional phase. If we can prepare that state, then applying the *inverse* QFT would give From b0f0a73121d22c4b0c7ee32390262b66c1139e54 Mon Sep 17 00:00:00 2001 From: Josh Izaac Date: Sun, 23 Nov 2025 15:34:01 -0500 Subject: [PATCH 2/2] Update date of last modification in metadata.json --- demonstrations_v2/tutorial_qpe/metadata.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demonstrations_v2/tutorial_qpe/metadata.json b/demonstrations_v2/tutorial_qpe/metadata.json index 2fb428705b..e974f59819 100644 --- a/demonstrations_v2/tutorial_qpe/metadata.json +++ b/demonstrations_v2/tutorial_qpe/metadata.json @@ -11,7 +11,7 @@ "executable_stable": true, "executable_latest": true, "dateOfPublication": "2024-01-30T00:00:00+00:00", - "dateOfLastModification": "2025-09-22T15:48:14+00:00", + "dateOfLastModification": "2025-11-23T15:48:14+00:00", "categories": [ "Algorithms", "Quantum Computing" @@ -59,4 +59,4 @@ } ], "discussionForumUrl": "https://discuss.pennylane.ai/t/introduction-to-quantum-phase-estimation-demo/7337" -} \ No newline at end of file +}