Skip to content

Transpose exchanges roles of left and right indices#725

Open
manuschneider wants to merge 10 commits intomasterfrom
transpose_left_right
Open

Transpose exchanges roles of left and right indices#725
manuschneider wants to merge 10 commits intomasterfrom
transpose_left_right

Conversation

@manuschneider
Copy link
Collaborator

This fixes #367.

New behavior:

  1. The role of left and right indices is exchanged for bosonic UniTensors, while for BlockFermionicUniTensor the order of the indices is inverted.
  2. The rowrank is adapted accodingly
  3. Incoming bonds become outgoing ones and vice versa (redirect)

Unit tests are adapted accordingly. Some corrections in the unit tests were also done where I saw them (replacing size_t by cytnx_int64 etc.

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.32%. Comparing base (e87c3a2) to head (ba011f8).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #725      +/-   ##
==========================================
+ Coverage   32.35%   35.32%   +2.97%     
==========================================
  Files         215      215              
  Lines       36363    33115    -3248     
  Branches    14597    13204    -1393     
==========================================
- Hits        11764    11697      -67     
+ Misses      22659    19503    -3156     
+ Partials     1940     1915      -25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

this achieves that the output of the Dagger is in the same form as the original tensor
@manuschneider manuschneider added this to the v1.1.0 milestone Dec 11, 2025
@manuschneider manuschneider marked this pull request as ready for review February 23, 2026 06:17
@manuschneider manuschneider added the Pending check/approval Issue fixed, and need feedback label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending check/approval Issue fixed, and need feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent behavior of Transpose()

1 participant