texmf-dist/doc/latex/yquant/test18.qasm
raw| 1 | # |
| 2 | # File: test18.qasm |
| 3 | # Date: 25-Mar-04 |
| 4 | # Author: I. Chuang <[email protected]> |
| 5 | # |
| 6 | # Sample qasm input file - multiple-control bullet op |
| 7 | |
| 8 | def MeasH,0,'\dmeter{H}' |
| 9 | def Z4,3,'bullet' # handled specially |
| 10 | |
| 11 | qubit q0,\psi |
| 12 | qubit q1,+ |
| 13 | qubit q2,+ |
| 14 | qubit q3,\phi |
| 15 | |
| 16 | nop q0 |
| 17 | nop q2 |
| 18 | Z4 q0,q1,q2,q3 |
| 19 | MeasH q1 |
| 20 | MeasH q2 |