-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add a `apply_numshots_loop` method to `Program` * update docs * update snapshot * Update docs/source/programs_and_gates.rst Co-authored-by: Mark Skilbeck <[email protected]> * remove unused section * expand example to include execution * refactor around suggested API * doc cleanup * formatting * remove shot_count from memory_map * add doc for num_iterations param --------- Co-authored-by: Mark Skilbeck <[email protected]>
- Loading branch information
Showing
5 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# name: test_with_loop | ||
''' | ||
DECLARE ro BIT[1] | ||
DECLARE shot_count INTEGER[1] | ||
DEFFRAME 0 "rx": | ||
HARDWARE-OBJECT: "hardware" | ||
DEFWAVEFORM custom: | ||
1, 2 | ||
DEFCAL I 0: | ||
DELAY 0 1 | ||
MOVE shot_count[0] 100 | ||
LABEL @start-loop | ||
MEASURE q ro[0] | ||
JUMP-UNLESS @end-reset ro[0] | ||
X q | ||
LABEL @end-reset | ||
I 0 | ||
SUB shot_count[0] 1 | ||
JUMP-UNLESS @end-loop shot_count[0] | ||
JUMP @start-loop | ||
LABEL @end-loop | ||
|
||
''' | ||
# --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters