Metadata-Version: 2.1
Name: funfact
Version: 0.9.3
Summary: Functional factorization for matrices and tensors
Home-page: https://github.com/yhtang/FunFact
Author: Yu-Hang Tang
Author-email: Tang.Maxin@gmail.com
License: BSD
Description: # FunFact: Build Your Own Tensor Decomposition Model in a Breeze
        
        [![CI](https://github.com/yhtang/FunFact/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/yhtang/FunFact/actions/workflows/ci.yml)
        [![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/yhtang/839011f3f7a6bab680b18cbd9a45d2d3/raw/coverage-develop.json)](https://badge.fury.io/py/funfact)
        [![PyPI version](https://badge.fury.io/py/funfact.svg)](https://badge.fury.io/py/funfact)
        [![Documentation Status](https://readthedocs.org/projects/funfact/badge/?version=latest)](https://funfact.readthedocs.io/en/latest/?badge=latest)
        [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
        
        [FunFact](https://github.com/yhtang/FunFact.git) is a Python package for accelerating the design of matrix and tensor factorization algorithms. It features a powerful programming interface that augments the NumPy APIs with Einstein notations for writing very concise tensor expressions. Given an arbitrary forward calculation scheme, the package will solve the corresponding inverse problem using stochastic gradient descent, automatic differentiation, and multi-replica vectorization. Its application areas include quantum circuit synthesis, tensor decomposition, and neural network compression. It is GPU- and parallelization-ready thanks to modern numerical linear algebra backends such as JAX/TensorFlow and PyTorch.
        
        ## Quick start guide
        
        Install from pip:
        
        ```
        pip install funfact
        ```
        
        Define tensors and indices:
        
        ``` py
        import funfact as ff
        import numpy as np
        a = ff.tensor('a', 10, 2)
        b = ff.tensor('b', 2, 20)
        i, j, k = ff.indices('i, j, k')
        ```
        
        Create a tensor expression (note that this only specifies the algebra but
        does **not** carry out the computation immediately):
        
        ``` py
        tsrex = a[i, k] * b[k, j]
        ```
        
        Find a rank-2 approximation of a matrix according to the expression:
        
        ```
        target = np.random.randn(10, 20)
        ff.factorize(target, tsrex)
        ```
        
        ## How to cite
        
        If you use this package for a publication (either in-paper or electronically), please cite it using the following DOI: [https://doi.org/10.11578/dc.20210922.1](https://doi.org/10.11578/dc.20210922.1)
        
        ## Contributors
        
        Current developers:
        
        - [Yu-Hang "Maxin" Tang](https://github.com/yhtang)
        - [Daan Camps](https://github.com/campsd)
        
        Previou contributors:
        
        - [Elizaveta Rebrova](https://github.com/erebrova)
        
        
        ## Copyright
        
        FunFact Copyright (c) 2021, The Regents of the University of California,
        through Lawrence Berkeley National Laboratory (subject to receipt of
        any required approvals from the U.S. Dept. of Energy). All rights reserved.
        
        If you have questions about your rights to use or distribute this software,
        please contact Berkeley Lab's Intellectual Property Office at
        IPO@lbl.gov.
        
        NOTICE.  This Software was developed under funding from the U.S. Department
        of Energy and the U.S. Government consequently retains certain rights.  As
        such, the U.S. Government has been granted for itself and others acting on
        its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
        Software to reproduce, distribute copies to the public, prepare derivative 
        works, and perform publicly and display publicly, and to permit others to do so.
        
        ## Funding Acknowledgment
        
        This work was supported by the Laboratory Directed Research and Development Program of Lawrence Berkeley National Laboratory under U.S. Department of Energy Contract No. DE-AC02-05CH11231.
Platform: any
Classifier: Programming Language :: Python
Classifier: Development Status :: 3 - Alpha
Classifier: Natural Language :: English
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: jax
Provides-Extra: torch
Provides-Extra: docs
Provides-Extra: devel
