Rzz operation

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Intrinsic

Package: Microsoft.Quantum.Type2.Core

Applies the two qubit Ising $ZZ$ rotation gate.

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

Description

\begin{align} R_zz(\theta) \mathrel{:=} \begin{bmatrix} e^{-i \theta / 2} & 0 & 0 & 0 \\ 0 & e^{i \theta / 2} & 0 & 0 \\ 0 & 0 & e^{i \theta / 2} & 0 \\ 0 & 0 & 0 & e^{-i \theta / 2} \end{bmatrix}. \end{align}

Input

theta : Double

The angle about which the qubits are rotated.

qubit0 : Qubit

The first qubit input to the gate.

qubit1 : Qubit

The second qubit input to the gate.

Output : Unit