Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
af0afaa
Set up Box link
beckykd May 14, 2026
5ec397b
Merge branch 'main' of https://github.com/Qiskit/documentation
beckykd May 18, 2026
3e50f4e
Document store directive
beckykd May 18, 2026
aad8ce2
Merge branch 'main' of https://github.com/Qiskit/documentation into b…
beckykd May 19, 2026
020c3b3
Merge branch 'main' of https://github.com/Qiskit/documentation into b…
beckykd May 19, 2026
f2b1e2f
Update examples n stuff
beckykd May 21, 2026
cc5a4da
tox e fix
beckykd May 21, 2026
0c63aec
correct code
beckykd May 21, 2026
cfb73d6
Get real code and outputs
beckykd May 22, 2026
9f1e9d5
one more time?
beckykd May 22, 2026
50a7f90
tox e fix
beckykd May 22, 2026
165405a
put the table back how it was
beckykd May 22, 2026
82fb53d
use old file
beckykd May 22, 2026
2e51826
tox -e fix
beckykd May 22, 2026
73ed890
review comments
beckykd May 22, 2026
af324c2
run and save
beckykd May 22, 2026
9b70e93
Merge branch 'main' into bd-store-directive
abbycross May 23, 2026
32cae01
tox -e fix
abbycross May 23, 2026
ce98d94
Update docs/guides/classical-feedforward-and-control-flow.ipynb
beckykd May 26, 2026
9d4f026
fran comments
beckykd May 26, 2026
d95e0e3
Merge branch 'bd-store-directive' of https://github.com/Qiskit/docume…
beckykd May 26, 2026
9681790
fix latex
beckykd May 26, 2026
e76690e
fix latex
beckykd May 26, 2026
0401c69
tox -e fix
beckykd May 26, 2026
9fb44e2
Code change from fran
beckykd May 27, 2026
a83f216
clarifications
beckykd May 27, 2026
648f373
typo
beckykd May 27, 2026
4ef9cf7
code typo
beckykd May 27, 2026
22aca76
tox e fix
beckykd May 27, 2026
b18d699
fran review
beckykd May 28, 2026
6fe1eee
Run new code
beckykd May 28, 2026
a4d6be8
instruction not directive
beckykd May 28, 2026
53f2214
code ticks
abbycross May 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/guides/classical-feedforward-and-control-flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,28 @@
"qc.draw(output=\"mpl\", style=\"iqp\", idle_wires=False, fold=-1)"
]
},
{
"cell_type": "markdown",
"id": "02ef1510-6daf-4a58-b4bb-b5bdbe774c43",
"metadata": {},
"source": [
"### `Store`\n",
"\n",
"With `qiskit-ibm-runtime` v0.47.0 or later, you can use the [`store`](/docs/api/qiskit/circuit#store) instruction to save the result of a classical expression, if that expression will be used repeatedly. Operations are automatically parallelized, making your code significantly more efficient at runtime.\n",
Comment thread
beckykd marked this conversation as resolved.
Outdated
"\n",
"For example, it is more natural and performant to write B[0]^B[1]^B[2]..., where B = ~A , than (~A[0])^(~A[1])^(~A[2])....  The former can be written in Qiskit as the following:\n",
Comment thread
beckykd marked this conversation as resolved.
Outdated
"\n",
"```python\n",
"# Store the negation in temporary variable\n",
"qc.store(temp, expr.bit_not(creg))\n",
"\n",
"# Now compute parity using the stored result\n",
"parity = expr.bit_xor(\n",
" expr.bit_xor(temp[0], temp[1]), temp[2]\n",
")\n",
"```"
Comment thread
beckykd marked this conversation as resolved.
Outdated
]
},
{
"cell_type": "markdown",
"id": "7c80c5d0-a447-4590-8426-6eb33ae2d817",
Expand All @@ -304,6 +326,7 @@
"- Learn how to implement accurate dynamic decoupling by using [stretch](/docs/guides/stretch).\n",
"- Use [circuit schedule visualization](/docs/guides/qiskit-runtime-circuit-timing) to debug and optimize your dynamic circuits.\n",
"- [Execute dynamic circuits](/docs/guides/execute-dynamic-circuits).\n",
"- Not all functions are compatible with dynamic circuits. Check the feature compatibility section for [Sampler](/docs/guides/sampler-options#feature-compatibility) or [Executor](/docs/guides/executor-options#feature-compatibility) for details.\n",
Comment thread
beckykd marked this conversation as resolved.
Outdated
"</Admonition>"
]
}
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/executor-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@
" - Dynamical decoupling\n",
"\n",
" Other notes:\n",
" - Gate twirling can be applied to dynamic circuits, but only to gates not inside conditional blocks. Measurement twirling can only be applied to terminal measurements.\n",
" - Gate twirling can be applied to dynamic circuits, but only to gates not inside conditional blocks.\n",
Comment thread
beckykd marked this conversation as resolved.
" - Measurement twirling can only be applied to terminal measurements.\n",
" - Measurement twirling is incompatible with the [`store`](/docs/api/qiskit/circuit#store) directive.\n",
" - Compatible with fractional gates when using `qiskit-ibm-runtime` v0.42.0 or later.\n",
"\n",
" </TabItem>\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/qpu-information.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"| :--- | :--- |\n",
"| Single-qubit gates | [`RZ`](/docs/api/qiskit/qiskit.circuit.library.RZGate), [`SX`](/docs/api/qiskit/qiskit.circuit.library.SXGate), [`X`](/docs/api/qiskit/qiskit.circuit.library.XGate), [`ID`](/docs/api/qiskit/qiskit.circuit.library.IGate), [`delay`](/docs/api/qiskit/circuit#qiskit.circuit.Delay) |\n",
"| Two-qubit gates | [`CZ`](/docs/api/qiskit/qiskit.circuit.library.CZGate), [`ECR`](/docs/api/qiskit/qiskit.circuit.library.ECRGate)|\n",
"| Fractional gates | [`RX`](/docs/api/qiskit/qiskit.circuit.library.RXGate) (single-qubit), [`RZZ`](/docs/api/qiskit/qiskit.circuit.library.RZZGate) (two-qubit) |\n",
"| Fractional gates | [`RX`](/docs/api/qiskit/qiskit.circuit.library.RXGate) (single-qubit), [`RZZ`](/docs/api/qiskit/qiskit.circuit.library.RZZGate) (two-qubit) | |\n",
"| Non-unitary instructions | [`measure`](/docs/api/qiskit/circuit#qiskit.circuit.Measure), [`reset`](/docs/api/qiskit/circuit#qiskit.circuit.Reset), [`measure_*`](/docs/guides/execute-dynamic-circuits#midcircuit), [`delay`](/docs/api/qiskit/circuit#delay) |\n",
"| Control flow | [`if_else`](/docs/api/qiskit/qiskit.circuit.IfElseOp) (classical feedforward) |"
]
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/sampler-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@
" - Stretches\n",
"\n",
" Other notes:\n",
" - Gate twirling can be applied to dynamic circuits, but only to gates not inside conditional blocks. Measurement twirling can only be applied to terminal measurements.\n",
" - Gate twirling can be applied to dynamic circuits, but only to gates not inside conditional blocks.\n",
" - Measurement twirling can only be applied to terminal measurements.\n",
" - Measurement twirling is incompatible with the [`store`](/docs/api/qiskit/circuit#store) directive.\n",
" - Does not work with non-Clifford entanglers.\n",
" </AccordionItem>\n",
"</Accordion>"
Expand Down
Loading