productstate

Model.productstate(quantum_nums)

Return the product basis state of the model corresponding to given quantum numbers of the spins.

Parameters:

quantum_nums (Dict[str, float] | Tuple[float, ...]) –

Quantum numbers. It can be specified by two different ways:

  • By a dict whose keys correspond to the spin names and values correspond to the quantum numbers.

  • By a tuple containing the quantum numbers in the same order as indicated by the spin_names.

Return type:

ndarray

Returns:

Product basis state