Skip to content

Fix canonicalization of expressions containing single tensors - #600

Merged
Krzmbrzl merged 4 commits into
ValeevGroup:masterfrom
Krzmbrzl:fix-tensor-canonicalization
Aug 28, 2026
Merged

Fix canonicalization of expressions containing single tensors#600
Krzmbrzl merged 4 commits into
ValeevGroup:masterfrom
Krzmbrzl:fix-tensor-canonicalization

Conversation

@Krzmbrzl

Copy link
Copy Markdown
Collaborator

Fixes #599

See individual commit messages for what changed

The old default was to not have any TensorCanonicalizer installed unless
the user explicitly registered one. All cases of this being exercised
in SeQuant's codebase just installed the default canonicalizer anyway,
so we make that the default.

Anyone who wants to install a different canonicalizer can still do so
but if they are happy with the defaults, then at least code now works
out-of-the-box without throwing errors about missing canonicalizers (in
the best case) or just not working as expected (cmp. the new
simplification test).
@Krzmbrzl Krzmbrzl added the bug Something isn't working label Aug 28, 2026
@Krzmbrzl
Krzmbrzl marked this pull request as ready for review August 28, 2026 12:27
@Krzmbrzl
Krzmbrzl merged commit 5e488ba into ValeevGroup:master Aug 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplification failure for bra-ket swaps

1 participant