OperationPowCA function

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.Canon

Package: Microsoft.Quantum.Standard

Raises an operation to a power. The modifier A indicates that the operation is controllable and adjointable.

That is, given an operation representing a gate $U$, returns a new operation $U^m$ for a power $m$.

function OperationPowCA<'T> (op : ('T => Unit is Ctl + Adj), power : Int) : ('T => Unit is Ctl + Adj)

Input

op : 'T => Unit is Adj + Ctl

An operation $U$ representing the gate to be repeated.

power : Int

The number of times that $U$ is to be repeated.

Output : 'T => Unit is Adj + Ctl

A new operation representing $U^m$, where $m = \texttt{power}$.

Type Parameters

'T

The type of the operation to be powered.

See Also