R1 operation
Namespace: Microsoft.Quantum.Intrinsic
Package: Microsoft.Quantum.QSharp.Core
Applies a rotation about the $\ket{1}$ state by a given angle.
operation R1 (theta : Double, qubit : Qubit) : Unit is Adj + Ctl
Description
\begin{align} R_1(\theta) \mathrel{:=} \operatorname{diag}(1, e^{i\theta}). \end{align}
Input
theta : Double
Angle about which the qubit is to be rotated.
qubit : Qubit
Qubit to which the gate should be applied.
Output : Unit
Remarks
Equivalent to:
R(PauliZ, theta, qubit);
R(PauliI, -theta, qubit);
反馈
提交和查看相关反馈