Ry-Vorgang
Warnung
Diese Dokumentation bezieht sich auf das klassische QDK, das durch das moderne QDK ersetzt wurde.
Weitere Informationen finden https://aka.ms/qdk.api Sie in der API-Dokumentation für das moderne QDK.
Namespace: Microsoft.Quantum.Intrinsic
Paket: Microsoft.Quantum.Type2.Core
Wendet eine Drehung um die $y$-Achse um einen bestimmten Winkel an.
operation Ry (theta : Double, qubit : Qubit) : Unit is Adj + Ctl
BESCHREIBUNG
\begin{align} R_y(\theta) \mathrel{:=} e^{-i \theta \sigma_y / 2} = \begin{bmatrix} \cos \frac{\theta}{2} & -\sin \frac{\theta}{2} \\ \sin \frac{\theta}{2} & \cos \frac{\theta}{2} \end{bmatrix}. \end{align}
Eingabe
theta : Double
Winkel im Bogenmaß, um den das Qubit gedreht werden soll.
Qubit: Qubit
Qubit, auf das das Gate angewendet werden soll.
Ausgabe: Einheit
Hinweise
Entspricht:
R(PauliY, theta, qubit);