Template Function sequant::to_export_tree(const ExprPtr&, bool)¶
Defined in File export.hpp
Function Documentation¶
-
template<typename NodeData = ExportExpr>
ExportNode<NodeData> sequant::to_export_tree(const ExprPtr &expr, bool retain_braket = false)¶ Note
Prefer the ResultExpr overload below: the bare-ExprPtr path goes through binarize(ExprPtr), which derives the tree head’s bra/ket layout from external slot positions in the source factors (can yield an unconventional split). The export pass downstream of this call reads index slots only for code-gen and does not depend on the head’s bra/ket convention, so the deprecation warning is suppressed here.
- Parameters:
expr – The expression to transform
- Returns:
The corresponding ExportNode tree