RepeatA 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
Repeats an operation a given number of times.
operation RepeatA<'TInput> (op : ('TInput => Unit is Adj), nTimes : Int, input : 'TInput) : Unit is Adj
Input
op : 'TInput => Unit is Adj
The operation to be called repeatedly.
nTimes : Int
The number of times to call op
.
input : 'TInput
The input to be passed to op
.
Output : Unit
Type Parameters
'TInput
Example
The following are equivalent:
RepeatA(U, 17, target);
(BoundA(ConstantArray(17, U)))(target);
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