Poznámka
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete sa skúsiť prihlásiť alebo zmeniť adresáre.
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete skúsiť zmeniť adresáre.
Fully qualified name: Std.Arrays.DrawMany
operation DrawMany<'TInput, 'TOutput>(op : ('TInput => 'TOutput), nSamples : Int, input : 'TInput) : 'TOutput[]
Repeats an operation for a given number of samples, collecting its outputs in an array.
The operation to be called repeatedly.
The number of samples of calling op
to collect.
The input to be passed to op
.
The type of input expected by op
.
The type of output returned by op
.
The following samples an alternating array of results.
use qubit = Qubit();
let results = Std.Arrays.DrawMany(q => {X(q); M(q)}, 3, qubit);