blob: 0a1a7e511b95e0d1f4ce7463f3524554f6a170fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#
# File: test5.qasm
# Date: 22-Mar-04
# Author: I. Chuang <ichuang@mit.edu>
#
# Sample qasm input file - demonstrate arbitray qubit matrix ops
def c-P,1,'\m{e^{i\alpha} & 0 \cr 0 & e^{-i\alpha}}'
def Ryt,0,'\m{\cos{\theta}&-\sin{\theta}\cr\sin{\theta}&\cos{\theta}}'
qubit j0
qubit j1
c-P j0,j1
Ryt j0
|