get_z_basis_m_t

get_z_basis_m_t#

iqm.qaoa.tree_calculation.generate_basis.get_z_basis_m_t(basis)#

Takes an array containing (all) basis vectors and sorts them into a list based on their symmetry sector.

The input is assumed to be a (full) array of basis vectors.

Parameters:

basis (ndarray) – The array containing the basis vectors to be sorted.

Returns:

A list of numpy arrays, each of which contains the basis vectors belonging to the corresponding symmetry sector.

Return type:

list[ndarray[tuple[Any, …], dtype[int8]]]