Skip to content

Commit 21bbfd9

Browse files
authored
Merge pull request #25 from PESchoenberg/develop
Minor edit.
2 parents e6498df + 1a3b6e7 commit 21bbfd9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/example5.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
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")

g2q3.scm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
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))
@@ -82,7 +82,9 @@
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.
@@ -136,7 +138,7 @@
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
;

0 commit comments

Comments
 (0)