# Double Excitation gate

**URL:** <https://discuss.pennylane.ai/t/double-excitation-gate/4780>\
**Category:** PennyLane Help\
**Created:** [June 21, 2024, 7:00am UTC](https://discuss.pennylane.ai/t/double-excitation-gate/4780 "2024-06-21T07:00:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Md\_Zubair](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/md_zubair/32/2652_2.png) [@Md\_Zubair](https://discuss.pennylane.ai/u/Md_Zubair)\
**Post date:** [June 21, 2024, 7:00am UTC](https://discuss.pennylane.ai/t/double-excitation-gate/4780/1 "2024-06-21T07:00:23Z")

</div>

![image](https://canada1.discourse-cdn.com/flex012/uploads/pennylane/original/2X/3/3a481c89a1ff35b371aa4e80690c3a801e45837d.jpeg)  
here , i am not understanding, how the sin, cos came ?? and how the G(2) gates are arranged like this ??? when we take candidate ground state as (alpha|11000\> + beta|001100\> + gamma|000011\>)

---

<div class="post-metadata">

**Author:** ![CatalinaAlbornoz](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/catalinaalbornoz/32/1196_2.png) [@CatalinaAlbornoz](https://discuss.pennylane.ai/u/CatalinaAlbornoz)\
**Post date:** [June 21, 2024, 7:41pm UTC](https://discuss.pennylane.ai/t/double-excitation-gate/4780/2 "2024-06-21T19:41:18Z")

</div>

Hi @Md_Zubair , welcome to the Forum!

This [demo on Givens rotations](https://pennylane.ai/qml/demos/tutorial_givens_rotations/) has the answer 😃

You’ll see in this demo that the matrix for the two-qubit gate G contains sines and cosines.

Is your question based on a specific PennyLane challenge or is it general? If it’s based on a specific challenge feel free to add the link here for others who may have a similar question!
