cirq.validate_normalized_state

cirq.validate_normalized_state(state: numpy.ndarray, *, qid_shape: Tuple[int, ...], dtype: Type[numpy.number] = <class 'numpy.complex64'>, atol: float = 1e-07) → None[source]

Validates that the given state is a valid wave function.