einsum

adcc.einsum(subscripts, *operands, optimise='auto')

Evaluate Einstein summation convention for the operands similar to numpy’s einsum function. Uses opt_einsum and libadcc to perform the contractions.

Using this function does not evaluate, but returns a contraction expression tree where contractions are queued in optimal order.

Parameters
  • subscripts (str) – Specifies the subscripts for summation.

  • *operands (list of tensors) – These are the arrays for the operation.

  • optimise (str, list or bool, optional (default: auto)) – Choose the type of the path optimisation, see opt_einsum.contract for details.