texmf-dist/doc/latex/yquant/test7.qasm
raw| 1 | # |
| 2 | # File: test7.qasm |
| 3 | # Date: 22-Mar-04 |
| 4 | # Author: I. Chuang <[email protected]> |
| 5 | # |
| 6 | # Sample qasm input file - measurement |
| 7 | # of operator with correction |
| 8 | |
| 9 | def c-U,1,'U' |
| 10 | def c-V,1,'V' |
| 11 | |
| 12 | qubit q0 |
| 13 | qubit q1 |
| 14 | |
| 15 | H q0 |
| 16 | c-U q0,q1 |
| 17 | H q0 |
| 18 | measure q0 |
| 19 | c-V q0,q1 |
| 20 | nop q0 |
| 21 | nop q1 |