Module: cirq.protocols.mixture_protocol

Protocol for objects that are mixtures (probabilistic combinations).

Classes

class SupportsMixture: An object that decomposes into a probability distribution of unitaries.

Functions

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.

RaiseTypeErrorIfNotProvided ((0.0, []),)