summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test4.qasm
blob: c4dc61ef21c83f87a586b2130d8cfff54673940c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 
# File:	  test4.qasm
# Date:	  22-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - quantum
# fourier transform on three qubits

	def	c-S,1,'S'
	def	c-T,1,'T'

	qubit	j0
	qubit	j1
	qubit	j2

	h	j0	
	c-S	j1,j0
	c-T	j2,j0
	nop	j1
	h	j1
	c-S	j2,j1
	h	j2
	swap	j0,j2