-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix reindex! by returing the final index replace mapping * Small fix in reindex function * Swap site indices to ensure proper input/output matching * Add tests for reindex! function * Fix code and tests * Refactor `replace!` methods for `TensorNetwork` * Implement `replace!` for `Quantum` and make `reindex!` use it * Enhance tests by checking tensor inds * Add complicated replacement test * Fix `replace!` on `TensorNetwork` with overlapped indices * Refactor tests * Refactor test * Fix test * Implement `resetindex!` for `Quantum` * Fix `reindex!` Now it also modifies the indices of `a` * Fix typo in tests --------- Co-authored-by: Sergio Sánchez Ramírez <sergio.sanchez.ramirez+git@bsc.es>
- Loading branch information
1 parent
e8ef246
commit b067885
Showing
4 changed files
with
182 additions
and
45 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
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