openfermion.linalg.jw_configuration_state

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

Main aliases

openfermion.jw_configuration_state, openfermion.linalg.sparse_tools.jw_configuration_state

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