ClassicalValDistribution#

qualtran.simulation.classical_sim.ClassicalValDistribution

This class represents a distribution of classical values.

Use this if the bloq has performed a measurement or other projection that has resulted in a mixed state of purely classical values.

a

An array of choices, or np.arange if an integer is given. This is the a parameter to np.random.Generator.choice().

p

An array of probabilities. If not supplied, the uniform distribution is assumed. This is the p parameter to np.random.Generator.choice().

a

 

p

 

Methods#

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__eq__

Method generated by attrs for class ClassicalValDistribution.