Skip to content

Commit

Permalink
Fixed plots and references in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lumip committed May 6, 2016
1 parent 21a5aa2 commit a1e1e8a
Show file tree
Hide file tree
Showing 11 changed files with 10,032 additions and 314 deletions.
2 changes: 1 addition & 1 deletion doc/source/concepts/sequencing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The sequencing process can be interrupted at any point, e.g., if some parameter

Sequencing of Conditional Branching
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Software and hardware conditions result in different instruction sequences generated by the sequencing process: Hardware conditions will produce instructions for all possible branches with branching instructions corresponding to the triggers specified by the :class:`.HardwareCondition` instance. The selection of the correct branch is then made by the hardware. Contrary, software conditions will only produce instructions for the branch selected by the condition (the hardware will then never know of potential other execution paths). In this case, no branching instructions will be used. This enables usage of branching even on hardware that does not support jumps with the disadvantage of being not real-time capable (cf. :ref:`Read more on conditional branching <branching>`.).
Software and hardware conditions result in different instruction sequences generated by the sequencing process: Hardware conditions will produce instructions for all possible branches with branching instructions corresponding to the triggers specified by the :class:`.HardwareCondition` instance. The selection of the correct branch is then made by the hardware. Contrary, software conditions will only produce instructions for the branch selected by the condition (the hardware will then never know of potential other execution paths). In this case, no branching instructions will be used. This enables usage of branching even on hardware that does not support jumps with the disadvantage of being not real-time capable (cf. :ref:`conditional branching <branching>`.).

Implementation Details and Algorithm Walkthrough
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2,347 changes: 2,312 additions & 35 deletions doc/source/examples/00SimpleTablePulse.ipynb

Large diffs are not rendered by default.

791 changes: 770 additions & 21 deletions doc/source/examples/01SequencePulse.ipynb

Large diffs are not rendered by default.

1,567 changes: 1,537 additions & 30 deletions doc/source/examples/02FunctionPulse.ipynb

Large diffs are not rendered by default.

797 changes: 773 additions & 24 deletions doc/source/examples/03Serialization.ipynb

Large diffs are not rendered by default.

793 changes: 771 additions & 22 deletions doc/source/examples/04Sequencing.ipynb

Large diffs are not rendered by default.

780 changes: 769 additions & 11 deletions doc/source/examples/05Parameters.ipynb

Large diffs are not rendered by default.

19 changes: 5 additions & 14 deletions doc/source/examples/06ConditionalExecution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"metadata": {
"collapsed": false
},
Expand All @@ -62,7 +62,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[<qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000748DAC8>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000748DC18>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000748DC88>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000748DCF8>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000748DD68>, <qctoolkit.pulses.instructions.STOPInstruction object at 0x000000000748DDA0>]\n"
"[<qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007870C50>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007870DA0>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007870E10>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007870E80>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007870EF0>, <qctoolkit.pulses.instructions.STOPInstruction object at 0x0000000007870F28>]\n"
]
}
],
Expand Down Expand Up @@ -98,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 3,
"metadata": {
"collapsed": false
},
Expand All @@ -107,7 +107,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[<qctoolkit.pulses.instructions.CJMPInstruction object at 0x000000000748DF28>, <qctoolkit.pulses.instructions.STOPInstruction object at 0x000000000748DFD0>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x0000000007462DD8>, <qctoolkit.pulses.instructions.GOTOInstruction object at 0x000000000749B080>]\n"
"[<qctoolkit.pulses.instructions.CJMPInstruction object at 0x000000000787F080>, <qctoolkit.pulses.instructions.STOPInstruction object at 0x000000000787F160>, <qctoolkit.pulses.instructions.EXECInstruction object at 0x000000000787F128>, <qctoolkit.pulses.instructions.GOTOInstruction object at 0x000000000787F1D0>]\n"
]
}
],
Expand All @@ -133,15 +133,6 @@
"source": [
"As you can see in the output, the sequencing process now procudes instructions that perform conditional jumps and returns with goto instructions. The details are omitted here, suffice it to say that the trigger is embedded in the conditional jump instruction and this sequence will loop on the hardware as long as the trigger fires."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit a1e1e8a

Please sign in to comment.