-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
To reproduce, try the following (term from perturbed T amplitudes in LR-CCSD):
auto expr1 = sequant::parse_expr(L"-1 ω * A{i1,i2;a1,a2} * t{a1,a2;i1,i2}");
auto st_expr1 = mbpt::closed_shell_CC_spintrace(expr1);
std::wcout << "ST Expr1: " << st_expr1.to_latex() << "\n";-
closed_shell_CC_spintracemethods expectSumonly
SeQuant/SeQuant/domain/mbpt/spin.cpp
Lines 1133 to 1136 in af78423
ExprPtr closed_shell_CC_spintrace_v2(ExprPtr const& expr, ClosedShellCCSpintraceOptions options) { SEQUANT_ASSERT(options.method == BiorthogonalizationMethod::V2); SEQUANT_ASSERT(expr->is<Sum>()); -
symmetrize_exprexpects the firstfactorto be theAtensor. So it doesn't work whenωis present.
SeQuant/SeQuant/domain/mbpt/spin.cpp
Lines 602 to 606 in af78423
ExprPtr symmetrize_expr(const ProductPtr& product) { auto result = std::make_shared<Sum>(); // Assumes canonical sequence of tensors in the product if (product->factor(0)->as<Tensor>().label() != L"A") return product;
Metadata
Metadata
Assignees
Labels
No labels