Operação Rxx

Nome totalmente qualificado: Std.Intrinsic.Rxx

operation Rxx(theta : Double, qubit0 : Qubit, qubit1 : Qubit) : Unit is Adj + Ctl

Resumo

Aplica a porta de rotação Ising XX de dois qubits.

Entrada

Theta

O ângulo em torno do qual os qubits são rodados.

qubit0

A primeira entrada de qubit para a porta.

Qubit1

A segunda entrada de qubit para a porta.

Remarks

$$ \begin{align} R_{xx}(\theta) \mathrel{:=} \begin{bmatrix} \cos \theta & 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 \fin{bmatrix}. \end{align} $$