texmf-dist/doc/latex/yquant/test11.qasm
raw| 1 | # |
| 2 | # File: test11.qasm |
| 3 | # Date: 22-Mar-04 |
| 4 | # Author: I. Chuang <[email protected]> |
| 5 | # |
| 6 | # Sample qasm input file - user-defined |
| 7 | # multi-qubit ops |
| 8 | |
| 9 | defbox fx,2,0,'U_{f(x)}' |
| 10 | defbox fxy,3,0,'U_{f(x,y)}' |
| 11 | |
| 12 | qubit q0 |
| 13 | qubit q1 |
| 14 | qubit q2 |
| 15 | |
| 16 | h q0 |
| 17 | fx q0,q1 |
| 18 | h q1 |
| 19 | fxy q0,q1,q2 |
| 20 |