Re-add conditional instructions#5208
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
One or more of the following people are relevant to this code:
|
| "id": "b2953dd4-218e-4daa-a753-0d2aa5e0a0bb", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "This guide demonstrates the functionality available in the Qiskit SDK for performing classical feedforward and control flow. These features are sometimes referred to collectively as \"dynamic circuits.\" Classical feedforward refers to the ability to measure qubits in the middle of a circuit and perform additional quantum operations that depend on the measurement outcome. Qiskit supports four control flow constructs for classical feedforward, each implemented as a method on [`QuantumCircuit`](../api/qiskit/qiskit.circuit.QuantumCircuit). The constructs and their corresponding methods are:\n", |
There was a problem hiding this comment.
I would remove everything before Qiskit supports four control flow ... since the intro paragraph already explain what dynamic circuits and feedforward mean.
| "<Admonition type=\"caution\">\n", | ||
| " There are some limitations of classical feedforward and control flow operations on quantum hardware that might impact your program. For more information, see [Job limits](/docs/guides/job-limits).\n", | ||
| "</Admonition>\n", |
There was a problem hiding this comment.
The Job limits page no longer show any limits on dynamic circuits. This note should instead point out that IBM Quantum Compute doesn't support everything Qiskit supports, and people should refer to Execute dynamic circuits page for more details.
| "source": [ | ||
| "## Classical expressions\n", | ||
| "\n", | ||
| "The Qiskit classical expression module [`qiskit.circuit.classical`](/docs/api/qiskit/circuit_classical) contains an exploratory representation of runtime operations on classical values during circuit execution. Due to hardware limitations, only `QuantumCircuit.if_test()` conditions are currently supported.\n", |
There was a problem hiding this comment.
Due to hardware limitations, only
QuantumCircuit.if_test()conditions are currently supported.
I missed this in the previous review, but Qiskit is hardware agnostic so we shouldn't talk about hardware limitations here.
closes #4801
review: https://qiskit.github.io/documentation/pr-5208/docs/guides/classical-feedforward-and-control-flow