diff options
author | Karl Berry <karl@freefriends.org> | 2020-06-13 20:58:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-06-13 20:58:17 +0000 |
commit | 6bb32c43bccbba47d0a5cb34876bd060e088a507 (patch) | |
tree | d4b56c3eaf665699d6b680b3ba8e8c75d37ef3d5 /Master/texmf-dist/doc/latex/yquant/test14.qasm | |
parent | 01d0d819f585f3b7f88e544cec22201385db44ea (diff) |
yquant (13jun20)
git-svn-id: svn://tug.org/texlive/trunk@55537 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/yquant/test14.qasm')
-rw-r--r-- | Master/texmf-dist/doc/latex/yquant/test14.qasm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/yquant/test14.qasm b/Master/texmf-dist/doc/latex/yquant/test14.qasm new file mode 100644 index 00000000000..ee83a46a4d7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/yquant/test14.qasm @@ -0,0 +1,49 @@ +# +# File: test14.qasm +# Date: 22-Mar-04 +# Author: I. Chuang <ichuang@mit.edu> +# +# Sample qasm input file - three-qubit FT QEC +# circuit with syndrome measurement + + defbox synd,4,0,'\txt{Process\\Syndrome}' + defbox rop,7,4,'{\symcal R}' + + qubit q0 # code data qubits + qubit q1 + qubit q2 + qubit s0,0 # syndrome measurement qubits + qubit s1,0 + cbit c0,0 # classical bits to store syndromes + cbit c1,0 + + h s0 # create EPR pair for FT meas + cnot s0,s1 + cnot q0,s0 # measure parity of q0,q1 + nop s1 # prevent cnot's from colliding + cnot q1,s1 + cnot s0,s1 # uncreate EPR + h s0 + measure s0 # measure syndrome qubits + nop s1 + measure s1 + cnot s0,c0 # copy to classical bits + nop s1 + cnot s1,c1 + space s0 + + zero s0 + zero s1 + h s0 # create EPR pair for FT meas + cnot s0,s1 + cnot q1,s0 # measure parity of q1,q2 + nop s1 # prevent cnot's from colliding + cnot q2,s1 + cnot s0,s1 # uncreate EPR + h s0 + measure s0 # measure syndrome qubits + nop s1 + measure s1 + + synd s0,s1,c0,c1 + rop s0,s1,c0,c1,q0,q1,q2 |