seemps.state.CanonicalMPS.update_canonical#

method

CanonicalMPS.update_canonical(A, direction, truncation)[source]#

Update the state, replacing the tensor at self.center and moving the center to self.center + direction.

Parameters:
ATensor3

The new tensor.

direction{ +1, -1 }

Direction in which the update is performed.

truncationStrategy

Truncation parameters such as tolerance or maximum bond dimension.

Returns:
float

The truncation error of this update.