openfermion.linalg.jw_configuration_state

Function to produce a basis state in the occupation number basis.

occupied_orbitals list

A list of integers representing the indices of the occupied orbitals in the desired basis state

n_qubits int

The total number of qubits

basis_vector sparse

The basis state as a sparse matrix