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:
- A
Tensor3
The new tensor.
- direction{ +1, -1 }
Direction in which the update is performed.
- truncation
Strategy
Truncation parameters such as tolerance or maximum bond dimension.
- A
- Returns:
float
The truncation error of this update.