openfermion.utils.up_index

Function to return up-orbital index given a spatial orbital index.

index int

spatial orbital index

An integer representing the index of the associated spin-up orbital