summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test7.qasm
blob: ffc7227b2008fbf3428fd66cca0813d7305b3bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 
# File:	  test7.qasm
# Date:	  22-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - measurement
# of operator with correction

	def	c-U,1,'U'
	def	c-V,1,'V'

	qubit	q0
	qubit	q1

	H	q0
	c-U	q0,q1
	H	q0
	measure	q0
	c-V	q0,q1
	nop	q0
	nop	q1