Sampled function

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

Package: Microsoft.Quantum.MachineLearning

Samples a given array, using the given schedule.

function Sampled<'T> (schedule : Microsoft.Quantum.MachineLearning.SamplingSchedule, values : 'T[]) : 'T[]

Input

schedule : SamplingSchedule

A schedule to use in sampling values.

values : 'T[]

An array of values to be sampled.

Output : 'T[]

An array of elements from values, following the given schedule.

Type Parameters

'T