From 12d6ab9855f071b34913c8343e384b5b3e1b4c63 Mon Sep 17 00:00:00 2001 From: Federico Amato <98230423+fedesss98@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:45:18 +0200 Subject: [PATCH 1/3] Update date of last modification in metadata.json --- .../tutorial_stochastic_parameter_shift/metadata.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json b/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json index e1058082ab..826a454ff7 100644 --- a/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json +++ b/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json @@ -8,7 +8,7 @@ "executable_stable": true, "executable_latest": true, "dateOfPublication": "2020-05-25T00:00:00+00:00", - "dateOfLastModification": "2026-01-14T15:48:14+00:00", + "dateOfLastModification": "2026-04-09T16:40:00+00:00", "categories": [ "Optimization" ], @@ -73,4 +73,4 @@ "weight": 1.0 } ] -} \ No newline at end of file +} From dfc4494ce9e141851e5be7a8f786e8e820072e34 Mon Sep 17 00:00:00 2001 From: Federico Amato <98230423+fedesss98@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:52:00 +0200 Subject: [PATCH 2/3] Fix typo in demo.py Fixed '...with respect to *an measurement*...' to '...with respect to *a measurement* operator...' --- demonstrations_v2/tutorial_stochastic_parameter_shift/demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demonstrations_v2/tutorial_stochastic_parameter_shift/demo.py b/demonstrations_v2/tutorial_stochastic_parameter_shift/demo.py index 9447e2203b..e456d4899d 100644 --- a/demonstrations_v2/tutorial_stochastic_parameter_shift/demo.py +++ b/demonstrations_v2/tutorial_stochastic_parameter_shift/demo.py @@ -53,7 +53,7 @@ The Parameter-Shift Rule ------------------------ -In the quantum case, the expectation value of a circuit with respect to an measurement operator +In the quantum case, the expectation value of a circuit with respect to a measurement operator :math:`\hat{C}` depends smoothly on the the circuit's gate parameters :math:`\theta.` We can write this expectation value as :math:`\langle \hat{C}(\theta)\rangle.` This means that the derivatives :math:`\nabla_\theta \langle \hat{C} \rangle` exist and gradient descent can be used. From b7b80e65bc80e49fa00934391fd8509dea35177c Mon Sep 17 00:00:00 2001 From: Federico Amato <98230423+fedesss98@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:53:39 +0200 Subject: [PATCH 3/3] Update date of last modification --- .../tutorial_stochastic_parameter_shift/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json b/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json index 826a454ff7..80a0e103fd 100644 --- a/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json +++ b/demonstrations_v2/tutorial_stochastic_parameter_shift/metadata.json @@ -8,7 +8,7 @@ "executable_stable": true, "executable_latest": true, "dateOfPublication": "2020-05-25T00:00:00+00:00", - "dateOfLastModification": "2026-04-09T16:40:00+00:00", + "dateOfLastModification": "2026-04-09T16:53:00+00:00", "categories": [ "Optimization" ],