auto_contractor.CExpr¶
- class auto_contractor.CExpr[source]¶
self.diagram_types self.positions self.variables_factor_intermediate self.variables_factor self.variables_prop self.variables_color_matrix self.variables_prod self.variables_chain self.variables_tr self.variables_baryon_prop self.named_terms self.named_exprs # self.named_terms[i] = (term_name, Term(c_ops, [], 1),) self.named_exprs[i] = (expr_name, [ (ea_coef, term_name,), … ],) self.positions == sorted(list(self.positions))
Methods
__init__
()collect_op
()interface function Performing common sub-expression elimination Should be called after contract_simplify_compile(*exprs) or mk_cexpr(*exprs) The cexpr cannot be evaluated before collect_op!!! eval term factor
copy
()return a deep copy of this object.
get_expr_names
()list
()optimize
()interface function