productstate

Model.productstate(quantum_nums)

Return the product-basis state for the given per-spin quantum numbers.

Parameters:

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

Quantum numbers. It can be specified by three 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.

  • By a bitstring such as "010", interpreted in the spin_names order using each spin’s qubit_subspace.

Return type:

ndarray | Array

Returns:

Product basis state