ExpFrac 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 exponential of a multi-qubit Pauli operator with an argument given by a dyadic fraction.

operation ExpFrac (paulis : Pauli[], numerator : Int, power : Int, qubits : Qubit[]) : Unit is Adj + Ctl

Description

\begin{align} e^{i \pi k [P_0 \otimes P_1 \cdots P_{N-1}] / 2^n}, \end{align} where $P_i$ is the $i$th element of paulis, and where $N = $Length(paulis).

Input

paulis : Pauli[]

Array of single-qubit Pauli values indicating the tensor product factors on each qubit.

numerator : Int

Numerator ($k$) in the dyadic fraction representation of the angle by which the qubit register is to be rotated.

power : Int

Power of two ($n$) specifying the denominator of the angle by which the qubit register is to be rotated.

qubits : Qubit[]

Register to apply the given rotation to.

Output : Unit