texmf-dist/doc/latex/yquant/test16.qasm
raw| 1 | # |
| 2 | # File: test16.qasm |
| 3 | # Date: 24-Mar-04 |
| 4 | # Author: I. Chuang <[email protected]> |
| 5 | # |
| 6 | # Sample qasm input file - example from Nielsen |
| 7 | # paper on cluster states |
| 8 | |
| 9 | qubit q0,\psi |
| 10 | qubit q1,\psi |
| 11 | qubit q2,\phi |
| 12 | qubit q3,0 |
| 13 | |
| 14 | nop q0 |
| 15 | nop q0 |
| 16 | slash q0 |
| 17 | nop q1 |
| 18 | ZZ q1,q2 |
| 19 | cnot q2,q3 |
| 20 | nop q2 |
| 21 | discard q2 |
| 22 | dmeter q3 |