Coder Social home page Coder Social logo

li012589 / trgbenchmark Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 245 KB

Using simple TRG code to benchmark different tensor implements.

Makefile 9.29% C++ 24.07% Julia 15.82% Python 50.83%
benchmark julia pytorch itensor tensor renormalization-group

trgbenchmark's Introduction

Benchmark of Different Tenosr Implements

Currently, this test focus on three different implements: using pytorch; using julia and using itensor.

The result is

Implement Time(average over 10 runs)
pytorch 1.73s
julia 9.31s
itensor 9.75s

The scaling curve with iterations is

scaling curve

The scaling curve with maximum cuts is

cut

Details

This test is done on a mid 2014 MacBook Pro with a 2.2GHz Intel i7 processor and 16G of memory. And the pytorch test doesn't utilize a GPU.

Library versions:

name version
pytorch 1.0.0.dev20180921(nightly)
julia 1.01
itensor 2.1.1

To perform this test on your machine, run

python ./test.py
python ./testscaling.py

About TRG Algorithm

A beautiful tutorial of TRG by itensor

trgbenchmark's People

Contributors

li012589 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

trgbenchmark's Issues

Some fix on presentation of benchmark

  • Table for Time(average over 10 runs): Show mean +/- error ? Can have less digits
  • maximumcut.png use log plot ? (since it is expected to have power law scaling)
  • add links to the original itensor page

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.