|View source on GitHub|
Protocol for objects that are mixtures (probabilistic combinations).
class SupportsMixture: An object that decomposes into a probability distribution of unitaries.
has_mixture(...): Returns whether the value has a mixture representation.
mixture(...): Return a sequence of tuples representing a probabilistic unitary.
validate_mixture(...): Validates that the mixture's tuple are valid probabilities.