Debian Codegraph @

texmf-dist/doc/latex/yquant/test2.qasm

raw
1 #
2 # File: test2.qasm
3 # Date: 29-Mar-04
4 # Author: I. Chuang <[email protected]>
5 #
6 # Sample qasm input file - simple teleportation circuit
7 #
8 qubit q0
9 qubit q1
10 qubit q2
11
12 h q1 # create EPR pair
13 cnot q1,q2
14 cnot q0,q1 # Bell basis measurement
15 h q0
16 nop q1
17 measure q0
18 measure q1
19 c-x q1,q2 # correction step
20 c-z q0,q2