summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/yquant/doc/qasm/test2.qasm
blob: 9b8ae9af102f140321704c03b29892c78084c27e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 
# File:   test2.qasm
# Date:   29-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - simple teleportation circuit
#
        qubit 	q0
        qubit 	q1
	qubit 	q2

	h	q1	# create EPR pair
	cnot	q1,q2
	cnot	q0,q1	# Bell basis measurement
	h	q0
	nop	q1
	measure	q0	
	measure	q1
	c-x	q1,q2	# correction step
	c-z	q0,q2