Skip to content

Conversation

@lkdvos
Copy link
Member

@lkdvos lkdvos commented Nov 8, 2025

This closes #228 by adding a warning to the documentation page.
I did some further testing, and actually when combining any of the order specification methods we run into issues, as specifying both order = (...) and parentheses just errors:

julia> @tensor order = (1,2,3,4,5) E2[-1 -2 -3; -4] := A[-1 -2 -3; 4 5] * (B[4; 1] * C[5; 2] * D[1 2; -4])
ERROR: LoadError: ArgumentError: not a valid contraction tree with contraction indices [1, 2, 3, 4, 5]

I'm okay with this, even though in principle we could have a better error message for this in the future.

@lkdvos lkdvos requested a review from Jutho November 8, 2025 13:29
@codecov
Copy link

codecov bot commented Nov 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos lkdvos enabled auto-merge (squash) November 8, 2025 14:37
@lkdvos lkdvos merged commit 5d35cf0 into master Nov 17, 2025
15 checks passed
@lkdvos lkdvos deleted the docs-order branch November 17, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contraction order with parentheses + ncon style

3 participants