quantax.utils.rand_states#

quantax.utils.rand_states(ns: int | None = None) Array#

Random basis states. The method for generating random states is automatically adjusted for different particle types.

Parameters:

ns – The number of basis states. If not specified, only 1 basis state without batch dimension will be returned.