-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor truncate! to return truncation error from each bond
This commit refactors the original implemenation. `truncate!` now expects the user to pass a pointer to a vector of floats with as many elements as there are bonds in the MPS. It will then store the truncation error of each bond in the vector. The corresponding test was updated. The package was re-tested with the same results described in the PR (75165 passing and 33 broken for total of 75198 tests). The docstring of `truncate!` was updated to reflect the new behavior.
- Loading branch information
1 parent
5c887ce
commit 00f1764
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters