Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.01 KB

microsoft.quantum.canon.applytopartition.md

File metadata and controls

59 lines (35 loc) · 2.01 KB
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.

ApplyToPartition 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.

operation ApplyToPartition (op : ((Qubit[], Qubit[]) => Unit), numberOfQubitsToFirstArgument : Int, target : Qubit[]) : Unit

Input

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

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

  • Microsoft.Quantum.Canon.ApplyToPartitionA
  • Microsoft.Quantum.Canon.ApplyToPartitionC
  • Microsoft.Quantum.Canon.ApplyToPartitionCA