Partilhar via


Operação Rxx

Nome totalmente qualificado: Std.Intrinsic.Rxx

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

Resumo

Aplica o ising de dois qubits XX porta de rotação.

Entrada

theta

O ângulo sobre o qual os qubits são girados.

qubit0

A primeira entrada de qubit para o portão.

qubit1

A segunda entrada de qubit para o portão.

Observações

$$ \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} $$