uid | title | ms.date | ms.topic | qsharp.kind | qsharp.namespace | qsharp.name | qsharp.summary |
---|---|---|---|---|---|---|---|
Microsoft.Quantum.Canon.ApplyToElementA |
ApplyToElementA operation |
7/28/2023 12:00:00 AM |
managed-reference |
operation |
Microsoft.Quantum.Canon |
ApplyToElementA |
Applies an operation to a given element of an array. |
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 an operation to a given element of an array.
operation ApplyToElementA<'T> (op : ('T => Unit is Adj), index : Int, targets : 'T[]) : Unit is Adj
Given an operation op
, an index index
, and an array of targets targets
,
applies op(targets[index])
.
An operation to be applied.
An index into the array of targets.
An array of possible targets for op
.
The input type of the operation to be applied.
- Microsoft.Quantum.Canon.ApplyToElement
- Microsoft.Quantum.Canon.ApplyToElementC
- Microsoft.Quantum.Canon.ApplyToElementCA