amazon-braket / amazon-braket/amazon-braket-sdk-python

Addition of controlled rotation gates

未關閉
#1,082 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
373
分支
195
平均合併
4 天 15 小時
30 天內合併 PR
8

描述

Would it be possible to add support for controlled rotation gates (`CRx(gate)`, `CRy(gate)`, `CRz(gate)`) in the `braket.circuits.gate` module?

``` python
class CRx(Gate):
r"""Controlled Rx gate.

Unitary matrix:

.. math:: \mathtt{CRx} = \begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & \cos{(\phi/2)} & -i \sin{(\phi/2)} \\
0 & 0 & -i \sin{(\phi/2)} & \cos{(\phi/2)} \\
\end{bmatrix}.
"""
```

Thank you!

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。