GithubHelp home page GithubHelp logo

mbrukman / openqasm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openqasm/openqasm

0.0 1.0 0.0 8.66 MB

Gate and operation specification for quantum circuits

License: Apache License 2.0

Makefile 0.99% Python 23.31% Shell 0.16% Batchfile 0.57% TeX 74.97%

openqasm's Introduction

OpenQASM

Specs, examples and tools for the OpenQASM intermediate representation.

Current version

The latest version is: 2.0.

About this project

On this repository you'll find all the documentation related to OpenQASM and some useful OpenQASM examples.

Language specs

The language documentation is available here.

Examples

The examples can be found under the examples folder.

They are OpenQASM files, i.e.:

// Repetition code syndrome measurement
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
qreg a[2];
creg c[3];
creg syn[2];
gate syndrome d1,d2,d3,a1,a2
{
  cx d1,a1; cx d2,a1;
  cx d2,a2; cx d3,a2;
}
x q[0]; // error
barrier q;
syndrome q[0],q[1],q[2],a[0],a[1];
measure a -> syn;
if(syn==1) x q[0];
if(syn==2) x q[2];
if(syn==3) x q[1];
measure q -> c;

Tests

The official OpenQASM conformance test suite is included in this repo.

Authors (alphabetical)

Lev S. Bishop, Antonio Córcoles, Andrew W. Cross, Jay M. Gambetta, Jesús Pérez and John A. Smolin.

Anyone who contributes to this project can include their name here.

Citation format

For research papers, we encourage authors to reference.

  • Andrew W. Cross, Lev S. Bishop, John A. Smolin, Jay M. Gambetta "Open Quantum Assembly Language" [arXiv:1707.03429].

Other QISKit projects

License

This project is licensed under the Apache License 2.0 - see the [LICENSE] file for details.

Acknowledgments

Contributing

If you'd like to help please take a look to our contribution guidelines.

openqasm's People

Contributors

jaygambetta avatar ajavadia avatar awcross1 avatar hitomitak avatar adcorcol avatar ewinston avatar francabrera avatar levbishop avatar hushaohan avatar adjs avatar hhorii avatar jesusprubio avatar rolfhuisman avatar mihbor 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.