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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for