summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test8.qasm
blob: ba88ef68b4ab67f256d303d21b018b911bd013f4 (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:	  test8.qasm
# Date:	  22-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - stage in
# simplification of quantum teleportation

	def	c-Z,1,'Z'

	qubit	q0,\psi
	qubit	q1,0
	qubit	q2,0

	H	q1
	cnot	q0,q1
	cnot	q1,q2
	cnot	q0,q1
	cnot	q1,q2
	H	q0
	c-Z	q2,q0
	H	q0
	H	q0