uid | title | ms.date | ms.topic | qsharp.kind | qsharp.namespace | qsharp.name | qsharp.summary |
---|---|---|---|---|---|---|---|
Microsoft.Quantum.Canon.ApplyToPartition |
ApplyToPartition operation |
7/28/2023 12:00:00 AM |
managed-reference |
operation |
Microsoft.Quantum.Canon |
ApplyToPartition |
Applies a pair of operations to a given partition of a register into two parts. |
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.
operation ApplyToPartition (op : ((Qubit[], Qubit[]) => Unit), numberOfQubitsToFirstArgument : Int, target : Qubit[]) : Unit
The pair of operations to be applied to the given partition.
Number of qubits from target to put into the first part of the partition. The remaining qubits constitute the second part of the partition.
A register of qubits that are being partitioned and operated on by the given two operation.
- Microsoft.Quantum.Canon.ApplyToPartitionA
- Microsoft.Quantum.Canon.ApplyToPartitionC
- Microsoft.Quantum.Canon.ApplyToPartitionCA