qgrad_qutip.isket

qgrad_qutip.isket(state)

Checks whether a state is a ket based on its shape.

Parameters

state (jnp.ndarray) – input state

Returns

True if state is a ket and False otherwise

Return type

bool