40616e50

Author: Lucien Huber <im@lcnbr.ch>

Committer: GitHub <noreply@github.com>

fix tensor traces and cache decimal promotions (#123)

* fix empty dirac trace simplification

Co-authored-by: Lucien Huber <im@lcnbr.ch>

* cache decimal promotions per worker

Co-authored-by: Lucien Huber <im@lcnbr.ch>

* fix spenso trace bookkeeping and repeated dense traces

Keep ordered structure partitions valid after tracing and expose the correct
self-dual slice. Locate each dense trace in the partially contracted result.

Combine PR #122 with regression coverage for empty and mixed partitions,
both trace argument orders, and exact sparse contraction values.

Co-authored-by: Lucien Huber <im@lcnbr.ch>

* enable CI for trace and promotion fixes

Co-authored-by: Lucien Huber <im@lcnbr.ch>

---------

Co-authored-by: Kaapo Seppänen <seppanenkaapo@gmail.com>