summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test16.qasm
blob: 1aa78ddfbf4c362acde4019ccac53bd1b9ae9ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 
# File:	  test16.qasm
# Date:	  24-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - example from Nielsen
# paper on cluster states

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

	nop	q0
	nop	q0
	slash	q0
	nop	q1
	ZZ	q1,q2
	cnot	q2,q3
	nop	q2
	discard	q2
	dmeter	q3