Skip to content

Commit ebc51df

Browse files
committed
fixed README uncomputation
1 parent d011f1d commit ebc51df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def main(res: Output[QNum]) -> None:
236236
prepare_5(b)
237237

238238
res |= a + b # 3+5 should be 8
239+
drop(a)
240+
drop(b)
239241

240242

241243
quantum_program = synthesize(main)
@@ -283,6 +285,9 @@ qfunc main(output res: qnum){
283285
get_3(a);
284286
get_5(b);
285287
res = a + b;
288+
drop(a);
289+
drop(b);
290+
286291
}
287292
```
288293

0 commit comments

Comments
 (0)