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

Package: Microsoft.Quantum.Standard

Applies a pair of operations to a given partition of a register into two parts. The modifier A indicates that the operation is adjointable.

operation ApplyToPartitionA (op : ((Qubit[], Qubit[]) => Unit is Adj), numberOfQubitsToFirstArgument : Int, target : Qubit[]) : Unit is Adj

Input

op : (Qubit[],Qubit[]) => Unit is Adj

The pair of operations to be applied to the given partition.

numberOfQubitsToFirstArgument : Int

Number of qubits from target to put into the first part of the partition. The remaining qubits constitute the second part of the partition.

target : Qubit[]

A register of qubits that are being partitioned and operated on by the given two operation.

Output : Unit

See Also