OperationPow function
Namespace: Microsoft.Quantum.Canon
Package: Microsoft.Quantum.Standard
Raises an operation to a power.
That is, given an operation representing a gate $U$, returns a new operation $U^m$ for a power $m$.
function OperationPow<'T> (op : ('T => Unit), power : Int) : ('T => Unit)
Input
op : 'T => Unit
An operation $U$ representing the gate to be repeated.
power : Int
The number of times that $U$ is to be repeated.
Output : 'T => Unit
A new operation representing $U^m$, where $m = \texttt{power}$.
Type Parameters
'T
The type of the operation to be powered.
See Also
Feedback
Submit and view feedback for