opt\_einsum - A Python package for optimizing contraction order for einsum-like expressions
Top Cited Papers
Open Access
- 29 June 2018
- journal article
- Published by The Open Journal in Journal of Open Source Software
- Vol. 3 (26)
Abstract
Einsum is a powerful Swiss army knife for arbitrary tensor contractions and general linear algebra found in the popular numpy (Walt, Colbert, and Varoquaux 2011) package. While these expressions can be used to form most mathematical operations found in NumPy, the optimization of these expressions becomes increasingly important as naive implementations increase the overall scaling of these expressions resulting in a dramatic increase in overall execution time. Expressions with many tensors are particularly prevalent in many-body theories such as quantum chemistry, particle physics, and nuclear physics in addition to other fields such as machine learning. At the extreme case, matrix product state theory can have thousands of tensors meaning that the computation cannot procede in a naive fashion.Keywords
This publication has 1 reference indexed in Scilit:
- The NumPy Array: A Structure for Efficient Numerical ComputationComputing in Science & Engineering, 2011