ApplyToPartitionC 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 C indicates that the operation is controllable.

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

Input

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

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