Microsoft.Quantum.Random namespace

Operations

Name Summary
DrawCategorical Draws a random sample from a categorical distribution specified by a list of probablities.
DrawRandomBool Given a success probability, returns a single Bernoulli trial that is true with the given probability.
DrawRandomDouble Draws a random real number in a given inclusive interval.
DrawRandomInt Draws a random integer in a given inclusive range.
DrawRandomPauli Draws a random Pauli value.
DrawRandomSingleQubitClifford Returns a single-qubit Clifford operator chosen uniformly at random from the single-qubit Clifford group.
MaybeChooseElement Given an array of data and an a distribution over its indices, attempts to choose an element at random.

Functions

Name Summary
CategoricalDistribution Returns a discrete categorical distribution, in which the probability for each of a finite list of given outcomes is explicitly specified.
ContinuousUniformDistribution Returns a uniform distribution over a given inclusive interval.
DiscreteUniformDistribution Returns a uniform distribution over a given inclusive range.
NormalDistribution Returns a normal distribution with a given mean and variance.
StandardNormalDistribution Returns a normal distribution with mean 0 and variance 1.
TransformedContinuousDistribution Given a continuous distribution, returns a new distribution that transforms the original by a given function.

User-defined types

Name Summary
BigDiscreteDistribution Represents a univariate probability distribution over integers of arbitrary size.
ComplexDistribution Represents a univariate probability distribution over complex numbers.
ContinuousDistribution Represents a univariate probability distribution over real numbers.
DiscreteDistribution Represents a univariate probability distribution over integers.