texmf-dist/doc/latex/yquant/test17.qasm
raw| 1 | # |
| 2 | # File: test17.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 | def MeasH,0,'\dmeter{H}' |
| 10 | |
| 11 | qubit q0,\psi |
| 12 | qubit q1,+ |
| 13 | qubit q2,+ |
| 14 | qubit q3,\phi |
| 15 | |
| 16 | nop q0 |
| 17 | nop q2 |
| 18 | ZZ q0,q1 |
| 19 | ZZ q2,q3 |
| 20 | ZZ q1,q2 |
| 21 | MeasH q1 |
| 22 | MeasH q2 |