Skip to content

Conversation

@lkdvos
Copy link
Member

@lkdvos lkdvos commented Jan 1, 2026

This is a partial fix for an issue mentioned in #243, specifically for transpose.
The main point is to preserve the DiagonalTensorMap type whenever possible, rather than instantiating a dense tensor.

@codecov
Copy link

codecov bot commented Jan 1, 2026

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/tensors/diagonal.jl 81.25% 3 Missing ⚠️
Files with missing lines Coverage Δ
src/tensors/diagonal.jl 92.22% <81.25%> (+0.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Jutho
Jutho previously approved these changes Jan 1, 2026
@Jutho
Copy link
Member

Jutho commented Jan 1, 2026

Tests seem to be failing though for fermionic DiagonalTensorMap instances.

@Jutho
Copy link
Member

Jutho commented Jan 1, 2026

Oh but it is just the newly added tests that are wrong. Permutation and transposition are not compatible in this case, though I agree that this might be very confusing.

@lkdvos
Copy link
Member Author

lkdvos commented Jan 1, 2026

Will fix, I forgot about that subtle difference :)

@lkdvos lkdvos enabled auto-merge (squash) January 1, 2026 21:48
@lkdvos lkdvos merged commit 59c5d97 into main Jan 2, 2026
38 of 42 checks passed
@lkdvos lkdvos deleted the ld-diagtranspose branch January 2, 2026 00:01
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.

3 participants