openfermion.linalg.wedge

Implement the wedge product between left_tensor and right_tensor

Main aliases

openfermion.linalg.wedge_product.wedge, openfermion.wedge

The wedge product is defined as

ai1,i2,...,ipj1,j2,...,jpbip+1,ip+2,...,iNjp+1,jp+2,...,jN=(1N!)2=π,σϵ(π)ϵ(σ)πσai1,i2,...,ipj1,j2,...,jpbip+1,ip+2,...,iNjp+1,jp+2,...,jN

The top indices are those that transform contravariently. The bottom indices transform covariently.

The tensor storage convention for marginals follows the OpenFermion convention. tpdm[i, j, k, l] = , rtensor[u1, u2, u3, d1] =

left_tensor left tensor to wedge product
right_tensor right tensor to wedge product
left_index_ranks tuple of number of indices that transform contravariently and covariently
right_index_ranks tuple of number of indices that transform contravariently and covariently

new tensor constructed as the wedge product of the left_tensor and right_tensor