quimb.experimental.misc.renormalization

Attributes

Functions

CTMRG(T, A, C, L, max_bond[, strip_exponent])

Contract the translationally invariant tensor network given by bulk,

coarse_grain_eager(self, direction[, compress, ...])

This contracts pairs of tensors in along direction, and then

Module Contents

quimb.experimental.misc.renormalization.CTMRG(T, A, C, L, max_bond, strip_exponent=False)

Contract the translationally invariant tensor network given by bulk, edge and corner arrays T, A and C respectively with side length L.

Parameters:
  • T (array_like with shape (d, d, d, d)) – The bulk tensor, dimensions corresponding to (towards corner, away from corner, away from corner, towards corner),

  • A (array_like with shape (d, d, d)) – The edge tensor, dimensions corresponding to (away from corner, towards corner, towards bulk).

  • C (array_like with shape (d, d)) – The corner tensor.

  • L (int) – The side length of the lattice to generate.

  • max_bond (int) – The maximum bond dimension to use.

  • strip_exponent (bool, optional) – Whether to strip an overall exponent while contracting and accrue this separately, to avoid overflow.

Returns:

  • Z (float) – The contracted value of the tensor network.

  • exponent (float, optional) – The exponent, in log10, accrued while contracting, such that the real contracted value is Z * 10**exponent.

quimb.experimental.misc.renormalization.coarse_grain_eager(self, direction, compress=True, equalize_norms=False, inplace=False, **compress_opts)

This contracts pairs of tensors in along direction, and then optionally compresses the doubled bonds generated along the other direction.

quimb.experimental.misc.renormalization.coarse_grain_