Apply a contraction (varipeps.contractions.apply_contraction())

varipeps.contractions.apply_contraction(name: str, peps_tensors: Sequence[Array], peps_tensor_objs: Sequence[PEPS_Tensor], additional_tensors: Sequence[Array], *, disable_identity_check: bool = True) Array

Apply a contraction to a list of tensors.

For details on the contractions and their definition see varipeps.contractions.Definitions.

Parameters:
Keyword Arguments:

disable_identity_check (bool, optional) – Disable the check if the tensor is identical to the one of the corresponding object.

Default: True

Returns:

The contracted tensor.

Return type:

jax.numpy.ndarray