Skip to content

Commit aa3e964

Browse files
committed
lint
1 parent 940a329 commit aa3e964

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

algorithms/foundational/simon/simon.qmod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Simon algorithm with a minimal oracle example
22

3-
// We prepares an input superposition and applies a simple Simon-style function.
4-
// We focus only on the quantum wrapper and a very simple oracle
3+
// This program prepare an input superposition and applies a Simon function.
4+
// We focus only on the quantum wrapper and a very simple oracle,
55
// without classical postprocessing or full secret recovery.
66

77
// The oracle is a 2-to-1 function of the form f(x) = f(x xor s),
@@ -18,13 +18,13 @@ qfunc simon(f_qfunc: qfunc (qnum, output qnum), x: qnum, output res: qnum) {
1818
}
1919
}
2020

21-
qperm simon_simple(s: int, const x: qnum, output res: qnum) {
21+
qperm simon_oracle(s: int, const x: qnum, output res: qnum) {
2222
res = min(x, x ^ s);
2323
}
2424

2525
qfunc main(output x: qnum<num_qubits>, output res: qnum) {
2626
allocate(x);
2727
simon(lambda(x, res) {
28-
simon_simple(s_secret, x, res);
28+
simon_oracle(s_secret, x, res);
2929
}, x, res);
3030
}

algorithms/number_theory_and_cryptography/shor/shor.qmod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ qfunc main(output phase_var: qnum<phase_len, UNSIGNED, phase_len>) {
2525
period_finding(modulo_num, a_number, x, phase_var);
2626
drop(x);
2727
}
28-

0 commit comments

Comments
 (0)