Physlib.QFT.PerturbationTheory.WickContraction.Erase
7 declarations
Erasing an element from a Wick contraction
#eraseGiven a Wick contraction on elements and an index , the function `WickContraction.erase` produces a Wick contraction on elements. This is obtained by removing the index and any pair in that contains . The remaining indices in are relabeled to using the unique order-preserving bijection (the inverse of `i.succAbove`). If was originally contracted with some in , then becomes uncontracted in the resulting contraction.
is uncontracted in iff was uncontracted or paired with in
#mem_erase_uncontracted_iffFor a Wick contraction on indices and an index , let be the Wick contraction on indices obtained by removing and any pair containing . For any index , is uncontracted in if and only if the corresponding index was either already uncontracted in or was paired with in .
Pairs in distinct from are preserved in
#mem_not_eq_erase_of_isSomeLet be a Wick contraction on indices . Suppose an index is contracted in , and let be the index it is paired with (so that ). For any pair of indices that is a contraction in , if is not the pair , then there exists a pair in the erased contraction such that is the image of under the order-preserving embedding .
Pairs in are preserved in if is uncontracted
#mem_not_eq_erase_of_isNoneLet be a Wick contraction on indices . Suppose an index is uncontracted in (i.e., ). Then for any pair of indices that belongs to the contraction , there exists a pair in the erased contraction such that is the image of under the order-preserving embedding .
The partner of index as an uncontracted element in
#getDualEraseGiven a Wick contraction on elements and an index , this function returns the element that was paired with in , now viewed as an uncontracted element in the reduced contraction . Specifically, if is part of a contracted pair in , the function returns the index (relabeled to the set ) as an element of the set of uncontracted indices of . If is not contracted in , the function returns .
For any Wick contraction on elements and an index , the function —which identifies the partner of that becomes uncontracted in the reduced contraction—returns a value (is not `none`) if and only if the index is contracted in (i.e., is not `none`).
on a Wick contraction of size 1 is
#getDualErase_oneFor any Wick contraction on a single element and any index in that set (i.e., ), the function —which returns the partner of as an uncontracted element in the contraction resulting from erasing —is equal to .
