ApplyToEachIndex operation
Namespace: Microsoft.Quantum.Canon
Package: Microsoft.Quantum.Standard
Applies a single-qubit operation to each indexed element in a register.
operation ApplyToEachIndex<'T> (singleElementOperation : ((Int, 'T) => Unit), register : 'T[]) : Unit
Input
singleElementOperation : (Int,'T) => Unit
Operation to apply to each qubit.
register : 'T[]
Array of qubits on which to apply the given operation.
Output : Unit
Type Parameters
'T
The target on which each of the operations acts.
See Also
反馈
提交和查看相关反馈