ffsim.spinful_to_spinless_vec¶ ffsim.spinful_to_spinless_vec(vec, norb, nelec)[source]¶ Convert a spinful state vector to a spinless state vector. Parameters: vec (ndarray) – The state vector in spinful format. norb (int) – The number of spatial orbitals. nelec (tuple[int, int]) – The numbers of spin alpha and spin beta electrons. Return type: ndarray Returns: The state vector in spinless format, with norb = norb and nocc = sum(nelec).