File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4343 (g2q g2q2))
4444
4545
46- ; Vars and initial stuff.
46+ ; Vars and initial stuff.
4747(define fname "example5.qasm")
4848(define qver 2.0)
4949(define q "q")
Original file line number Diff line number Diff line change 5555;
5656; Output:
5757; - A result that consists in the maximum probability obtained from the
58- ; - execution of the compiled quantum circuit.
58+ ; execution of the compiled quantum circuit.
5959;
6060(define (qcompile-and-run p_fname p_fnameo p_qver p_ddir p_qpu p_qf p_q p_c p_qn p_cn p_mc p_i p_v )
6161 (let ((porto1 (current-output-port))
8282 (qhead p_fnameo p_qver)
8383 (qregdef p_q p_qn p_c p_cn)
8484
85- ; Qcircuit call.
85+ ; Qcircuit call. Note that this is a first-order function passed as an
86+ ; argument. In this case, the function has itself several arguments that
87+ ; could be passed as a a single list argument in the future.
8688 (p_qf p_i p_q p_c 0 pqn 0 pcn)
8789
8890 ; Set the output port again to the console.
136138; that are specific for different quantum processors. These are applicable
137139; for the declared qpu, but not others. Pragmas are introduced as comments
138140; using the standard double "/" character and thus do not modify the QASM2
139- ; dode itself. Currently you can use it for writing comments on your QASM2
141+ ; code itself. Currently you can use it for writing comments on your QASM2
140142; code and for sending special instructions to the qx simulator if you use
141143; it.
142144;
You can’t perform that action at this time.
0 commit comments