View source on GitHub |
This function is an internal utility that fills in custom RDMs using
fqe.wick.wickfill(
target: numpy.ndarray,
source: numpy.ndarray,
indices: List[int],
factor: float,
delta: List[Tuple[int, int]]
) -> None
particle RDMs. The result of Wick's theorem is passed as lists (indices and delta) and a factor associated with it. The results are stored in target.
Args | |
---|---|
target (numpy.ndarray) - output array that stores reordered RDMs
source (numpy.ndarray) - input array that stores one of the particle RDMs indices (List[int]) - index mapping factor (float) - factor associated with this contribution delta (List[Tuple[int, int]]) - Kronecker delta's due to Wick's theorem |