Revise fix for integration tests#473
Merged
Krzmbrzl merged 2 commits intoValeevGroup:masterfrom Feb 2, 2026
Merged
Conversation
This (effectively) revers 445eeae as we do indeed want the semantics to be such that symmetrizers need to be constructed with swapped bra/ket indices compared to what external_indices(…) returns. The underlying issue in the integration tests was that external_indices was called on the symmetrizer alone rather than the entire expression, in which case it currently has the opposite behavior in terms of bra/ket ordering. Hence, the correct way to fix the integration tests is to use external_indices in the way it was intended to be used and leave the construction of the symmetrizer tensors as it was. See also ValeevGroup#471
ABesharat
approved these changes
Feb 1, 2026
Member
|
@Krzmbrzl this is fine, but points out the flaw with what |
evaleev
approved these changes
Feb 2, 2026
Collaborator
Author
So you mean something like Sounds like an excellent idea 👍 |
45ecc4a to
5d6c905
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This (effectively) reverts 445eeae as we
do indeed want the semantics to be such that symmetrizers need to be
constructed with swapped bra/ket indices compared to what
external_indices(…) returns. The underlying issue in the integration
tests was that external_indices was called on the symmetrizer alone
rather than the entire expression, in which case it currently has the
opposite behavior in terms of bra/ket ordering.
Hence, the correct way to fix the integration tests is to use
external_indices in the way it was intended to be used and leave the
construction of the symmetrizer tensors as it was.
See also #471