# Question about Generalized parameter shift

**URL:** <https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868>\
**Category:** PennyLane Help\
**Created:** [April 23, 2023, 7:13am UTC](https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868 "2023-04-23T07:13:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangguohao](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/yangguohao/32/1639_2.png) [@yangguohao](https://discuss.pennylane.ai/u/yangguohao)\
**Post date:** [April 23, 2023, 7:13am UTC](https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868/1 "2023-04-23T07:13:40Z")

</div>

Hello,

I have reviewed the demos for Pennylane’s generalized parameter-shift rules found in [Generalized parameter-shift rules — PennyLane documentation](https://pennylane.ai/qml/demos/tutorial_general_parshift.html). I’m curious to know whether these parameter-shift rules are utilized in `diff_method=parameter-shift`.

Thank you!

---

<div class="post-metadata">

**Author:** ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)\
**Post date:** [April 24, 2023, 1:42pm UTC](https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868/2 "2023-04-24T13:42:10Z")

</div>

Hey @yangguohao! Welcome to the forum 😃!

Yep, you got it. You can check out what’s going on under the hood here:

> **[pennylane/pennylane/gradients at aea474de625b39a81efe17c7dd433027e1185f35 ·...](https://github.com/PennyLaneAI/pennylane/tree/aea474de625b39a81efe17c7dd433027e1185f35/pennylane/gradients)**
>
> aea474de625b39a81efe17c7dd433027e1185f35/pennylane/gradients

Also — I know you went through the General parameter-shift rules demo — you might find our videos on deriving the two-term parameter-shift rule helpful!

[![](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/d/dbd71a569acc85b1177ec1a05c4a3cfde0f60161.jpeg "Parameter-Shift Rule Derivation — Part 1 | PennyLane Tutorial") ](https://www.youtube.com/watch?v=CRafKy6wsbY)

[![](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/d/d4200eccdb2daa60f64dc973b78cb8cfb117fb07.jpeg "Parameter-Shift Rule Derivation — Part 2 | PennyLane Tutorial") ](https://www.youtube.com/watch?v=Pojm0lxoJxA)

---

<div class="post-metadata">

**Author:** ![yangguohao](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/yangguohao/32/1639_2.png) [@yangguohao](https://discuss.pennylane.ai/u/yangguohao)\
**Post date:** [April 25, 2023, 1:35am UTC](https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868/3 "2023-04-25T01:35:52Z")

</div>

Thank you for your reply, I will go take a look at these materials.

---

<div class="post-metadata">

**Author:** ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)\
**Post date:** [April 25, 2023, 2:37pm UTC](https://discuss.pennylane.ai/t/question-about-generalized-parameter-shift/2868/4 "2023-04-25T14:37:21Z")

</div>

Awesome! Let me know if you still have questions 😁
