View source on GitHub |
Original and target are written in a similar notation to OpenFermion
fqe.wick.wick(
target: str,
data: List[numpy.ndarray],
spinfree: Optional[bool] = True
) -> numpy.ndarray
operators.
For example,
.. code-block::
target = 'i^ l k j^'
When spinfree is set to True, we assume that the indices are ordered 123.../123...
The data has to be a tuple of 1-, 2-, and n-particle RDMs when target correspond to n-body strings
Args | |
---|---|
target (string) - specifies the operator list
data (List[numpy.ndarray]) - a list of particle RDMs spinfree (bool) - whether the RDMs are spinfree |
Returns | |
---|---|
(numpy.ndarray) - RDM after performing Wick's theorem |