Git Product home page Git Product logo

einstein_summation_6360's Introduction

Einstein Summation CS6360

This repository contains an implementation of Einstein summation and tensor operations using SQL based on the paper "Efficient and Portable Einstein Summation in SQL". It leverages mapping tensor expressions in Einstein notation to SQL queries to enable in-database analytics.

Overview

Key Aspects:

  • Represents tensors as tables in sparse coordinate (COO) format
  • Translates notation into joins, aggregations, common table expressions
  • Uses Opt-Einsum to find efficient contraction paths
  • Supports operations like:
    • Matrix multiplication
    • Vector outer products
    • Batch matrix computations
  • Tested on SQLite, PostgreSQL, HyPer

Requirements

Python and Anaconda

Ensure you have Python version 3.8 and Anaconda version 4.9.2 installed.

The required Python packages are:

  • numpy~=1.26.2
  • matplotlib~=3.8.2
  • pandas~=2.1.3
  • tableauhyperapi (version 0.0.13287)
  • opt_einsum (version 3.3.0)
  • rdflib (version 6.2.0)
  • python-sat (version 0.1.7.dev19)

Postgres

Ensure you have Postgres installed.

SQLite

Make sure to have SQLite installed.

Hyper

If you want to use Hyper, ensure you have the necessary dependencies and follow the specific setup instructions.

Running Experiments

After setting up the environment, you can run experiments interactively. Navigate to the relevant subfolder and execute the experiments:

cd case_study/quantum_circuits
python qc_sqlite.py

Results

The folder docker results contain all the results along with performance metrics for SQLite, PostgreSQL, HyPer and Python.

einstein_summation_6360's People

Contributors

adityavkulkarni avatar prathameshk03 avatar chaoticcross12 avatar zenotick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.