Skip to content

API Reference

trntensor's public API is organized into these modules:

  • einsum — einsum, multi_einsum
  • plan — plan_contraction, ContractionPlan, estimate_flops
  • decompose — cp_decompose, tucker_decompose, and reconstructors
  • quantum — fused chemistry primitives (mp2_energy, ao_to_mo_transform, df_exchange, df_coulomb)
  • equivariant — MACE-style equivariant contractions (conv_tp, symmetric_contraction) with forward and input gradients
  • mlip_edge — the rest of a MACE step as fused ops with analytic backwards (spherical_harmonics, edge_chain, equivariant_linear) and compiled regions (set_region_backend)
  • nki — backend dispatch (set_backend, get_backend, HAS_NKI)