ExpFrac operation
Namespace: Microsoft.Quantum.Intrinsic
Package: Microsoft.Quantum.QSharp.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
反馈
提交和查看相关反馈