auto_contractor.contract_simplify_compile¶
- auto_contractor.contract_simplify_compile(*exprs, is_isospin_symmetric_limit=True, diagram_type_dict=None)[source]¶
Call
contract_simplify
and thencompile_expr
This function can be used to construct the first argument of
cached_comipled_cexpr
. e.g. exprs = [ Qb(“u”, “x”, s, c) * Qv(“u”, “x”, s, c) + “u_bar*u”, Qb(“s”, “x”, s, c) * Qv(“s”, “x”, s, c) + “s_bar*s”, Qb(“c”, “x”, s, c) * Qv(“c”, “x”, s, c) + “c_bar*c”, ] e.g. exprs = [ mk_pi_p(“x2”, True) * mk_pi_p(“x1”) + “(pi * pi)”, mk_j5pi_mu(“x2”, 3) * mk_pi_p(“x1”) + “(a_pi * pi)”, mk_k_p(“x2”, True) * mk_k_p(“x1”) + “(k * k )”, mk_j5k_mu(“x2”, 3) * mk_k_p(“x1”) + “(a_k * k )”, ]