UncurriedOpCA 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

Given a function which returns operations, returns a new operation which takes both inputs as a tuple. The modifier CA indicates that the operations are controllable and adjointable.

function UncurriedOpCA<'T, 'U> (curriedOp : ('T -> ('U => Unit is Ctl + Adj))) : (('T, 'U) => Unit is Ctl + Adj)

Input

curriedOp : 'T -> 'U => Unit is Adj + Ctl

A function which returns operations.

Output : ('T,'U) => Unit is Adj + Ctl

A new operation op such that op(t, u) is equivalent to (curriedOp(t))(u).

Type Parameters

'T

The type of the first argument of a curried function.

'U

The type of the second argument of a curried function.

See Also