Skip to content

Commit

Permalink
Add QASM language (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
BankNatchapol authored Oct 27, 2021
1 parent f432d37 commit 3987a15
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 0 deletions.
125 changes: 125 additions & 0 deletions QASM/BankNatchapol/BankNatchapol.qasm
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
OPENQASM 2.0;
include "qelib1.inc";

qreg q[7];
creg c[7];

if (c=="Coffee") h q[0];
h q[0];
h q[1];
h q[2];
h q[3];
h q[4];
h q[5];
h q[6];
h q[0];
x q[1];
x q[2];
x q[3];
x q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
h q[3];
h q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
h q[3];
h q[4];
x q[5];
h q[6];
h q[0];
h q[1];
h q[2];
h q[3];
h q[4];
h q[5];
h q[6];
h q[0];
x q[1];
x q[2];
x q[3];
x q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
h q[3];
h q[4];
x q[5];
h q[6];
h q[0];
x q[1];
x q[2];
x q[3];
x q[4];
x q[5];
h q[6];
h q[0];
h q[1];
h q[2];
h q[3];
h q[4];
h q[5];
h q[6];
h q[0];
x q[1];
x q[2];
x q[3];
x q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
h q[3];
h q[4];
x q[5];
h q[6];
h q[0];
h q[1];
x q[2];
x q[3];
x q[4];
h q[5];
h q[6];
h q[0];
h q[1];
h q[2];
h q[3];
h q[4];
h q[5];
h q[6];
h q[0];
x q[1];
x q[2];
x q[3];
x q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
x q[3];
h q[4];
x q[5];
h q[6];
h q[0];
x q[1];
h q[2];
x q[3];
h q[4];
x q[5];
h q[6];
h q[1];
h q[2];
h q[3];
h q[4];
h q[5];
h q[6];
4 changes: 4 additions & 0 deletions QASM/BankNatchapol/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# QASM: A Quantum Programming Language <br>
QASM originated as a language for formally defining a quantum circuit to render images for visualization purposes. As quantum computation evolved, the language was adopted as a way to specify quantum circuits as input to a quantum computer.<br>
cr. https://www.quantum-inspire.com/kbase/cqasm/<br>
![Circuit](circuit.png)
Binary file added QASM/BankNatchapol/circuit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3987a15

Please sign in to comment.