Calculation of four sites expectation values
- varipeps.expectation.four_sites.calc_four_sites_quadrat_multiple_gates(peps_tensors: Sequence[Array], peps_tensor_objs: Sequence[PEPS_Tensor], gates: Sequence[Array]) List[Array][source]
Calculate the four site expectation values for three as quadrat ordered PEPS tensor and their environment.
The order of the PEPS sequence have to be [top-left, top-right, bottom-left, bottom-right].
The gate is applied in the order [top-left, top-right, bottom-left, bottom-right].
- Parameters:
peps_tensors (sequence of
jax.numpy.ndarray) – The PEPS tensor arrays. Have to be the same objects as the tensor attribute of the peps_tensor_obj argument.peps_tensor_objs (sequence of
PEPS_Tensor) – PEPS tensor objects.gates (sequence of
jax.numpy.ndarray) – Sequence with the gates which should be applied to the PEPS tensors. Gates are expected to be a matrix with first axis corresponding to the Hilbert space and the second axis corresponding to the dual room.
- Returns:
List with the calculated expectation values of each gate.
- Return type: