GithubHelp home page GithubHelp logo

nerator / matr2scheme Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 122 KB

algorithm for decomposition of arbitrary unitary matrix into product of two-level matrices

License: GNU General Public License v3.0

Scala 100.00%
quantum-computing matrix-decompositions

matr2scheme's Introduction

Build Status

matr2scheme

Overview

Implementation of the algorithm for decomposition of arbitrary unitaty matrix into product of two-level matrices. The algorithm is described in books "Quantum Computation and Quantum Information" by Michael Nilsen and Isaac Chang (4.5.1 Two-level unitary gates are universal) and "Quantum computing : from linear algebra to physical realizations" by Mikio Nakahara and Tetsuo Ohmi (4.6 Universal Quantum Gates).

Building

For Scala 2.13.1:

sbt ++2.13.1 packageVer

For Scala 2.12.11:

sbt ++2.12.11 packageVer

For Scala 2.11.12:

sbt ++2.11.12 packageVer

Resulting zip-files will be located at package folder.

Usage

Unzip archive with required Scala version to use. If you use Java 8 or later, use 2.13 or 2.12 version. Otherwise stick to 2.11.

Running (Linux):

./matr2scheme <filename>

Running (Windows):

matr2scheme.bat <filename>

filename should be text file with unitary matrix. Complex numbers entered like (Re,Im). For more info run matr2scheme without parameters.

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.