All Projects → Qiskit → Openqasm

Qiskit / Openqasm

Licence: apache-2.0
Gate and operation specification for quantum circuits

Projects that are alternatives of or similar to Openqasm

Qiskit Terra
Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and algorithms.
Stars: ✭ 3,177 (+445.88%)
Mutual labels:  quantum-computing
Grove
Quantum algorithms built using pyQuil.
Stars: ✭ 332 (-42.96%)
Mutual labels:  quantum-computing
Strawberryfields
Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
Stars: ✭ 505 (-13.23%)
Mutual labels:  quantum-computing
Qvm
The @rigetti high-performance quantum virtual machine.
Stars: ✭ 300 (-48.45%)
Mutual labels:  quantum-computing
Quantum
Microsoft Quantum Development Kit Samples
Stars: ✭ 3,453 (+493.3%)
Mutual labels:  quantum-computing
Qcgpu
High Performance Tools for Quantum Computing
Stars: ✭ 380 (-34.71%)
Mutual labels:  quantum-computing
Cirq
A python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Stars: ✭ 3,115 (+435.22%)
Mutual labels:  quantum-computing
Quantumcomputing
This is an implementation of IBM's Quantum Experience in simulation; a 5-qubit quantum computer with a limited set of gates. Please cite me if you end up using this academically.
Stars: ✭ 534 (-8.25%)
Mutual labels:  quantum-computing
Quantumkatas
Tutorials and programming exercises for learning Q# and quantum computing
Stars: ✭ 3,713 (+537.97%)
Mutual labels:  quantum-computing
Qiskit Api Py
This repository and the qiskit-api-py package are deprecated, and no longer supported. A Python library for the Quantum Experience API
Stars: ✭ 458 (-21.31%)
Mutual labels:  quantum-computing
Blueqat
Quantum Computer Library for Everyone
Stars: ✭ 298 (-48.8%)
Mutual labels:  quantum-computing
Quantumlibraries
Q# libraries for the Quantum Development Kit
Stars: ✭ 316 (-45.7%)
Mutual labels:  quantum-computing
Quantumcomputingbook
Companion site for the textbook Quantum Computing: An Applied Approach
Stars: ✭ 386 (-33.68%)
Mutual labels:  quantum-computing
Grassmann.jl
⟨Leibniz-Grassmann-Clifford⟩ differential geometric algebra / multivector simplicial complex
Stars: ✭ 289 (-50.34%)
Mutual labels:  quantum-computing
Qiskit Aqua
Quantum Algorithms & Applications in Python
Stars: ✭ 514 (-11.68%)
Mutual labels:  quantum-computing
Qpp
A modern C++11 quantum computing library
Stars: ✭ 277 (-52.41%)
Mutual labels:  quantum-computing
Quilc
The @rigetti optimizing Quil compiler.
Stars: ✭ 336 (-42.27%)
Mutual labels:  quantum-computing
Cs Video Courses
List of Computer Science courses with video lectures.
Stars: ✭ 27,209 (+4575.09%)
Mutual labels:  quantum-computing
Yao.jl
Extensible, Efficient Quantum Algorithm Design for Humans.
Stars: ✭ 514 (-11.68%)
Mutual labels:  quantum-computing
Qiskit Textbook
A university quantum algorithms/computation course supplement based on Qiskit
Stars: ✭ 404 (-30.58%)
Mutual labels:  quantum-computing

OpenQASM

OpenQASM is an imperative programming language for describing quantum circuits. It is capable to describe universal quantum computing using the circuit model, measurement-based model, and near-term quantum computing experiments.

Specs, examples and tools for the OpenQASM intermediate representation.

Current version: 3.0

Live doc: version 3.0

For previous version see: 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 live language documentation specification.

Examples

The examples can be found under the examples folder.

They are OpenQASM files, i.e.:

/*
 * Repeat-until-success circuit for Rz(theta),
 * cos(theta-pi)=3/5, from Nielsen and Chuang, Chapter 4.
 */
OPENQASM 3;
include "stdgates.inc";

/*
 * Applies identity if out is 01, 10, or 11 and a Z-rotation by
 * theta + pi where cos(theta)=3/5 if out is 00.
 * The 00 outcome occurs with probability 5/8.
 */
def segment qubit[2]:anc, qubit:psi -> bit[2] {
  bit[2] b;
  reset anc;
  h anc;
  ccx anc[0], anc[1], psi;
  s psi;
  ccx anc[0], anc[1], psi;
  z psi;
  h anc;
  measure anc -> b;
  return b;
}

qubit input;
qubit ancilla[2];
bit flags[2] = "11";
bit output;

reset input;
h input;

// braces are optional in this case
while(int(flags) != 0) {
  flags = segment ancilla, input;
}
rz(pi - arccos(3 / 5)) input;
h input;
output = measure input;  // should get zero

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].

License

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

Contributing

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].