summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test6.qasm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/yquant/test6.qasm')
-rw-r--r--Master/texmf-dist/doc/latex/yquant/test6.qasm20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/yquant/test6.qasm b/Master/texmf-dist/doc/latex/yquant/test6.qasm
new file mode 100644
index 00000000000..88d48c87aba
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/yquant/test6.qasm
@@ -0,0 +1,20 @@
+#
+# File: test6.qasm
+# Date: 22-Mar-04
+# Author: I. Chuang <ichuang@mit.edu>
+#
+# Sample qasm input file - demonstrate
+# multiple-qubit controlled single-q-gates
+
+ def c-U,3,'U'
+
+ qubit j0
+ qubit j1
+ qubit j2
+ qubit j3
+
+ toffoli j0,j1,j2
+ X j0
+ c-U j2,j3,j0,j1
+ H j2
+ measure j3