GithubHelp home page GithubHelp logo

godott / monodromy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qiskit-extensions/monodromy

0.0 0.0 0.0 363 KB

Computations in the monodromy polytope for quantum gate sets

License: Apache License 2.0

Python 100.00%

monodromy's Introduction

monodromy

Computations in the monodromy polytope for quantum gate sets

Overview

Fixed-Depth Two-Qubit Circuits and the Monodromy Polytope described a technique for determining whether a given two-qubit unitary can be written as a circuit with a prescribed sequence of two-qubit interactions, interleaved with arbitrary single-qubit unitaries. This python package is a computationally effective implementation of that technique.

Installation

  1. This package comes with a requirements.txt file. Begin by installing those requirements, using pip -r requirements.txt.
  2. Install lrs. Typically, this means downloading the source, building it, and placing the generated executable somewhere in the search path for your python process. NOTE: We require version version โ‰ฅ0.7.1b of lrsgmp (renamed to lrs).
  3. Optionally, install lrcalc. Typically, this means downloading the source, building it, then building the Cython bindings, and installing the resulting package. This is not necessary: lrcalc is needed only for the curious user who wants to regenerate the contents of qlr_table.py.

Configuration

If you're unable to put lrs in your search path, you can specify its location via the environment variable LRS_PATH.

Usage

Give it a whirl with scripts/demo.py.

Notes

We've designed the package around polytopes with rational coordinates. In practice this suits the use cases of quantum computer scientists fine, but it is easy to imagine use cases outside of this. lrs makes strong assumptions about the kind of arithmetic used, so if one were to want to process irrational polytopes, one would be obligated to move away from lrs.

lrs is licensed under GPLv2, which makes it insuitable for inclusion in some projects. We may someday want to remove (or make optional) this dependency from this project. To this end, we have set up a backend which describes a contained and minimal set of calls we make of any computational library.

monodromy's People

Contributors

ecpeterson avatar godott avatar evmckinney9 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.