cirq.validate_normalized_state

cirq.validate_normalized_state(state: numpy.ndarray, num_qubits: int, dtype: Type[numpy.number] = <class 'numpy.complex64'>) → None[source]

Validates that the given state is a valid wave function.