Closed jofrevalles closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.00%. Comparing base (
11890f0
) to head (dcfb136
). Report is 12 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
This PR enhances the
Tenet.contract
function, enabling it tocontract
the singular values within a bond between twoSite
s. It introduces an optionaldirection
argument, allowing users to specify whether the singular values should be contracted onto the:left
or the:right
tensor.Additionally, we have added tests for this new functionality, and refactored the existing tests for the
canonize!
function, resulting in more compact and efficient test code.Example:
Let's exemplify the function: