File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -969,7 +969,13 @@ ExprPtr closed_shell_spintrace(
969969 // Index tags are cleaned prior to calling the fast canonicalizer
970970 detail::reset_idx_tags (expr); // This call is REQUIRED
971971 expand (expr); // This call is REQUIRED
972- simplify (expr); // full simplify to combine terms before count_cycles
972+ SimplifyOptions opts = SimplifyOptions::default_options ();
973+ opts.named_indices = std::vector<Index>{};
974+ for (const auto & group : ext_index_groups) {
975+ opts.named_indices ->insert (opts.named_indices ->end (), group.begin (),
976+ group.end ());
977+ }
978+ simplify (expr, opts); // full simplify to combine terms before count_cycles
973979
974980 // Lambda for spin-tracing a product term
975981 // For closed-shell case, a spin-traced result is a product term scaled by
You can’t perform that action at this time.
0 commit comments