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

Addition of controlled rotation gates

Open
#1,082 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
373
Forks
195
Avg merge
4d 15h
Merged PRs (30d)
8

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.