summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/yquant/test9.qasm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/yquant/test9.qasm')
-rw-r--r--Master/texmf-dist/doc/latex/yquant/test9.qasm20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/yquant/test9.qasm b/Master/texmf-dist/doc/latex/yquant/test9.qasm
new file mode 100644
index 00000000000..fc1486be8d9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/yquant/test9.qasm
@@ -0,0 +1,20 @@
+#
+# File: test9.qasm
+# Date: 22-Mar-04
+# Author: I. Chuang <ichuang@mit.edu>
+#
+# Sample qasm input file - two-qubit gate circuit
+# implementation of Toffoli
+
+ def c-X,1,'\sqrt{X}'
+ def c-Xd,1,'{\sqrt{X}}^\dagger'
+
+ qubit q0
+ qubit q1
+ qubit q2
+
+ c-X q1,q2
+ cnot q0,q1
+ c-Xd q1,q2
+ cnot q0,q1
+ c-X q0,q2