|View source on GitHub|
Helpers for handling quantum state vectors.
class StateVectorMixin: A mixin that provide methods for objects that have a state vector.
measure_state_vector(...): Performs a measurement of the state in the computational basis.
sample_state_vector(...): Samples repeatedly from measurements in the computational basis.
STATE_VECTOR_LIKE: An object representing a state vector.