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

Addition of controlled rotation gates

Abierto
#1,082 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
373
Forks
195
Merge medio
4 d 15 h
PR fusionados (30 d)
8

Descripción

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!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.