Module: cirq.sim.state_vector

Helpers for handling quantum state vectors.

Classes

class StateVectorMixin: A mixin that provide methods for objects that have a state vector.

Functions

bloch_vector_from_state_vector(...): THIS FUNCTION IS DEPRECATED.

density_matrix_from_state_vector(...): THIS FUNCTION IS DEPRECATED.

dirac_notation(...): THIS FUNCTION IS DEPRECATED.

measure_state_vector(...): Performs a measurement of the state in the computational basis.

sample_state_vector(...): Samples repeatedly from measurements in the computational basis.

to_valid_state_vector(...): THIS FUNCTION IS DEPRECATED.

validate_normalized_state(...): THIS FUNCTION IS DEPRECATED.

Type Aliases

STATE_VECTOR_LIKE: The central part of internal API.

TYPE_CHECKING False