Rxx-åtgärd
Fullständigt kvalificerat namn: Std.Intrinsic.Rxx
operation Rxx(theta : Double, qubit0 : Qubit, qubit1 : Qubit) : Unit is Adj + Ctl
Sammanfattning
Tillämpar de två qubit-XX rotationsporten.
Inmatning
Theta
Vinkeln som kvantbitarna roteras om.
qubit0
Den första kvantbitsinmatningen till grinden.
qubit1
Den andra kvantbitsinmatningen till grinden.
Anmärkningar
$$ \begin{align} R_{xx}(\theta) \mathrel{:=} \begin{bmatrix} \cos \theta & 0 & 0 & -i\sin \theta \\ 0 & \cos \theta & -i\sin \theta & 0 \\ 0 & -i\sin \theta & \cos \theta & 0 \\ -i\sin \theta & 0 & 0 & \cos \theta \end{bmatrix}. \end{align} $$