summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test5.qasm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/yquant/test5.qasm')
-rw-r--r--Master/texmf-dist/doc/latex/yquant/test5.qasm15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/yquant/test5.qasm b/Master/texmf-dist/doc/latex/yquant/test5.qasm
new file mode 100644
index 00000000000..0a1a7e511b9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/yquant/test5.qasm
@@ -0,0 +1,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 \ No newline at end of file