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

Addition of controlled rotation gates

オープン
#1,082 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
373
フォーク
195
平均マージ
4日 15時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。