contract(contraction, a, b, out=None)¶
Form a single, einsum-like contraction, that is contract tensor a and be to form out via a contraction defined by the first argument string, e.g. “ab,bc->ac” or “abc,bcd->ad”.
- Note: The contract function is experimental. Its interface can change
and the function may disappear in the future.