quimb.experimental.misc.renormalization¶
Attributes¶
Functions¶
|
Contract the translationally invariant tensor network given by bulk, |
|
This contracts pairs of tensors in along |
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,AandCrespectively with side lengthL.- 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).
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_¶