ClassicalValDistribution#
qualtran.simulation.classical_sim.ClassicalValDistribution
View source on GitHub
|
This class represents a distribution of classical values.
qualtran.simulation.classical_sim.ClassicalValDistribution(
a, p=attr_dict['p'].default
)
Use this if the bloq has performed a measurement or other projection that has resulted in a mixed state of purely classical values.
Args
aAn array of choices, or
np.arangeif an integer is given. This is theaparameter tonp.random.Generator.choice().pAn array of probabilities. If not supplied, the uniform distribution is assumed. This is the
pparameter tonp.random.Generator.choice().
Attributes
Methods#
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class ClassicalValDistribution.
View source on GitHub