Debian Codegraph @

texmf-dist/doc/latex/yquant/test4.qasm

raw
1 #
2 # File: test4.qasm
3 # Date: 22-Mar-04
4 # Author: I. Chuang <[email protected]>
5 #
6 # Sample qasm input file - quantum
7 # fourier transform on three qubits
8
9 def c-S,1,'S'
10 def c-T,1,'T'
11
12 qubit j0
13 qubit j1
14 qubit j2
15
16 h j0
17 c-S j1,j0
18 c-T j2,j0
19 nop j1
20 h j1
21 c-S j2,j1
22 h j2
23 swap j0,j2